diff --git a/plugin/UltiSnips/text_objects/_transformation.py b/plugin/UltiSnips/text_objects/_transformation.py index 67784d6..96d1b5d 100755 --- a/plugin/UltiSnips/text_objects/_transformation.py +++ b/plugin/UltiSnips/text_objects/_transformation.py @@ -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")