From 49e633b4ec6b2b39c90852004906c4c5f2df7958 Mon Sep 17 00:00:00 2001 From: mohd-akram Date: Wed, 23 Oct 2013 09:55:24 -0700 Subject: [PATCH] Fix for Python 3 --- plugin/UltiSnips/text_objects/_transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")