diff options
author | Christian Tismer <tismer@stackless.com> | 2017-12-21 10:54:59 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2017-12-21 10:03:21 +0000 |
commit | 8d8437517a7618aab502d3d0f70c9ab5840d9993 (patch) | |
tree | bc0a6f1acb3260ec45860df13ee0c66c631d51b6 /sources | |
parent | 54457efbf96bf644f44a9ac1b55dc98847dad73e (diff) |
Adjust inheritance_diagram.py exception to Python 3 syntax
The file inheritance_diagram.py still had the old python 2 syntax.
Obviously nobody tried to build documentation in Python 3...
Change-Id: I0e245940a2593a1a5e93c7f538d8e73ca1001a0f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside2/doc/inheritance_diagram.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/doc/inheritance_diagram.py b/sources/pyside2/doc/inheritance_diagram.py index 616b47057..a7f376ccd 100644 --- a/sources/pyside2/doc/inheritance_diagram.py +++ b/sources/pyside2/doc/inheritance_diagram.py @@ -295,7 +295,7 @@ class InheritanceDiagram(Directive): graph = InheritanceGraph( class_names, env.temp_data.get('py:module'), parts=node['parts']) - except InheritanceException, err: + except InheritanceException as err: return [node.document.reporter.warning(err.args[0], line=self.lineno)] |