summaryrefslogtreecommitdiff
path: root/astroid/rebuilder.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-06-14 08:25:28 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-14 08:45:49 +0200
commit7e0c84151781dc4879a4d8807837a8b9be03549d (patch)
tree1c515d676ac54b0214820c637242a1c3e0f3350c /astroid/rebuilder.py
parent7de56b0416f575b589f29ed78df66182b33f2698 (diff)
downloadastroid-git-7e0c84151781dc4879a4d8807837a8b9be03549d.tar.gz
Fix linting
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r--astroid/rebuilder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index ba99741f..6f857441 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -130,9 +130,9 @@ class TreeRebuilder(object):
if PY37 and hasattr(node, 'docstring'):
doc = node.docstring
return node, doc
- elif (node.body
- and isinstance(node.body[0], self._parser_module.Expr)
- and isinstance(node.body[0].value, self._parser_module.Str)):
+ if (node.body
+ and isinstance(node.body[0], self._parser_module.Expr)
+ and isinstance(node.body[0].value, self._parser_module.Str)):
doc = node.body[0].value.s
node.body = node.body[1:]
return node, doc