summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-23 11:44:14 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-23 11:44:14 (GMT)
commit029986af249f71a5603110a0f5f0b18d0f335828 (patch)
tree90fafdd902e370d05952d900b7270043ad4c0053 /Lib/logging
parent0f7ede45693be57ba51c7aa23a0d841f160de874 (diff)
downloadcpython-029986af249f71a5603110a0f5f0b18d0f335828.zip
cpython-029986af249f71a5603110a0f5f0b18d0f335828.tar.gz
cpython-029986af249f71a5603110a0f5f0b18d0f335828.tar.bz2
Fix old urllib/urllib2/urlparse usage.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 29c398d..1e69120 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -1002,11 +1002,11 @@ class HTTPHandler(logging.Handler):
Send the record to the Web server as an URL-encoded dictionary
"""
try:
- import http.client, urllib
+ import http.client, urllib.parse
host = self.host
h = http.client.HTTP(host)
url = self.url
- data = urllib.urlencode(self.mapLogRecord(record))
+ data = urllib.parse.urlencode(self.mapLogRecord(record))
if self.method == "GET":
if (url.find('?') >= 0):
sep = '&'