mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Whitespace normalization.
This commit is contained in:
parent
c7ca3ffba3
commit
ab9ba27dc0
12 changed files with 54 additions and 55 deletions
|
@ -107,4 +107,3 @@ class GlobTests(unittest.TestCase):
|
||||||
os.path.join('aab', 'F')]))
|
os.path.join('aab', 'F')]))
|
||||||
|
|
||||||
run_unittest(GlobTests)
|
run_unittest(GlobTests)
|
||||||
|
|
||||||
|
|
|
@ -1353,9 +1353,9 @@ elif os.name == 'nt':
|
||||||
# print proxyOverride
|
# print proxyOverride
|
||||||
# now check if we match one of the registry values.
|
# now check if we match one of the registry values.
|
||||||
for test in proxyOverride:
|
for test in proxyOverride:
|
||||||
test = test.replace(".", r"\.") # mask dots
|
test = test.replace(".", r"\.") # mask dots
|
||||||
test = test.replace("*", r".*") # change glob sequence
|
test = test.replace("*", r".*") # change glob sequence
|
||||||
test = test.replace("?", r".") # change glob char
|
test = test.replace("?", r".") # change glob char
|
||||||
for val in host:
|
for val in host:
|
||||||
# print "%s <--> %s" %( test, val )
|
# print "%s <--> %s" %( test, val )
|
||||||
if re.match(test, val, re.I):
|
if re.match(test, val, re.I):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue