Skip to content

Commit

Permalink
Python 3: urllib
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 21, 2017
1 parent 139860c commit 596d6fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zope/server/http/httprequestparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
processing but threads to do work.
"""
import re
from urllib import unquote
import urlparse

from six.moves.urllib.parse import unquote, urlsplit

from zope.server.fixedstreamreceiver import FixedStreamReceiver
from zope.server.buffers import OverflowableBuffer
Expand Down Expand Up @@ -188,7 +188,7 @@ def crack_first_line(self):

def split_uri(self):
(self.proxy_scheme, self.proxy_netloc, path, self.query, self.fragment) = \
urlparse.urlsplit(self.uri)
urlsplit(self.uri)
if path and '%' in path:
path = unquote(path)
self.path = path
Expand Down

0 comments on commit 596d6fc

Please sign in to comment.