src/reportlab/lib/yaml.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
--- a/src/reportlab/lib/yaml.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/src/reportlab/lib/yaml.py	Tue Apr 30 14:20:22 2013 +0100
@@ -105,7 +105,7 @@
                 #we have to hack the traceback
                 try:
                     getattr(self,cmd)(*args)
-                except TypeError, err:
+                except TypeError as err:
                     sys.stderr.write("Parser method: %s(*%s) %s at line %d\n" % (cmd, args, err, self._lineNo))
                     raise
             else: