From 72008324653e90adfeb29a91b46ab33b34fd4af7 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Sat, 14 Jun 2014 23:56:33 -0700 Subject: [PATCH] Fix source compatibility with Python 3 According to PEP 394, `python` should only be used in the shebang line for scripts that are source compatible with both Python 2 and Python 3. In previous versions of Dotbot, on certain systems where `python` referred to `python3`, running Dotbot would throw an exception due to a SyntaxError. This can be fixed by making Dotbot source compatible with both Python 2 and Python 3. --- dotbot/messenger/messenger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotbot/messenger/messenger.py b/dotbot/messenger/messenger.py index 04081e7..722d1ee 100644 --- a/dotbot/messenger/messenger.py +++ b/dotbot/messenger/messenger.py @@ -14,7 +14,7 @@ class Messenger(object): def log(self, level, message): if (level >= self._level): - print '%s%s%s' % (self._color(level), message, self._reset()) + print('%s%s%s' % (self._color(level), message, self._reset())) def debug(self, message): self.log(Level.DEBUG, message)