* 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:
Guido van Rossum 1994-08-12 13:16:50 +00:00
parent dc1cdca10b
commit 3f9a6ec9e6
2 changed files with 6 additions and 6 deletions

View file

@ -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] = \