diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-06-14 08:25:28 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-06-14 08:45:49 +0200 |
commit | 7e0c84151781dc4879a4d8807837a8b9be03549d (patch) | |
tree | 1c515d676ac54b0214820c637242a1c3e0f3350c /astroid/rebuilder.py | |
parent | 7de56b0416f575b589f29ed78df66182b33f2698 (diff) | |
download | astroid-git-7e0c84151781dc4879a4d8807837a8b9be03549d.tar.gz |
Fix linting
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r-- | astroid/rebuilder.py | 6 |
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 |