don't append the bytecode suffix to the source suffixes global

This commit is contained in:
Benjamin Peterson 2012-05-05 09:44:08 -04:00
parent 8f46d655b9
commit ef5a4636d0
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ def load_compiled(name, pathname, file=None):
# XXX deprecate
def load_package(name, path):
if os.path.isdir(path):
extensions = _bootstrap._SOURCE_SUFFIXES
extensions += [_bootstrap._BYTECODE_SUFFIX]
extensions = _bootstrap._SOURCE_SUFFIXES + [_bootstrap._BYTECODE_SUFFIX]
for extension in extensions:
path = os.path.join(path, '__init__'+extension)
if os.path.exists(path):