From c6397ba59fba25989b0ba37ad8267325757f1dcd Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 27 Feb 2013 14:24:35 -0700 Subject: 2to3: Updata `except Exception, msg:` syntax in files not in numpy/ . This should finish the updating of the exception syntax. --- doc/sphinxext/docscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext/docscrape.py') diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py index bbd3fcacc..f2d6d47f1 100644 --- a/doc/sphinxext/docscrape.py +++ b/doc/sphinxext/docscrape.py @@ -428,7 +428,7 @@ class FunctionDoc(NumpyDocString): argspec = inspect.formatargspec(*argspec) argspec = argspec.replace('*','\*') signature = '%s%s' % (func_name, argspec) - except TypeError, e: + except TypeError as e: signature = '%s()' % func_name self['Signature'] = signature -- cgit v1.2.1