diff options
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 3c2c104..cfb4f64 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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): |