From: Benjamin Peterson Date: Sat, 5 May 2012 13:44:08 +0000 (-0400) Subject: don't append the bytecode suffix to the source suffixes global X-Git-Tag: v3.3.0a4~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef5a4636d078d87d30885a9c371671a217754c8d;p=thirdparty%2FPython%2Fcpython.git don't append the bytecode suffix to the source suffixes global --- diff --git a/Lib/imp.py b/Lib/imp.py index 311634777538..717b6a43432a 100644 --- a/Lib/imp.py +++ b/Lib/imp.py @@ -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):