aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/pyside2/doc/inheritance_diagram.py2
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)]