diff options
author | Jean Helie <jean@semmle.com> | 2017-06-26 14:01:15 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-06-26 14:01:15 +0100 |
commit | c6533b6c386dc0f4009e5f3c5c545dde4d1b48a4 (patch) | |
tree | fac4fa235d93e25373608412968a30f974fecd85 /numpy/_import_tools.py | |
parent | 62d3e4e641a1aec201e5f890c851f91226e75ded (diff) | |
download | numpy-c6533b6c386dc0f4009e5f3c5c545dde4d1b48a4.tar.gz |
MAINT: Fix alerts from http://lgtm.com (#9292)
* make exception raising 2/3 compatible
* remove unnecesary else statement after while loop without break clause
* ensure file is always enclosed even in the event of an exception
* ensure list comprehension variable does not override enclosing loop variable
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r-- | numpy/_import_tools.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py index 18ac78d29..cb8bc477c 100644 --- a/numpy/_import_tools.py +++ b/numpy/_import_tools.py @@ -303,8 +303,7 @@ class PackageLoader(object): lines.append(line) line = tab line += ' ' + word - else: - lines.append(line) + lines.append(line) return '\n'.join(lines) def get_pkgdocs(self): |