diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-05-05 13:44:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-05-05 13:44:08 (GMT) |
commit | ef5a4636d078d87d30885a9c371671a217754c8d (patch) | |
tree | aa603e036c2e9e0129a315f39e0fddd0e072c684 | |
parent | 8f46d655b96eea58e3a0ca8af1461b012a92a3d0 (diff) | |
download | cpython-ef5a4636d078d87d30885a9c371671a217754c8d.zip cpython-ef5a4636d078d87d30885a9c371671a217754c8d.tar.gz cpython-ef5a4636d078d87d30885a9c371671a217754c8d.tar.bz2 |
don't append the bytecode suffix to the source suffixes global
-rw-r--r-- | Lib/imp.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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): |