summaryrefslogtreecommitdiff
path: root/sphinx/pycode/nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/pycode/nodes.py')
-rw-r--r--sphinx/pycode/nodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/pycode/nodes.py b/sphinx/pycode/nodes.py
index b6b3355c0..099fc2cf2 100644
--- a/sphinx/pycode/nodes.py
+++ b/sphinx/pycode/nodes.py
@@ -39,7 +39,7 @@ class BaseNode(object):
if child is self:
if i == 0:
return None
- return self.parent.children[i-1]
+ return self.parent.children[i - 1]
def get_next_sibling(self):
"""Return next child in parent's children, or None."""
@@ -48,7 +48,7 @@ class BaseNode(object):
for i, child in enumerate(self.parent.children):
if child is self:
try:
- return self.parent.children[i+1]
+ return self.parent.children[i + 1]
except IndexError:
return None