Skip to content

Commit ecfabd2

Browse files
committed
Merge in 0.10.1 changes.
2 parents 780240e + 0597c13 commit ecfabd2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ include ROADMAP
1313
include TODO
1414
include bpython/test/*.py
1515
include bpython/test/*.theme
16+
include bpython/translations/*/LC_MESSAGES/bpython.po
1617
include bpython/translations/*/LC_MESSAGES/bpython.mo

bpython/importcompletion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ def find_modules(path):
110110
# Perhaps a zip file
111111
return
112112

113-
for name in os.listdir(path):
113+
try:
114+
filenames = os.listdir(path)
115+
except EnvironmentError:
116+
filenames = []
117+
for name in filenames:
114118
if not any(name.endswith(suffix[0]) for suffix in imp.get_suffixes()):
115119
# Possibly a package
116120
if '.' in name:

0 commit comments

Comments
 (0)