diff options
author | Guido van Rossum <guido@python.org> | 2002-04-07 06:36:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-07 06:36:23 (GMT) |
commit | 8ca162f417c6a72faf02831457b4054a73087b78 (patch) | |
tree | 2d882f9a1fe596830f47f1132a5294633ba05f33 /Lib/urllib2.py | |
parent | b8bff3f4a9e3be8b43a394d3795a46af2831fe5e (diff) | |
download | cpython-8ca162f417c6a72faf02831457b4054a73087b78.zip cpython-8ca162f417c6a72faf02831457b4054a73087b78.tar.gz cpython-8ca162f417c6a72faf02831457b4054a73087b78.tar.bz2 |
Partial introduction of bools where appropriate.
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): |