diff options
Diffstat (limited to 'extras')
| -rwxr-xr-x | extras/csrf_migration_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/csrf_migration_helper.py b/extras/csrf_migration_helper.py index 94b5a20802..0e13163b4f 100755 --- a/extras/csrf_migration_helper.py +++ b/extras/csrf_migration_helper.py @@ -173,7 +173,7 @@ class Template(object): fd = open(self.absolute_filename) try: content = fd.read().decode(TEMPLATE_ENCODING) - except UnicodeDecodeError, e: + except UnicodeDecodeError as e: message = '%s in %s' % ( e[4], self.absolute_filename.encode('UTF-8', 'ignore')) raise UnicodeDecodeError(*(e.args[:4] + (message,))) |
