From: Anthony Baxter Date: Wed, 5 Dec 2001 06:37:51 +0000 (+0000) Subject: backport 1.134: X-Git-Tag: v2.1.2c1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=598d8e6f79611fdd8b12e37e0ebe45be1ed837e6;p=thirdparty%2FPython%2Fcpython.git backport 1.134: Added missing parameter in call to http_error_default(); reported by Neal Norwitz. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 084d32af30b0..4c6111f9700f 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -572,7 +572,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)