mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-41043: Escape literal part of the path for glob(). (GH-20994)
This commit is contained in:
parent
a041e116db
commit
9355868458
24 changed files with 37 additions and 31 deletions
|
|
@ -39,7 +39,7 @@ if __name__ == "__main__":
|
|||
f = sys.stdout if use_stdout else open(outfile, "w")
|
||||
# mnemonic -> (library code, error prefix, header file)
|
||||
error_libraries = {}
|
||||
for error_header in glob.glob(os.path.join(openssl_inc, 'include/openssl/*err.h')):
|
||||
for error_header in glob.glob(os.path.join(glob.escape(openssl_inc), 'include/openssl/*err.h')):
|
||||
base = os.path.basename(error_header)
|
||||
if base in ('buffererr.h', 'objectserr.h', 'storeerr.h'):
|
||||
# Deprecated in 3.0.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue