Skip to content

Commit

Permalink
Fix source compatibility with Python 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
anishathalye committed Jun 15, 2014
1 parent 0e3e85c commit 7200832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotbot/messenger/messenger.py
Expand Up @@ -14,7 +14,7 @@ def set_level(self, level):

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)
Expand Down

0 comments on commit 7200832

Please sign in to comment.