mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
* Lib/rfc822.py: fix two bugs: error in readheaders interpreting
regex.match() result, and wrong logic in getfirstmatchingheader() when the same header occurs twice consecutively
This commit is contained in:
parent
dc1cdca10b
commit
3f9a6ec9e6
2 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ class URLopener:
|
|||
dirs, file = dirs[:-1], dirs[-1]
|
||||
if dirs and not dirs[0]: dirs = dirs[1:]
|
||||
key = (user, host, port, string.joinfields(dirs, '/'))
|
||||
print 'key =', key
|
||||
## print 'key =', key
|
||||
try:
|
||||
if not self.ftpcache.has_key(key):
|
||||
self.ftpcache[key] = \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue