mirror of https://github.com/python/cpython
merge from push conflict.
This commit is contained in:
commit
c90d02c917
|
@ -50,6 +50,17 @@ def _find_module(fullname, path=None):
|
||||||
path = module.__path__
|
path = module.__path__
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise ImportError('No source for module ' + module.__name__)
|
raise ImportError('No source for module ' + module.__name__)
|
||||||
|
if descr[2] != imp.PY_SOURCE:
|
||||||
|
# If all of the above fails and didn't raise an exception,fallback
|
||||||
|
# to a straight import which can find __init__.py in a package.
|
||||||
|
m = __import__(fullname)
|
||||||
|
try:
|
||||||
|
filename = m.__file__
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
file = None
|
||||||
|
descr = os.path.splitext(filename), None, imp.PY_SOURCE
|
||||||
return file, filename, descr
|
return file, filename, descr
|
||||||
|
|
||||||
class EditorWindow(object):
|
class EditorWindow(object):
|
||||||
|
|
|
@ -227,6 +227,12 @@ Build
|
||||||
- Issue #11268: Prevent Mac OS X Installer failure if Documentation
|
- Issue #11268: Prevent Mac OS X Installer failure if Documentation
|
||||||
package had previously been installed.
|
package had previously been installed.
|
||||||
|
|
||||||
|
IDLE
|
||||||
|
----
|
||||||
|
|
||||||
|
- Issue #11718: IDLE's open module dialog couldn't find the __init__.py
|
||||||
|
file in a package.
|
||||||
|
|
||||||
Tools/Demos
|
Tools/Demos
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue