Visitar URL original
Remove useless branch · bpython/bpython@3ded87a · GitHub
Skip to content

Commit 3ded87a

Browse files
committed
Remove useless branch
pathname is never used if is_package is False.
1 parent 65fff86 commit 3ded87a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎bpython/importcompletion.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ def find_modules(self, path):
185185
if spec.submodule_search_locations is not None:
186186
pathname = spec.submodule_search_locations[0]
187187
is_package = True
188-
else:
189-
pathname = spec.origin
190188
except (ImportError, OSError, SyntaxError):
191189
continue
192190
except UnicodeEncodeError:

0 commit comments

Comments
 (0)