mirror of https://github.com/python/cpython
Issue #11186: pydoc ignores a module if its name contains a surrogate character
in the index of modules.
This commit is contained in:
parent
ea4b46f9a9
commit
4d65224f68
|
@ -952,6 +952,9 @@ class HTMLDoc(Doc):
|
||||||
modpkgs = []
|
modpkgs = []
|
||||||
if shadowed is None: shadowed = {}
|
if shadowed is None: shadowed = {}
|
||||||
for importer, name, ispkg in pkgutil.iter_modules([dir]):
|
for importer, name, ispkg in pkgutil.iter_modules([dir]):
|
||||||
|
if any((0xD800 <= ord(ch) <= 0xDFFF) for ch in name):
|
||||||
|
# ignore a module if its name contains a surrogate character
|
||||||
|
continue
|
||||||
modpkgs.append((name, '', ispkg, name in shadowed))
|
modpkgs.append((name, '', ispkg, name in shadowed))
|
||||||
shadowed[name] = 1
|
shadowed[name] = 1
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #11186: pydoc ignores a module if its name contains a surrogate
|
||||||
|
character in the index of modules.
|
||||||
|
|
||||||
- Issue #11815: Use a light-weight SimpleQueue for the result queue in
|
- Issue #11815: Use a light-weight SimpleQueue for the result queue in
|
||||||
concurrent.futures.ProcessPoolExecutor.
|
concurrent.futures.ProcessPoolExecutor.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue