Skip to content

Commit 4b1ddb4

Browse files
yan12125hroncok
authored andcommitted
Fix urllib.request imports for Python 3.8 compatibility
Fixes #447
1 parent c423752 commit 4b1ddb4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/future/moves/urllib/request.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@
1111
proxy_bypass,
1212
quote,
1313
request_host,
14-
splitattr,
15-
splithost,
16-
splitpasswd,
17-
splitport,
18-
splitquery,
19-
splittag,
20-
splittype,
21-
splituser,
22-
splitvalue,
2314
thishost,
24-
to_bytes,
2515
unquote,
26-
unwrap,
2716
url2pathname,
2817
urlcleanup,
2918
urljoin,
@@ -32,6 +21,18 @@
3221
urlretrieve,
3322
urlsplit,
3423
urlunparse)
24+
25+
from urllib.parse import (splitattr,
26+
splithost,
27+
splitpasswd,
28+
splitport,
29+
splitquery,
30+
splittag,
31+
splittype,
32+
splituser,
33+
splitvalue,
34+
to_bytes,
35+
unwrap)
3536
else:
3637
__future_module__ = True
3738
with suspend_hooks():

0 commit comments

Comments
 (0)