Commit fd77197b authored by Jason R. Coombs's avatar Jason R. Coombs

Add 'urlsplit' and 'urlunsplit' to compat module

parent 9a3cc1cd
...@@ -29,7 +29,7 @@ if sys.version_info[0] < 3: ...@@ -29,7 +29,7 @@ if sys.version_info[0] < 3:
from urllib import url2pathname from urllib import url2pathname
import urllib2 import urllib2
from urllib2 import urlopen, HTTPError, URLError, unquote, splituser from urllib2 import urlopen, HTTPError, URLError, unquote, splituser
from urlparse import urlparse, urlunparse, urljoin from urlparse import urlparse, urlunparse, urljoin, urlsplit, urlunsplit
xrange = xrange xrange = xrange
filterfalse = itertools.ifilterfalse filterfalse = itertools.ifilterfalse
...@@ -72,7 +72,10 @@ else: ...@@ -72,7 +72,10 @@ else:
from urllib.error import HTTPError, URLError from urllib.error import HTTPError, URLError
import urllib.request as urllib2 import urllib.request as urllib2
from urllib.request import urlopen, url2pathname from urllib.request import urlopen, url2pathname
from urllib.parse import urlparse, urlunparse, unquote, splituser, urljoin from urllib.parse import (
urlparse, urlunparse, unquote, splituser, urljoin, urlsplit,
urlunsplit,
)
xrange = range xrange = range
filterfalse = itertools.filterfalse filterfalse = itertools.filterfalse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment