diff options
author | Georg Brandl <georg@python.org> | 2014-01-12 17:19:58 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-12 17:19:58 +0100 |
commit | 76186ff8b88ee11dc4d31e70ff4e6babe34ae733 (patch) | |
tree | e76a1958bb0885c58ad82ef760c94da40717d83f /sphinx/domains/python.py | |
parent | dd9650fd0476655bddbe99c50e76ac52774e0e11 (diff) | |
download | sphinx-76186ff8b88ee11dc4d31e70ff4e6babe34ae733.tar.gz |
Closes #1233: Allow finding both Python classes and exceptions with the "class" and "exc" roles in intersphinx.
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 0c08b60b..a7ed7557 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -559,8 +559,8 @@ class PythonDomain(Domain): object_types = { 'function': ObjType(l_('function'), 'func', 'obj'), 'data': ObjType(l_('data'), 'data', 'obj'), - 'class': ObjType(l_('class'), 'class', 'obj'), - 'exception': ObjType(l_('exception'), 'exc', 'obj'), + 'class': ObjType(l_('class'), 'class', 'exc', 'obj'), + 'exception': ObjType(l_('exception'), 'exc', 'class', 'obj'), 'method': ObjType(l_('method'), 'meth', 'obj'), 'classmethod': ObjType(l_('class method'), 'meth', 'obj'), 'staticmethod': ObjType(l_('static method'), 'meth', 'obj'), |