Fix for Python 3

This commit is contained in:
mohd-akram 2013-10-23 09:55:24 -07:00
parent 331eae1529
commit 49e633b4ec

View File

@ -130,7 +130,7 @@ class TextObjectTransformation(object):
try:
import unidecode
text = unidecode.unidecode(text)
except Exception, e:
except Exception as e:
if UNIDECODE_ALERT_RAISED == False:
UNIDECODE_ALERT_RAISED = True
sys.stderr.write("Please install unidecode python package in order to be able to make ascii conversions.\n")