diff options
author | Anish Athalye <me@anishathalye.com> | 2014-06-14 23:56:33 -0700 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2014-06-14 23:56:33 -0700 |
commit | 72008324653e90adfeb29a91b46ab33b34fd4af7 (patch) | |
tree | c5de6025dffca415e513bf40032d3e3abb1d566d /dotbot | |
parent | 0e3e85c366f4bcf5df597cb972309b7e10cc6df3 (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.py | 2 |
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) |