Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef5a463

Browse files
committed
don't append the bytecode suffix to the source suffixes global
1 parent 8f46d65 commit ef5a463

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/imp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ def load_compiled(name, pathname, file=None):
126126
# XXX deprecate
127127
def load_package(name, path):
128128
if os.path.isdir(path):
129-
extensions = _bootstrap._SOURCE_SUFFIXES
130-
extensions += [_bootstrap._BYTECODE_SUFFIX]
129+
extensions = _bootstrap._SOURCE_SUFFIXES + [_bootstrap._BYTECODE_SUFFIX]
131130
for extension in extensions:
132131
path = os.path.join(path, '__init__'+extension)
133132
if os.path.exists(path):

0 commit comments

Comments
 (0)