Commit e9e4cf8c authored by Jason R. Coombs's avatar Jason R. Coombs

Short circuit and dedent large block

parent 5df09426
......@@ -2028,7 +2028,8 @@ def find_on_path(importer, path_item, only=False):
path_item, os.path.join(path_item, 'EGG-INFO')
)
)
else:
return
try:
entries = os.listdir(path_item)
except (PermissionError, NotADirectoryError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment