From 8d8437517a7618aab502d3d0f70c9ab5840d9993 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Thu, 21 Dec 2017 10:54:59 +0100 Subject: 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 --- sources/pyside2/doc/inheritance_diagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources') 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)] -- cgit v1.2.3