Easy fixes for Python3
This commit is contained in:
parent
f34cf304f8
commit
a8de43b00f
|
@ -71,7 +71,7 @@ WEBSITE = 'http://diffuse.sourceforge.net/'
|
|||
# print a UTF-8 string using the host's native encoding
|
||||
def printMessage(s):
|
||||
try:
|
||||
print codecs.encode(unicode(s, 'utf_8'), sys.getfilesystemencoding())
|
||||
print(codecs.encode(unicode(s, 'utf_8'), sys.getfilesystemencoding()))
|
||||
except UnicodeEncodeError:
|
||||
pass
|
||||
|
||||
|
@ -2387,7 +2387,7 @@ class _Svn:
|
|||
result = []
|
||||
try:
|
||||
prev = self._getPreviousRevision(rev)
|
||||
except ValueError, e:
|
||||
except ValueError as e:
|
||||
logError(_('Error parsing revision %s.') % (rev, ))
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue