second commit
This commit is contained in:
5
env/lib/python3.11/site-packages/future/moves/urllib/__init__.py
vendored
Normal file
5
env/lib/python3.11/site-packages/future/moves/urllib/__init__.py
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
from __future__ import absolute_import
|
||||
from future.utils import PY3
|
||||
|
||||
if not PY3:
|
||||
__future_module__ = True
|
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/__init__.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/__init__.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/error.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/error.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/parse.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/parse.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/request.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/request.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/response.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/response.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/robotparser.cpython-311.pyc
vendored
Normal file
BIN
env/lib/python3.11/site-packages/future/moves/urllib/__pycache__/robotparser.cpython-311.pyc
vendored
Normal file
Binary file not shown.
16
env/lib/python3.11/site-packages/future/moves/urllib/error.py
vendored
Normal file
16
env/lib/python3.11/site-packages/future/moves/urllib/error.py
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
from __future__ import absolute_import
|
||||
from future.standard_library import suspend_hooks
|
||||
|
||||
from future.utils import PY3
|
||||
|
||||
if PY3:
|
||||
from urllib.error import *
|
||||
else:
|
||||
__future_module__ = True
|
||||
|
||||
# We use this method to get at the original Py2 urllib before any renaming magic
|
||||
# ContentTooShortError = sys.py2_modules['urllib'].ContentTooShortError
|
||||
|
||||
with suspend_hooks():
|
||||
from urllib import ContentTooShortError
|
||||
from urllib2 import URLError, HTTPError
|
28
env/lib/python3.11/site-packages/future/moves/urllib/parse.py
vendored
Normal file
28
env/lib/python3.11/site-packages/future/moves/urllib/parse.py
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
from __future__ import absolute_import
|
||||
from future.standard_library import suspend_hooks
|
||||
|
||||
from future.utils import PY3
|
||||
|
||||
if PY3:
|
||||
from urllib.parse import *
|
||||
else:
|
||||
__future_module__ = True
|
||||
from urlparse import (ParseResult, SplitResult, parse_qs, parse_qsl,
|
||||
urldefrag, urljoin, urlparse, urlsplit,
|
||||
urlunparse, urlunsplit)
|
||||
|
||||
# we use this method to get at the original py2 urllib before any renaming
|
||||
# quote = sys.py2_modules['urllib'].quote
|
||||
# quote_plus = sys.py2_modules['urllib'].quote_plus
|
||||
# unquote = sys.py2_modules['urllib'].unquote
|
||||
# unquote_plus = sys.py2_modules['urllib'].unquote_plus
|
||||
# urlencode = sys.py2_modules['urllib'].urlencode
|
||||
# splitquery = sys.py2_modules['urllib'].splitquery
|
||||
|
||||
with suspend_hooks():
|
||||
from urllib import (quote,
|
||||
quote_plus,
|
||||
unquote,
|
||||
unquote_plus,
|
||||
urlencode,
|
||||
splitquery)
|
94
env/lib/python3.11/site-packages/future/moves/urllib/request.py
vendored
Normal file
94
env/lib/python3.11/site-packages/future/moves/urllib/request.py
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from future.standard_library import suspend_hooks
|
||||
from future.utils import PY3
|
||||
|
||||
if PY3:
|
||||
from urllib.request import *
|
||||
# This aren't in __all__:
|
||||
from urllib.request import (getproxies,
|
||||
pathname2url,
|
||||
proxy_bypass,
|
||||
quote,
|
||||
request_host,
|
||||
thishost,
|
||||
unquote,
|
||||
url2pathname,
|
||||
urlcleanup,
|
||||
urljoin,
|
||||
urlopen,
|
||||
urlparse,
|
||||
urlretrieve,
|
||||
urlsplit,
|
||||
urlunparse)
|
||||
|
||||
from urllib.parse import (splitattr,
|
||||
splithost,
|
||||
splitpasswd,
|
||||
splitport,
|
||||
splitquery,
|
||||
splittag,
|
||||
splittype,
|
||||
splituser,
|
||||
splitvalue,
|
||||
to_bytes,
|
||||
unwrap)
|
||||
else:
|
||||
__future_module__ = True
|
||||
with suspend_hooks():
|
||||
from urllib import *
|
||||
from urllib2 import *
|
||||
from urlparse import *
|
||||
|
||||
# Rename:
|
||||
from urllib import toBytes # missing from __all__ on Py2.6
|
||||
to_bytes = toBytes
|
||||
|
||||
# from urllib import (pathname2url,
|
||||
# url2pathname,
|
||||
# getproxies,
|
||||
# urlretrieve,
|
||||
# urlcleanup,
|
||||
# URLopener,
|
||||
# FancyURLopener,
|
||||
# proxy_bypass)
|
||||
|
||||
# from urllib2 import (
|
||||
# AbstractBasicAuthHandler,
|
||||
# AbstractDigestAuthHandler,
|
||||
# BaseHandler,
|
||||
# CacheFTPHandler,
|
||||
# FileHandler,
|
||||
# FTPHandler,
|
||||
# HTTPBasicAuthHandler,
|
||||
# HTTPCookieProcessor,
|
||||
# HTTPDefaultErrorHandler,
|
||||
# HTTPDigestAuthHandler,
|
||||
# HTTPErrorProcessor,
|
||||
# HTTPHandler,
|
||||
# HTTPPasswordMgr,
|
||||
# HTTPPasswordMgrWithDefaultRealm,
|
||||
# HTTPRedirectHandler,
|
||||
# HTTPSHandler,
|
||||
# URLError,
|
||||
# build_opener,
|
||||
# install_opener,
|
||||
# OpenerDirector,
|
||||
# ProxyBasicAuthHandler,
|
||||
# ProxyDigestAuthHandler,
|
||||
# ProxyHandler,
|
||||
# Request,
|
||||
# UnknownHandler,
|
||||
# urlopen,
|
||||
# )
|
||||
|
||||
# from urlparse import (
|
||||
# urldefrag
|
||||
# urljoin,
|
||||
# urlparse,
|
||||
# urlunparse,
|
||||
# urlsplit,
|
||||
# urlunsplit,
|
||||
# parse_qs,
|
||||
# parse_q"
|
||||
# )
|
12
env/lib/python3.11/site-packages/future/moves/urllib/response.py
vendored
Normal file
12
env/lib/python3.11/site-packages/future/moves/urllib/response.py
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
from future import standard_library
|
||||
from future.utils import PY3
|
||||
|
||||
if PY3:
|
||||
from urllib.response import *
|
||||
else:
|
||||
__future_module__ = True
|
||||
with standard_library.suspend_hooks():
|
||||
from urllib import (addbase,
|
||||
addclosehook,
|
||||
addinfo,
|
||||
addinfourl)
|
8
env/lib/python3.11/site-packages/future/moves/urllib/robotparser.py
vendored
Normal file
8
env/lib/python3.11/site-packages/future/moves/urllib/robotparser.py
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
from __future__ import absolute_import
|
||||
from future.utils import PY3
|
||||
|
||||
if PY3:
|
||||
from urllib.robotparser import *
|
||||
else:
|
||||
__future_module__ = True
|
||||
from robotparser import *
|
Reference in New Issue
Block a user