diff options
Diffstat (limited to 'pies/urllib/request.py')
-rw-r--r-- | pies/urllib/request.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pies/urllib/request.py b/pies/urllib/request.py new file mode 100644 index 0000000..a1470f1 --- /dev/null +++ b/pies/urllib/request.py @@ -0,0 +1,16 @@ + + +from __future__ import absolute_import + +from ..version_info import PY3 + +if PY3: + from urllib.request import * +else: + from urllib import FancyURLopener, getproxies, pathname2url, url2pathname, urlcleanup, URLopener, urlretrieve + from urllib2 import (AbstractBasicAuthHandler, AbstractDigestAuthHandler, BaseHandler, build_opener, + CacheFTPHandler, FileHandler, FTPHandler, HTTPBasicAuthHandler, HTTPCookieProcessor, + HTTPDefaultErrorHandler, HTTPDigestAuthHandler, HTTPHandler, HTTPPasswordMgr, + HTTPPasswordMgrWithDefaultRealm, HTTPRedirectHandler, HTTPSHandler, install_opener, + OpenerDirector, ProxyBasicAuthHandler, ProxyDigestAuthHandler, ProxyHandler, Request, + UnknownHandler, urlopen) |