summaryrefslogtreecommitdiff
path: root/sphinx/util/inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/inventory.py')
-rw-r--r--sphinx/util/inventory.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/util/inventory.py b/sphinx/util/inventory.py
index 1f0530d82..5e3923abc 100644
--- a/sphinx/util/inventory.py
+++ b/sphinx/util/inventory.py
@@ -143,11 +143,11 @@ class InventoryFile(object):
if not m:
continue
name, type, prio, location, dispname = m.groups()
- if type == 'py:module' and type in invdata and \
- name in invdata[type]: # due to a bug in 1.1 and below,
- # two inventory entries are created
- # for Python modules, and the first
- # one is correct
+ if type == 'py:module' and type in invdata and name in invdata[type]:
+ # due to a bug in 1.1 and below,
+ # two inventory entries are created
+ # for Python modules, and the first
+ # one is correct
continue
if location.endswith(u'$'):
location = location[:-1] + name