Blob Blame History Raw
diff -Nur anyjson-0.3.3/anyjson/__init__.py anyjson-0.3.3.py34/anyjson/__init__.py
--- anyjson-0.3.3/anyjson/__init__.py	2012-06-22 01:08:51.000000000 +0200
+++ anyjson-0.3.3.py34/anyjson/__init__.py	2016-05-15 00:28:10.166808278 +0200
@@ -85,7 +85,7 @@
         TypeError if the object could not be serialized."""
         try:
             return self._encode(data)
-        except self._encode_error, exc:
+        except self._encode_error as exc:
             raise TypeError, TypeError(*exc.args), sys.exc_info()[2]
     serialize = dumps
 
@@ -97,7 +97,7 @@
             if self._filedecode and not isinstance(s, basestring):
                 return self._filedecode(StringIO(s))
             return self._decode(s)
-        except self._decode_error, exc:
+        except self._decode_error as exc:
             raise ValueError, ValueError(*exc.args), sys.exc_info()[2]
     deserialize = loads