From 60d4846e0fa4ec0e76ed6c963d13f74015939875 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 12 Jan 2017 10:07:05 +0900 Subject: Fix flake8 violations --- sphinx/pycode/__init__.py | 2 +- sphinx/pycode/nodes.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sphinx/pycode') diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py index baf5c0068..d1d151f6f 100644 --- a/sphinx/pycode/__init__.py +++ b/sphinx/pycode/__init__.py @@ -364,4 +364,4 @@ if __name__ == '__main__': pprint.pprint(ma.find_tags()) x3 = time.time() # print nodes.nice_repr(ma.parsetree, number2name) - print("tokenizing %.4f, parsing %.4f, finding %.4f" % (x1-x0, x2-x1, x3-x2)) + print("tokenizing %.4f, parsing %.4f, finding %.4f" % (x1 - x0, x2 - x1, x3 - x2)) diff --git a/sphinx/pycode/nodes.py b/sphinx/pycode/nodes.py index ee40f3c0d..e3a1bc9f6 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 -- cgit v1.2.1