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.
This commit is contained in:
parent
0e3e85c366
commit
7200832465
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class Messenger(object):
|
||||||
|
|
||||||
def log(self, level, message):
|
def log(self, level, message):
|
||||||
if (level >= self._level):
|
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):
|
def debug(self, message):
|
||||||
self.log(Level.DEBUG, message)
|
self.log(Level.DEBUG, message)
|
||||||
|
|
Loading…
Reference in a new issue