summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-13 18:37:07 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-13 18:37:07 (GMT)
commitc680ae8002e955ef616741ae59338f0cde0f2ff8 (patch)
tree45268e98ad0c7847f540cbbeb9da58bdb26baf84 /Lib/urllib.py
parent2f8f4d36785202d337cded7d40eaeff4ae7b3038 (diff)
downloadcpython-c680ae8002e955ef616741ae59338f0cde0f2ff8.zip
cpython-c680ae8002e955ef616741ae59338f0cde0f2ff8.tar.gz
cpython-c680ae8002e955ef616741ae59338f0cde0f2ff8.tar.bz2
Added missing parameter in call to http_error_default();
reported by Neal Norwitz.
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 8c1852e..cdb2d0c 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)