summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-04 23:39:13 +0100
committerGeorg Brandl <georg@python.org>2011-01-04 23:39:13 +0100
commitd714e312146fddbd08a4761deae73ea7f2d3b8c0 (patch)
tree13f87dbe22c870af4974083c2d46f5138676bd48 /sphinx/domains/python.py
parent9cb059734c1c552ae5045a459a4a2e211d00070b (diff)
downloadsphinx-d714e312146fddbd08a4761deae73ea7f2d3b8c0.tar.gz
#581: Fix traceback in Python domain for empty cross-reference targets.
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
index 4c216a43..d2242cdd 100644
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -585,7 +585,7 @@ class PythonDomain(Domain):
name = name[:-2]
if not name:
- return None, None
+ return []
objects = self.data['objects']
matches = []