Kaydet (Commit) ef5a4636 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

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

üst 8f46d655
......@@ -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):
......
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