From: Fred Drake Date: Sat, 13 Oct 2001 18:37:07 +0000 (+0000) Subject: Added missing parameter in call to http_error_default(); X-Git-Tag: v2.2.1c1~1293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c680ae8002e955ef616741ae59338f0cde0f2ff8;p=thirdparty%2FPython%2Fcpython.git Added missing parameter in call to http_error_default(); reported by Neal Norwitz. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 8c1852ef17d3..cdb2d0cd3dfb 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -584,7 +584,7 @@ class FancyURLopener(URLopener): http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-v10-spec-00.txt""" if not headers.has_key('www-authenticate'): URLopener.http_error_default(self, url, fp, - errmsg, headers) + errcode, errmsg, headers) stuff = headers['www-authenticate'] import re match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff)