summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 990955a..cdb3a22 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -165,7 +165,7 @@ class GopherError(URLError):
pass
# copied from cookielib.py
-cut_port_re = re.compile(r":\d+$")
+_cut_port_re = re.compile(r":\d+$")
def request_host(request):
"""Return request-host, as defined by RFC 2965.
@@ -179,7 +179,7 @@ def request_host(request):
host = request.get_header("Host", "")
# remove port, if present
- host = cut_port_re.sub("", host, 1)
+ host = _cut_port_re.sub("", host, 1)
return host.lower()
class Request: