noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / lang / python / python3 / patches / 008-fix-distutils-path-creation.patch
1 diff --git a/Lib/imp.py b/Lib/imp.py
2 index 781ff23..beeac70 100644
3 --- a/Lib/imp.py
4 +++ b/Lib/imp.py
5 @@ -203,8 +203,9 @@ def load_package(name, path):
6 extensions = (machinery.SOURCE_SUFFIXES[:] +
7 machinery.BYTECODE_SUFFIXES[:])
8 for extension in extensions:
9 - path = os.path.join(path, '__init__'+extension)
10 - if os.path.exists(path):
11 + init_path = os.path.join(path, '__init__'+extension)
12 + if os.path.exists(init_path):
13 + path = init_path
14 break
15 else:
16 raise ValueError('{!r} is not a package'.format(path))