mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Partial introduction of bools where appropriate.
This commit is contained in:
parent
b8bff3f4a9
commit
8ca162f417
18 changed files with 96 additions and 94 deletions
|
@ -546,13 +546,13 @@ class HTTPPasswordMgr:
|
|||
Both args must be URIs in reduced form.
|
||||
"""
|
||||
if base == test:
|
||||
return 1
|
||||
return True
|
||||
if base[0] != test[0]:
|
||||
return 0
|
||||
return False
|
||||
common = posixpath.commonprefix((base[1], test[1]))
|
||||
if len(common) == len(base[1]):
|
||||
return 1
|
||||
return 0
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue