diff options
Diffstat (limited to 'modules/language/python/module/urllib/request.py')
-rw-r--r-- | modules/language/python/module/urllib/request.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/language/python/module/urllib/request.py b/modules/language/python/module/urllib/request.py index d5372e5..5df7af8 100644 --- a/modules/language/python/module/urllib/request.py +++ b/modules/language/python/module/urllib/request.py @@ -82,7 +82,7 @@ f = urllib.request.urlopen('http://www.python.org/') # Possible extensions: # complex proxies XXX not sure what exactly was meant by this # abstract factory for opener -pk(1) + import base64 import bisect import email @@ -100,7 +100,7 @@ import collections import tempfile import contextlib import warnings -pk(2) + from urllib.error import URLError, HTTPError, ContentTooShortError from urllib.parse import ( @@ -109,7 +109,7 @@ from urllib.parse import ( splitattr, splitquery, splitvalue, splittag, to_bytes, unquote_to_bytes, urlunparse) from urllib.response import addinfourl, addclosehook -pk(3) + # check for SSL try: import ssl @@ -1647,7 +1647,9 @@ MAXFTPCACHE = 10 # Trim the ftp cache beyond this size # Helper for non-unix systems if os.name == 'nt': - from nturl2path import url2pathname, pathname2url + from nturl2path import url2pathname_, pathname2url_ + url2pathname = url2pathname_ + pathname2url = pathname2url_ else: def url2pathname(pathname): """OS-specific conversion from a relative URL of the 'file' scheme |