summaryrefslogtreecommitdiff
path: root/dotbot
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2014-06-14 23:56:33 -0700
committerAnish Athalye <me@anishathalye.com>2014-06-14 23:56:33 -0700
commit72008324653e90adfeb29a91b46ab33b34fd4af7 (patch)
treec5de6025dffca415e513bf40032d3e3abb1d566d /dotbot
parent0e3e85c366f4bcf5df597cb972309b7e10cc6df3 (diff)
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.
Diffstat (limited to 'dotbot')
-rw-r--r--dotbot/messenger/messenger.py2
1 files changed, 1 insertions, 1 deletions
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)