com.googler.python 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -0
- package/python3 +6 -0
- package/python3.4.2/bin/2to3 +5 -0
- package/python3.4.2/bin/2to3-3.4 +5 -0
- package/python3.4.2/bin/android-debian-builder +10 -0
- package/python3.4.2/bin/easy_install-3.4 +11 -0
- package/python3.4.2/bin/idle3 +5 -0
- package/python3.4.2/bin/idle3.4 +5 -0
- package/python3.4.2/bin/pip3 +11 -0
- package/python3.4.2/bin/pip3.4 +11 -0
- package/python3.4.2/bin/pydoc3 +5 -0
- package/python3.4.2/bin/pydoc3.4 +5 -0
- package/python3.4.2/bin/python3-config +111 -0
- package/python3.4.2/bin/python3.4 +0 -0
- package/python3.4.2/bin/python3.4-config +111 -0
- package/python3.4.2/bin/python3.4m-config +111 -0
- package/python3.4.2/bin/pyvenv +11 -0
- package/python3.4.2/bin/pyvenv-3.4 +11 -0
- package/python3.4.2/include/python3.4m/Python-ast.h +569 -0
- package/python3.4.2/include/python3.4m/Python.h +133 -0
- package/python3.4.2/include/python3.4m/abstract.h +1267 -0
- package/python3.4.2/include/python3.4m/accu.h +37 -0
- package/python3.4.2/include/python3.4m/asdl.h +45 -0
- package/python3.4.2/include/python3.4m/ast.h +22 -0
- package/python3.4.2/include/python3.4m/bitset.h +32 -0
- package/python3.4.2/include/python3.4m/bltinmodule.h +14 -0
- package/python3.4.2/include/python3.4m/boolobject.h +34 -0
- package/python3.4.2/include/python3.4m/bytearrayobject.h +62 -0
- package/python3.4.2/include/python3.4m/bytes_methods.h +46 -0
- package/python3.4.2/include/python3.4m/bytesobject.h +128 -0
- package/python3.4.2/include/python3.4m/cellobject.h +29 -0
- package/python3.4.2/include/python3.4m/ceval.h +205 -0
- package/python3.4.2/include/python3.4m/classobject.h +58 -0
- package/python3.4.2/include/python3.4m/code.h +115 -0
- package/python3.4.2/include/python3.4m/codecs.h +233 -0
- package/python3.4.2/include/python3.4m/compile.h +72 -0
- package/python3.4.2/include/python3.4m/complexobject.h +77 -0
- package/python3.4.2/include/python3.4m/datetime.h +243 -0
- package/python3.4.2/include/python3.4m/descrobject.h +105 -0
- package/python3.4.2/include/python3.4m/dictobject.h +126 -0
- package/python3.4.2/include/python3.4m/dtoa.h +19 -0
- package/python3.4.2/include/python3.4m/dynamic_annotations.h +499 -0
- package/python3.4.2/include/python3.4m/enumobject.h +17 -0
- package/python3.4.2/include/python3.4m/errcode.h +38 -0
- package/python3.4.2/include/python3.4m/eval.h +27 -0
- package/python3.4.2/include/python3.4m/fileobject.h +58 -0
- package/python3.4.2/include/python3.4m/fileutils.h +79 -0
- package/python3.4.2/include/python3.4m/floatobject.h +128 -0
- package/python3.4.2/include/python3.4m/frameobject.h +95 -0
- package/python3.4.2/include/python3.4m/funcobject.h +89 -0
- package/python3.4.2/include/python3.4m/genobject.h +46 -0
- package/python3.4.2/include/python3.4m/graminit.h +84 -0
- package/python3.4.2/include/python3.4m/grammar.h +93 -0
- package/python3.4.2/include/python3.4m/import.h +130 -0
- package/python3.4.2/include/python3.4m/intrcheck.h +21 -0
- package/python3.4.2/include/python3.4m/iterobject.h +25 -0
- package/python3.4.2/include/python3.4m/listobject.h +80 -0
- package/python3.4.2/include/python3.4m/longintrepr.h +103 -0
- package/python3.4.2/include/python3.4m/longobject.h +204 -0
- package/python3.4.2/include/python3.4m/marshal.h +28 -0
- package/python3.4.2/include/python3.4m/memoryobject.h +74 -0
- package/python3.4.2/include/python3.4m/metagrammar.h +18 -0
- package/python3.4.2/include/python3.4m/methodobject.h +93 -0
- package/python3.4.2/include/python3.4m/modsupport.h +132 -0
- package/python3.4.2/include/python3.4m/moduleobject.h +63 -0
- package/python3.4.2/include/python3.4m/namespaceobject.h +17 -0
- package/python3.4.2/include/python3.4m/node.h +44 -0
- package/python3.4.2/include/python3.4m/object.h +1015 -0
- package/python3.4.2/include/python3.4m/objimpl.h +361 -0
- package/python3.4.2/include/python3.4m/opcode.h +159 -0
- package/python3.4.2/include/python3.4m/osdefs.h +50 -0
- package/python3.4.2/include/python3.4m/parsetok.h +108 -0
- package/python3.4.2/include/python3.4m/patchlevel.h +35 -0
- package/python3.4.2/include/python3.4m/pgen.h +18 -0
- package/python3.4.2/include/python3.4m/pgenheaders.h +42 -0
- package/python3.4.2/include/python3.4m/py_curses.h +177 -0
- package/python3.4.2/include/python3.4m/pyarena.h +64 -0
- package/python3.4.2/include/python3.4m/pyatomic.h +184 -0
- package/python3.4.2/include/python3.4m/pycapsule.h +59 -0
- package/python3.4.2/include/python3.4m/pyconfig.h +1503 -0
- package/python3.4.2/include/python3.4m/pyctype.h +33 -0
- package/python3.4.2/include/python3.4m/pydebug.h +34 -0
- package/python3.4.2/include/python3.4m/pyerrors.h +464 -0
- package/python3.4.2/include/python3.4m/pyexpat.h +53 -0
- package/python3.4.2/include/python3.4m/pyfpe.h +176 -0
- package/python3.4.2/include/python3.4m/pygetopt.h +21 -0
- package/python3.4.2/include/python3.4m/pyhash.h +149 -0
- package/python3.4.2/include/python3.4m/pymacconfig.h +102 -0
- package/python3.4.2/include/python3.4m/pymacro.h +78 -0
- package/python3.4.2/include/python3.4m/pymath.h +190 -0
- package/python3.4.2/include/python3.4m/pymem.h +183 -0
- package/python3.4.2/include/python3.4m/pyport.h +883 -0
- package/python3.4.2/include/python3.4m/pystate.h +271 -0
- package/python3.4.2/include/python3.4m/pystrcmp.h +23 -0
- package/python3.4.2/include/python3.4m/pystrtod.h +41 -0
- package/python3.4.2/include/python3.4m/pythonrun.h +304 -0
- package/python3.4.2/include/python3.4m/pythread.h +93 -0
- package/python3.4.2/include/python3.4m/pytime.h +105 -0
- package/python3.4.2/include/python3.4m/rangeobject.h +27 -0
- package/python3.4.2/include/python3.4m/setobject.h +113 -0
- package/python3.4.2/include/python3.4m/sliceobject.h +50 -0
- package/python3.4.2/include/python3.4m/structmember.h +76 -0
- package/python3.4.2/include/python3.4m/structseq.h +49 -0
- package/python3.4.2/include/python3.4m/symtable.h +122 -0
- package/python3.4.2/include/python3.4m/sysmodule.h +43 -0
- package/python3.4.2/include/python3.4m/token.h +87 -0
- package/python3.4.2/include/python3.4m/traceback.h +72 -0
- package/python3.4.2/include/python3.4m/tupleobject.h +73 -0
- package/python3.4.2/include/python3.4m/typeslots.h +76 -0
- package/python3.4.2/include/python3.4m/ucnhash.h +36 -0
- package/python3.4.2/include/python3.4m/unicodeobject.h +2271 -0
- package/python3.4.2/include/python3.4m/warnings.h +54 -0
- package/python3.4.2/include/python3.4m/weakrefobject.h +86 -0
- package/python3.4.2/lib/pkgconfig/python-3.4.pc +13 -0
- package/python3.4.2/lib/pkgconfig/python-3.4m.pc +13 -0
- package/python3.4.2/lib/pkgconfig/python3.pc +13 -0
- package/python3.4.2/lib/python3.4/LICENSE.txt +254 -0
- package/python3.4.2/lib/python3.4/__future__.py +134 -0
- package/python3.4.2/lib/python3.4/__phello__.foo.py +1 -0
- package/python3.4.2/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/abc.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/codecs.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/genericpath.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/io.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/os.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/posixpath.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/site.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/stat.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/_bootlocale.py +34 -0
- package/python3.4.2/lib/python3.4/_collections_abc.py +753 -0
- package/python3.4.2/lib/python3.4/_compat_pickle.py +137 -0
- package/python3.4.2/lib/python3.4/_dummy_thread.py +155 -0
- package/python3.4.2/lib/python3.4/_markupbase.py +395 -0
- package/python3.4.2/lib/python3.4/_osx_support.py +502 -0
- package/python3.4.2/lib/python3.4/_pyio.py +2105 -0
- package/python3.4.2/lib/python3.4/_sitebuiltins.py +103 -0
- package/python3.4.2/lib/python3.4/_strptime.py +511 -0
- package/python3.4.2/lib/python3.4/_sysconfigdata.py +710 -0
- package/python3.4.2/lib/python3.4/_threading_local.py +246 -0
- package/python3.4.2/lib/python3.4/_weakrefset.py +196 -0
- package/python3.4.2/lib/python3.4/abc.py +248 -0
- package/python3.4.2/lib/python3.4/aifc.py +918 -0
- package/python3.4.2/lib/python3.4/antigravity.py +17 -0
- package/python3.4.2/lib/python3.4/argparse.py +2379 -0
- package/python3.4.2/lib/python3.4/ast.py +315 -0
- package/python3.4.2/lib/python3.4/asynchat.py +333 -0
- package/python3.4.2/lib/python3.4/asyncio/__init__.py +48 -0
- package/python3.4.2/lib/python3.4/asyncio/base_events.py +1055 -0
- package/python3.4.2/lib/python3.4/asyncio/base_subprocess.py +197 -0
- package/python3.4.2/lib/python3.4/asyncio/constants.py +7 -0
- package/python3.4.2/lib/python3.4/asyncio/coroutines.py +195 -0
- package/python3.4.2/lib/python3.4/asyncio/events.py +586 -0
- package/python3.4.2/lib/python3.4/asyncio/futures.py +411 -0
- package/python3.4.2/lib/python3.4/asyncio/locks.py +469 -0
- package/python3.4.2/lib/python3.4/asyncio/log.py +7 -0
- package/python3.4.2/lib/python3.4/asyncio/proactor_events.py +499 -0
- package/python3.4.2/lib/python3.4/asyncio/protocols.py +129 -0
- package/python3.4.2/lib/python3.4/asyncio/queues.py +288 -0
- package/python3.4.2/lib/python3.4/asyncio/selector_events.py +996 -0
- package/python3.4.2/lib/python3.4/asyncio/streams.py +485 -0
- package/python3.4.2/lib/python3.4/asyncio/subprocess.py +228 -0
- package/python3.4.2/lib/python3.4/asyncio/tasks.py +658 -0
- package/python3.4.2/lib/python3.4/asyncio/test_utils.py +425 -0
- package/python3.4.2/lib/python3.4/asyncio/transports.py +298 -0
- package/python3.4.2/lib/python3.4/asyncio/unix_events.py +922 -0
- package/python3.4.2/lib/python3.4/asyncio/windows_events.py +634 -0
- package/python3.4.2/lib/python3.4/asyncio/windows_utils.py +207 -0
- package/python3.4.2/lib/python3.4/asyncore.py +666 -0
- package/python3.4.2/lib/python3.4/base64.py +602 -0
- package/python3.4.2/lib/python3.4/bdb.py +673 -0
- package/python3.4.2/lib/python3.4/binhex.py +471 -0
- package/python3.4.2/lib/python3.4/bisect.py +92 -0
- package/python3.4.2/lib/python3.4/bz2.py +521 -0
- package/python3.4.2/lib/python3.4/cProfile.py +160 -0
- package/python3.4.2/lib/python3.4/calendar.py +703 -0
- package/python3.4.2/lib/python3.4/cgi.py +1061 -0
- package/python3.4.2/lib/python3.4/cgitb.py +320 -0
- package/python3.4.2/lib/python3.4/chunk.py +167 -0
- package/python3.4.2/lib/python3.4/cmd.py +401 -0
- package/python3.4.2/lib/python3.4/code.py +302 -0
- package/python3.4.2/lib/python3.4/codecs.py +1110 -0
- package/python3.4.2/lib/python3.4/codeop.py +168 -0
- package/python3.4.2/lib/python3.4/collections/__init__.py +1132 -0
- package/python3.4.2/lib/python3.4/collections/__main__.py +38 -0
- package/python3.4.2/lib/python3.4/collections/abc.py +2 -0
- package/python3.4.2/lib/python3.4/colorsys.py +164 -0
- package/python3.4.2/lib/python3.4/compileall.py +241 -0
- package/python3.4.2/lib/python3.4/concurrent/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/__init__.py +18 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/_base.py +575 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/process.py +427 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/thread.py +132 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Makefile +1835 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup +466 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup.config +13 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup.local +1 -0
- package/python3.4.2/lib/python3.4/config-3.4m/config.c +234 -0
- package/python3.4.2/lib/python3.4/config-3.4m/config.c.in +67 -0
- package/python3.4.2/lib/python3.4/config-3.4m/install-sh +294 -0
- package/python3.4.2/lib/python3.4/config-3.4m/makesetup +293 -0
- package/python3.4.2/lib/python3.4/config-3.4m/python-config.py +68 -0
- package/python3.4.2/lib/python3.4/configparser.py +1254 -0
- package/python3.4.2/lib/python3.4/contextlib.py +340 -0
- package/python3.4.2/lib/python3.4/copy.py +333 -0
- package/python3.4.2/lib/python3.4/copyreg.py +202 -0
- package/python3.4.2/lib/python3.4/crypt.py +62 -0
- package/python3.4.2/lib/python3.4/csv.py +449 -0
- package/python3.4.2/lib/python3.4/ctypes/__init__.py +541 -0
- package/python3.4.2/lib/python3.4/ctypes/_endian.py +59 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/README.ctypes +7 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/__init__.py +9 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/dyld.py +158 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/dylib.py +63 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib +2 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib.bat +1 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/framework.py +65 -0
- package/python3.4.2/lib/python3.4/ctypes/test/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/ctypes/test/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_anon.py +60 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_array_in_pointer.py +64 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_arrays.py +181 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_as_parameter.py +226 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_bitfields.py +263 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_buffers.py +64 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_bytes.py +65 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_byteswap.py +295 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_callbacks.py +247 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_cast.py +86 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_cfuncs.py +212 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_checkretval.py +36 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_delattr.py +21 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_errno.py +79 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_find.py +81 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_frombuffer.py +81 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_funcptr.py +127 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_functions.py +402 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_incomplete.py +42 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_init.py +40 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_internals.py +100 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_keeprefs.py +153 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_libc.py +33 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_loading.py +119 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_macholib.py +63 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_memfunctions.py +79 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_numbers.py +290 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_objects.py +67 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_parameters.py +176 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pep3118.py +206 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pickling.py +83 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pointers.py +192 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_prototypes.py +219 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_python_api.py +89 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_random_things.py +74 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_refcounts.py +101 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_repr.py +29 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_returnfuncptrs.py +67 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_simplesubclasses.py +55 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_sizes.py +34 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_slicing.py +167 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_stringptr.py +77 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_strings.py +225 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_struct_fields.py +50 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_structures.py +468 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_unaligned_structures.py +45 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_unicode.py +56 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_values.py +95 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_varsize_struct.py +50 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_win32.py +119 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_wintypes.py +41 -0
- package/python3.4.2/lib/python3.4/ctypes/util.py +267 -0
- package/python3.4.2/lib/python3.4/ctypes/wintypes.py +202 -0
- package/python3.4.2/lib/python3.4/curses/__init__.py +101 -0
- package/python3.4.2/lib/python3.4/curses/ascii.py +99 -0
- package/python3.4.2/lib/python3.4/curses/has_key.py +192 -0
- package/python3.4.2/lib/python3.4/curses/panel.py +6 -0
- package/python3.4.2/lib/python3.4/curses/textpad.py +188 -0
- package/python3.4.2/lib/python3.4/datetime.py +2136 -0
- package/python3.4.2/lib/python3.4/dbm/__init__.py +188 -0
- package/python3.4.2/lib/python3.4/dbm/dumb.py +291 -0
- package/python3.4.2/lib/python3.4/dbm/gnu.py +3 -0
- package/python3.4.2/lib/python3.4/dbm/ndbm.py +3 -0
- package/python3.4.2/lib/python3.4/decimal.py +6414 -0
- package/python3.4.2/lib/python3.4/difflib.py +2039 -0
- package/python3.4.2/lib/python3.4/dis.py +475 -0
- package/python3.4.2/lib/python3.4/distutils/README +13 -0
- package/python3.4.2/lib/python3.4/distutils/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/distutils/archive_util.py +245 -0
- package/python3.4.2/lib/python3.4/distutils/bcppcompiler.py +393 -0
- package/python3.4.2/lib/python3.4/distutils/ccompiler.py +1115 -0
- package/python3.4.2/lib/python3.4/distutils/cmd.py +435 -0
- package/python3.4.2/lib/python3.4/distutils/command/__init__.py +31 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist.py +142 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_dumb.py +122 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_msi.py +741 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_rpm.py +582 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_wininst.py +349 -0
- package/python3.4.2/lib/python3.4/distutils/command/build.py +148 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_clib.py +209 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_ext.py +735 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_py.py +416 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_scripts.py +160 -0
- package/python3.4.2/lib/python3.4/distutils/command/check.py +145 -0
- package/python3.4.2/lib/python3.4/distutils/command/clean.py +76 -0
- package/python3.4.2/lib/python3.4/distutils/command/command_template +33 -0
- package/python3.4.2/lib/python3.4/distutils/command/config.py +347 -0
- package/python3.4.2/lib/python3.4/distutils/command/install.py +650 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_data.py +79 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_egg_info.py +77 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_headers.py +47 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_lib.py +217 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_scripts.py +60 -0
- package/python3.4.2/lib/python3.4/distutils/command/register.py +304 -0
- package/python3.4.2/lib/python3.4/distutils/command/sdist.py +467 -0
- package/python3.4.2/lib/python3.4/distutils/command/upload.py +202 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0-amd64.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-6.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-7.1.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-8.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0-amd64.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/config.py +131 -0
- package/python3.4.2/lib/python3.4/distutils/core.py +237 -0
- package/python3.4.2/lib/python3.4/distutils/cygwinccompiler.py +405 -0
- package/python3.4.2/lib/python3.4/distutils/debug.py +5 -0
- package/python3.4.2/lib/python3.4/distutils/dep_util.py +92 -0
- package/python3.4.2/lib/python3.4/distutils/dir_util.py +210 -0
- package/python3.4.2/lib/python3.4/distutils/dist.py +1238 -0
- package/python3.4.2/lib/python3.4/distutils/errors.py +97 -0
- package/python3.4.2/lib/python3.4/distutils/extension.py +233 -0
- package/python3.4.2/lib/python3.4/distutils/fancy_getopt.py +457 -0
- package/python3.4.2/lib/python3.4/distutils/file_util.py +230 -0
- package/python3.4.2/lib/python3.4/distutils/filelist.py +328 -0
- package/python3.4.2/lib/python3.4/distutils/log.py +75 -0
- package/python3.4.2/lib/python3.4/distutils/msvc9compiler.py +788 -0
- package/python3.4.2/lib/python3.4/distutils/msvccompiler.py +640 -0
- package/python3.4.2/lib/python3.4/distutils/spawn.py +195 -0
- package/python3.4.2/lib/python3.4/distutils/sysconfig.py +562 -0
- package/python3.4.2/lib/python3.4/distutils/tests/Setup.sample +67 -0
- package/python3.4.2/lib/python3.4/distutils/tests/__init__.py +36 -0
- package/python3.4.2/lib/python3.4/distutils/tests/support.py +210 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_archive_util.py +341 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist.py +50 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_dumb.py +97 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_msi.py +25 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_rpm.py +134 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_wininst.py +31 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build.py +55 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_clib.py +143 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_ext.py +488 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_py.py +178 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_scripts.py +112 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_check.py +106 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_clean.py +51 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_cmd.py +126 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_config.py +120 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_config_cmd.py +89 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_core.py +108 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_cygwinccompiler.py +155 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dep_util.py +81 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dir_util.py +139 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dist.py +454 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_extension.py +69 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_file_util.py +85 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_filelist.py +299 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install.py +246 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_data.py +77 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_headers.py +41 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_lib.py +115 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_scripts.py +82 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_log.py +37 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_msvc9compiler.py +184 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_register.py +309 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_sdist.py +484 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_spawn.py +58 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_sysconfig.py +207 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_text_file.py +107 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_unixccompiler.py +150 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_upload.py +151 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_util.py +300 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_version.py +71 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_versionpredicate.py +13 -0
- package/python3.4.2/lib/python3.4/distutils/tests/xxmodule.c +396 -0
- package/python3.4.2/lib/python3.4/distutils/text_file.py +285 -0
- package/python3.4.2/lib/python3.4/distutils/unixccompiler.py +298 -0
- package/python3.4.2/lib/python3.4/distutils/util.py +553 -0
- package/python3.4.2/lib/python3.4/distutils/version.py +349 -0
- package/python3.4.2/lib/python3.4/distutils/versionpredicate.py +166 -0
- package/python3.4.2/lib/python3.4/doctest.py +2793 -0
- package/python3.4.2/lib/python3.4/dummy_threading.py +78 -0
- package/python3.4.2/lib/python3.4/email/__init__.py +64 -0
- package/python3.4.2/lib/python3.4/email/_encoded_words.py +221 -0
- package/python3.4.2/lib/python3.4/email/_header_value_parser.py +2947 -0
- package/python3.4.2/lib/python3.4/email/_parseaddr.py +540 -0
- package/python3.4.2/lib/python3.4/email/_policybase.py +358 -0
- package/python3.4.2/lib/python3.4/email/architecture.rst +216 -0
- package/python3.4.2/lib/python3.4/email/base64mime.py +119 -0
- package/python3.4.2/lib/python3.4/email/charset.py +409 -0
- package/python3.4.2/lib/python3.4/email/contentmanager.py +249 -0
- package/python3.4.2/lib/python3.4/email/encoders.py +69 -0
- package/python3.4.2/lib/python3.4/email/errors.py +107 -0
- package/python3.4.2/lib/python3.4/email/feedparser.py +526 -0
- package/python3.4.2/lib/python3.4/email/generator.py +507 -0
- package/python3.4.2/lib/python3.4/email/header.py +581 -0
- package/python3.4.2/lib/python3.4/email/headerregistry.py +583 -0
- package/python3.4.2/lib/python3.4/email/iterators.py +71 -0
- package/python3.4.2/lib/python3.4/email/message.py +1147 -0
- package/python3.4.2/lib/python3.4/email/mime/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/email/mime/application.py +36 -0
- package/python3.4.2/lib/python3.4/email/mime/audio.py +73 -0
- package/python3.4.2/lib/python3.4/email/mime/base.py +26 -0
- package/python3.4.2/lib/python3.4/email/mime/image.py +46 -0
- package/python3.4.2/lib/python3.4/email/mime/message.py +34 -0
- package/python3.4.2/lib/python3.4/email/mime/multipart.py +47 -0
- package/python3.4.2/lib/python3.4/email/mime/nonmultipart.py +22 -0
- package/python3.4.2/lib/python3.4/email/mime/text.py +41 -0
- package/python3.4.2/lib/python3.4/email/parser.py +132 -0
- package/python3.4.2/lib/python3.4/email/policy.py +201 -0
- package/python3.4.2/lib/python3.4/email/quoprimime.py +299 -0
- package/python3.4.2/lib/python3.4/email/utils.py +399 -0
- package/python3.4.2/lib/python3.4/encodings/__init__.py +152 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/ascii.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/aliases.py +544 -0
- package/python3.4.2/lib/python3.4/encodings/ascii.py +50 -0
- package/python3.4.2/lib/python3.4/encodings/base64_codec.py +55 -0
- package/python3.4.2/lib/python3.4/encodings/big5.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/big5hkscs.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/bz2_codec.py +78 -0
- package/python3.4.2/lib/python3.4/encodings/charmap.py +69 -0
- package/python3.4.2/lib/python3.4/encodings/cp037.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1006.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1026.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1125.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp1140.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1250.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1251.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1252.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1253.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1254.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1255.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1256.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1257.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1258.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp273.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp424.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp437.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp500.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp65001.py +40 -0
- package/python3.4.2/lib/python3.4/encodings/cp720.py +309 -0
- package/python3.4.2/lib/python3.4/encodings/cp737.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp775.py +697 -0
- package/python3.4.2/lib/python3.4/encodings/cp850.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp852.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp855.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp856.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp857.py +694 -0
- package/python3.4.2/lib/python3.4/encodings/cp858.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp860.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp861.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp862.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp863.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp864.py +690 -0
- package/python3.4.2/lib/python3.4/encodings/cp865.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp866.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp869.py +689 -0
- package/python3.4.2/lib/python3.4/encodings/cp874.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp875.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp932.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/cp949.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/cp950.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jis_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jisx0213.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jp.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_kr.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gb18030.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gb2312.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gbk.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/hex_codec.py +55 -0
- package/python3.4.2/lib/python3.4/encodings/hp_roman8.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/hz.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/idna.py +309 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_1.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_3.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_ext.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_kr.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_1.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_10.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_11.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_13.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_14.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_15.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_16.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_2.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_3.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_4.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_5.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_6.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_7.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_8.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_9.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/johab.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/koi8_r.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/koi8_u.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/latin_1.py +50 -0
- package/python3.4.2/lib/python3.4/encodings/mac_arabic.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/mac_centeuro.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_croatian.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_cyrillic.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_farsi.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_greek.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_iceland.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_latin2.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/mac_roman.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_romanian.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_turkish.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mbcs.py +47 -0
- package/python3.4.2/lib/python3.4/encodings/palmos.py +308 -0
- package/python3.4.2/lib/python3.4/encodings/ptcp154.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/punycode.py +237 -0
- package/python3.4.2/lib/python3.4/encodings/quopri_codec.py +56 -0
- package/python3.4.2/lib/python3.4/encodings/raw_unicode_escape.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/rot_13.py +113 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jis.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jis_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jisx0213.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/tis_620.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/undefined.py +49 -0
- package/python3.4.2/lib/python3.4/encodings/unicode_escape.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/unicode_internal.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16.py +155 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16_be.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16_le.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32.py +150 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32_be.py +37 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32_le.py +37 -0
- package/python3.4.2/lib/python3.4/encodings/utf_7.py +38 -0
- package/python3.4.2/lib/python3.4/encodings/utf_8.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_8_sig.py +130 -0
- package/python3.4.2/lib/python3.4/encodings/uu_codec.py +99 -0
- package/python3.4.2/lib/python3.4/encodings/zlib_codec.py +77 -0
- package/python3.4.2/lib/python3.4/ensurepip/__init__.py +210 -0
- package/python3.4.2/lib/python3.4/ensurepip/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/ensurepip/_bundled/pip-1.5.6-py2.py3-none-any.whl +0 -0
- package/python3.4.2/lib/python3.4/ensurepip/_bundled/setuptools-2.1-py2.py3-none-any.whl +0 -0
- package/python3.4.2/lib/python3.4/ensurepip/_uninstall.py +30 -0
- package/python3.4.2/lib/python3.4/enum.py +525 -0
- package/python3.4.2/lib/python3.4/filecmp.py +305 -0
- package/python3.4.2/lib/python3.4/fileinput.py +429 -0
- package/python3.4.2/lib/python3.4/fnmatch.py +109 -0
- package/python3.4.2/lib/python3.4/formatter.py +448 -0
- package/python3.4.2/lib/python3.4/fractions.py +630 -0
- package/python3.4.2/lib/python3.4/ftplib.py +1088 -0
- package/python3.4.2/lib/python3.4/functools.py +721 -0
- package/python3.4.2/lib/python3.4/genericpath.py +132 -0
- package/python3.4.2/lib/python3.4/getopt.py +215 -0
- package/python3.4.2/lib/python3.4/getpass.py +186 -0
- package/python3.4.2/lib/python3.4/gettext.py +523 -0
- package/python3.4.2/lib/python3.4/glob.py +110 -0
- package/python3.4.2/lib/python3.4/gzip.py +674 -0
- package/python3.4.2/lib/python3.4/hashlib.py +217 -0
- package/python3.4.2/lib/python3.4/heapq.py +476 -0
- package/python3.4.2/lib/python3.4/hmac.py +144 -0
- package/python3.4.2/lib/python3.4/html/__init__.py +132 -0
- package/python3.4.2/lib/python3.4/html/entities.py +2506 -0
- package/python3.4.2/lib/python3.4/html/parser.py +550 -0
- package/python3.4.2/lib/python3.4/http/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/http/client.py +1302 -0
- package/python3.4.2/lib/python3.4/http/cookiejar.py +2080 -0
- package/python3.4.2/lib/python3.4/http/cookies.py +578 -0
- package/python3.4.2/lib/python3.4/http/server.py +1241 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoComplete.py +233 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoCompleteWindow.py +415 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoExpand.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/Bindings.py +94 -0
- package/python3.4.2/lib/python3.4/idlelib/CREDITS.txt +37 -0
- package/python3.4.2/lib/python3.4/idlelib/CallTipWindow.py +170 -0
- package/python3.4.2/lib/python3.4/idlelib/CallTips.py +175 -0
- package/python3.4.2/lib/python3.4/idlelib/ChangeLog +1591 -0
- package/python3.4.2/lib/python3.4/idlelib/ClassBrowser.py +229 -0
- package/python3.4.2/lib/python3.4/idlelib/CodeContext.py +176 -0
- package/python3.4.2/lib/python3.4/idlelib/ColorDelegator.py +254 -0
- package/python3.4.2/lib/python3.4/idlelib/Debugger.py +490 -0
- package/python3.4.2/lib/python3.4/idlelib/Delegator.py +25 -0
- package/python3.4.2/lib/python3.4/idlelib/EditorWindow.py +1729 -0
- package/python3.4.2/lib/python3.4/idlelib/FileList.py +129 -0
- package/python3.4.2/lib/python3.4/idlelib/FormatParagraph.py +193 -0
- package/python3.4.2/lib/python3.4/idlelib/GrepDialog.py +159 -0
- package/python3.4.2/lib/python3.4/idlelib/HISTORY.txt +296 -0
- package/python3.4.2/lib/python3.4/idlelib/HyperParser.py +313 -0
- package/python3.4.2/lib/python3.4/idlelib/IOBinding.py +555 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/folder.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle.icns +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle.ico +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/minusnode.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/openfolder.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/plusnode.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/python.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/tk.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/IdleHistory.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/MultiCall.py +453 -0
- package/python3.4.2/lib/python3.4/idlelib/MultiStatusBar.py +45 -0
- package/python3.4.2/lib/python3.4/idlelib/NEWS.txt +877 -0
- package/python3.4.2/lib/python3.4/idlelib/ObjectBrowser.py +143 -0
- package/python3.4.2/lib/python3.4/idlelib/OutputWindow.py +144 -0
- package/python3.4.2/lib/python3.4/idlelib/ParenMatch.py +178 -0
- package/python3.4.2/lib/python3.4/idlelib/PathBrowser.py +106 -0
- package/python3.4.2/lib/python3.4/idlelib/Percolator.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/PyParse.py +618 -0
- package/python3.4.2/lib/python3.4/idlelib/PyShell.py +1619 -0
- package/python3.4.2/lib/python3.4/idlelib/README.txt +60 -0
- package/python3.4.2/lib/python3.4/idlelib/RemoteDebugger.py +389 -0
- package/python3.4.2/lib/python3.4/idlelib/RemoteObjectBrowser.py +36 -0
- package/python3.4.2/lib/python3.4/idlelib/ReplaceDialog.py +221 -0
- package/python3.4.2/lib/python3.4/idlelib/RstripExtension.py +33 -0
- package/python3.4.2/lib/python3.4/idlelib/ScriptBinding.py +207 -0
- package/python3.4.2/lib/python3.4/idlelib/ScrolledList.py +140 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchDialog.py +89 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchDialogBase.py +184 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchEngine.py +233 -0
- package/python3.4.2/lib/python3.4/idlelib/StackViewer.py +152 -0
- package/python3.4.2/lib/python3.4/idlelib/TODO.txt +210 -0
- package/python3.4.2/lib/python3.4/idlelib/ToolTip.py +97 -0
- package/python3.4.2/lib/python3.4/idlelib/TreeWidget.py +465 -0
- package/python3.4.2/lib/python3.4/idlelib/UndoDelegator.py +365 -0
- package/python3.4.2/lib/python3.4/idlelib/WidgetRedirector.py +174 -0
- package/python3.4.2/lib/python3.4/idlelib/WindowList.py +90 -0
- package/python3.4.2/lib/python3.4/idlelib/ZoomHeight.py +51 -0
- package/python3.4.2/lib/python3.4/idlelib/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/idlelib/__main__.py +9 -0
- package/python3.4.2/lib/python3.4/idlelib/aboutDialog.py +145 -0
- package/python3.4.2/lib/python3.4/idlelib/config-extensions.def +96 -0
- package/python3.4.2/lib/python3.4/idlelib/config-highlight.def +64 -0
- package/python3.4.2/lib/python3.4/idlelib/config-keys.def +214 -0
- package/python3.4.2/lib/python3.4/idlelib/config-main.def +79 -0
- package/python3.4.2/lib/python3.4/idlelib/configDialog.py +1195 -0
- package/python3.4.2/lib/python3.4/idlelib/configHandler.py +722 -0
- package/python3.4.2/lib/python3.4/idlelib/configHelpSourceEdit.py +166 -0
- package/python3.4.2/lib/python3.4/idlelib/configSectionNameDialog.py +98 -0
- package/python3.4.2/lib/python3.4/idlelib/dynOptionMenuWidget.py +57 -0
- package/python3.4.2/lib/python3.4/idlelib/extend.txt +83 -0
- package/python3.4.2/lib/python3.4/idlelib/help.txt +368 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.bat +4 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.py +11 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.pyw +21 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/README.txt +115 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/__init__.py +9 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/htest.py +369 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_idle.py +55 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_tk.py +298 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autocomplete.py +143 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autoexpand.py +141 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_calltips.py +172 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_config_name.py +75 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_configdialog.py +32 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_delegator.py +37 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_formatparagraph.py +377 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_grep.py +80 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_hyperparser.py +273 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_idlehistory.py +167 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_parenmatch.py +109 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_pathbrowser.py +12 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_rstrip.py +49 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchdialogbase.py +165 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchengine.py +329 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_text.py +228 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_textview.py +97 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_warning.py +73 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_widgetredir.py +122 -0
- package/python3.4.2/lib/python3.4/idlelib/idlever.py +1 -0
- package/python3.4.2/lib/python3.4/idlelib/keybindingDialog.py +266 -0
- package/python3.4.2/lib/python3.4/idlelib/macosxSupport.py +239 -0
- package/python3.4.2/lib/python3.4/idlelib/rpc.py +624 -0
- package/python3.4.2/lib/python3.4/idlelib/run.py +404 -0
- package/python3.4.2/lib/python3.4/idlelib/tabbedpages.py +498 -0
- package/python3.4.2/lib/python3.4/idlelib/testcode.py +31 -0
- package/python3.4.2/lib/python3.4/idlelib/textView.py +86 -0
- package/python3.4.2/lib/python3.4/imaplib.py +1549 -0
- package/python3.4.2/lib/python3.4/imghdr.py +154 -0
- package/python3.4.2/lib/python3.4/imp.py +315 -0
- package/python3.4.2/lib/python3.4/importlib/__init__.py +156 -0
- package/python3.4.2/lib/python3.4/importlib/_bootstrap.py +2461 -0
- package/python3.4.2/lib/python3.4/importlib/abc.py +323 -0
- package/python3.4.2/lib/python3.4/importlib/machinery.py +21 -0
- package/python3.4.2/lib/python3.4/importlib/util.py +202 -0
- package/python3.4.2/lib/python3.4/inspect.py +2759 -0
- package/python3.4.2/lib/python3.4/io.py +92 -0
- package/python3.4.2/lib/python3.4/ipaddress.py +2183 -0
- package/python3.4.2/lib/python3.4/json/__init__.py +331 -0
- package/python3.4.2/lib/python3.4/json/decoder.py +362 -0
- package/python3.4.2/lib/python3.4/json/encoder.py +433 -0
- package/python3.4.2/lib/python3.4/json/scanner.py +73 -0
- package/python3.4.2/lib/python3.4/json/tool.py +39 -0
- package/python3.4.2/lib/python3.4/keyword.py +94 -0
- package/python3.4.2/lib/python3.4/lib2to3/Grammar.txt +159 -0
- package/python3.4.2/lib/python3.4/lib2to3/Grammar3.4.2.final.0.pickle +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar.txt +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar3.4.2.final.0.pickle +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/lib2to3/btm_matcher.py +168 -0
- package/python3.4.2/lib/python3.4/lib2to3/btm_utils.py +281 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixer_base.py +187 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixer_util.py +455 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_apply.py +59 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_asserts.py +34 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_basestring.py +14 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_buffer.py +22 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_callable.py +37 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_dict.py +107 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_except.py +93 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exec.py +40 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_execfile.py +52 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exitfunc.py +72 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_filter.py +76 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_funcattrs.py +21 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_future.py +22 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_getcwdu.py +19 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_has_key.py +110 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_idioms.py +152 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_import.py +99 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports.py +145 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports2.py +16 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_input.py +26 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_intern.py +31 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_isinstance.py +52 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools.py +43 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools_imports.py +57 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_long.py +19 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_map.py +91 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_metaclass.py +228 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_methodattrs.py +24 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ne.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_next.py +103 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_nonzero.py +21 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_numliterals.py +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_operator.py +98 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_paren.py +44 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_print.py +87 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raise.py +90 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raw_input.py +17 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reduce.py +35 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reload.py +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_renames.py +70 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_repr.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_set_literal.py +53 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_standarderror.py +18 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_sys_exc.py +30 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_throw.py +56 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_tuple_params.py +175 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_types.py +62 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_unicode.py +42 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_urllib.py +197 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ws_comma.py +39 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xrange.py +73 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xreadlines.py +25 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_zip.py +35 -0
- package/python3.4.2/lib/python3.4/lib2to3/main.py +268 -0
- package/python3.4.2/lib/python3.4/lib2to3/patcomp.py +205 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/conv.py +257 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/driver.py +157 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/grammar.py +183 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/literals.py +60 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/parse.py +201 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/pgen.py +386 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/token.py +83 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/tokenize.py +502 -0
- package/python3.4.2/lib/python3.4/lib2to3/pygram.py +40 -0
- package/python3.4.2/lib/python3.4/lib2to3/pytree.py +864 -0
- package/python3.4.2/lib/python3.4/lib2to3/refactor.py +747 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/__init__.py +24 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/README +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/bom.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/crlf.py +3 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/different_encoding.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/false_encoding.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/bad_order.py +5 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/parrot_example.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/infinite_recursion.py +2669 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/py2_test_grammar.py +974 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/py3_test_grammar.py +923 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/pytree_idempotency.py +92 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/support.py +54 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_all_fixers.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_fixers.py +4687 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_main.py +139 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_parser.py +249 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_pytree.py +477 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_refactor.py +321 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_util.py +594 -0
- package/python3.4.2/lib/python3.4/linecache.py +134 -0
- package/python3.4.2/lib/python3.4/locale.py +1559 -0
- package/python3.4.2/lib/python3.4/logging/__init__.py +1950 -0
- package/python3.4.2/lib/python3.4/logging/config.py +927 -0
- package/python3.4.2/lib/python3.4/logging/handlers.py +1452 -0
- package/python3.4.2/lib/python3.4/lzma.py +511 -0
- package/python3.4.2/lib/python3.4/macpath.py +205 -0
- package/python3.4.2/lib/python3.4/macurl2path.py +77 -0
- package/python3.4.2/lib/python3.4/mailbox.py +2136 -0
- package/python3.4.2/lib/python3.4/mailcap.py +253 -0
- package/python3.4.2/lib/python3.4/mimetypes.py +592 -0
- package/python3.4.2/lib/python3.4/modulefinder.py +642 -0
- package/python3.4.2/lib/python3.4/multiprocessing/__init__.py +38 -0
- package/python3.4.2/lib/python3.4/multiprocessing/connection.py +954 -0
- package/python3.4.2/lib/python3.4/multiprocessing/context.py +348 -0
- package/python3.4.2/lib/python3.4/multiprocessing/dummy/__init__.py +119 -0
- package/python3.4.2/lib/python3.4/multiprocessing/dummy/connection.py +74 -0
- package/python3.4.2/lib/python3.4/multiprocessing/forkserver.py +267 -0
- package/python3.4.2/lib/python3.4/multiprocessing/heap.py +249 -0
- package/python3.4.2/lib/python3.4/multiprocessing/managers.py +1131 -0
- package/python3.4.2/lib/python3.4/multiprocessing/pool.py +769 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_fork.py +83 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_forkserver.py +69 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_posix.py +69 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_win32.py +99 -0
- package/python3.4.2/lib/python3.4/multiprocessing/process.py +332 -0
- package/python3.4.2/lib/python3.4/multiprocessing/queues.py +367 -0
- package/python3.4.2/lib/python3.4/multiprocessing/reduction.py +240 -0
- package/python3.4.2/lib/python3.4/multiprocessing/resource_sharer.py +158 -0
- package/python3.4.2/lib/python3.4/multiprocessing/semaphore_tracker.py +143 -0
- package/python3.4.2/lib/python3.4/multiprocessing/sharedctypes.py +245 -0
- package/python3.4.2/lib/python3.4/multiprocessing/spawn.py +287 -0
- package/python3.4.2/lib/python3.4/multiprocessing/synchronize.py +418 -0
- package/python3.4.2/lib/python3.4/multiprocessing/util.py +367 -0
- package/python3.4.2/lib/python3.4/netrc.py +142 -0
- package/python3.4.2/lib/python3.4/nntplib.py +1134 -0
- package/python3.4.2/lib/python3.4/ntpath.py +625 -0
- package/python3.4.2/lib/python3.4/nturl2path.py +66 -0
- package/python3.4.2/lib/python3.4/numbers.py +394 -0
- package/python3.4.2/lib/python3.4/opcode.py +200 -0
- package/python3.4.2/lib/python3.4/operator.py +411 -0
- package/python3.4.2/lib/python3.4/optparse.py +1680 -0
- package/python3.4.2/lib/python3.4/os.py +980 -0
- package/python3.4.2/lib/python3.4/pathlib.py +1291 -0
- package/python3.4.2/lib/python3.4/pdb.py +1685 -0
- package/python3.4.2/lib/python3.4/pickle.py +1599 -0
- package/python3.4.2/lib/python3.4/pickletools.py +2818 -0
- package/python3.4.2/lib/python3.4/pipes.py +247 -0
- package/python3.4.2/lib/python3.4/pkgutil.py +629 -0
- package/python3.4.2/lib/python3.4/plat-linux/CDROM.py +207 -0
- package/python3.4.2/lib/python3.4/plat-linux/DLFCN.py +83 -0
- package/python3.4.2/lib/python3.4/plat-linux/IN.py +615 -0
- package/python3.4.2/lib/python3.4/plat-linux/TYPES.py +170 -0
- package/python3.4.2/lib/python3.4/plat-linux/regen +8 -0
- package/python3.4.2/lib/python3.4/platform.py +1476 -0
- package/python3.4.2/lib/python3.4/plistlib.py +1025 -0
- package/python3.4.2/lib/python3.4/poplib.py +461 -0
- package/python3.4.2/lib/python3.4/posixpath.py +457 -0
- package/python3.4.2/lib/python3.4/pprint.py +416 -0
- package/python3.4.2/lib/python3.4/profile.py +589 -0
- package/python3.4.2/lib/python3.4/pstats.py +691 -0
- package/python3.4.2/lib/python3.4/pty.py +170 -0
- package/python3.4.2/lib/python3.4/py_compile.py +185 -0
- package/python3.4.2/lib/python3.4/pyclbr.py +351 -0
- package/python3.4.2/lib/python3.4/pydoc.py +2622 -0
- package/python3.4.2/lib/python3.4/pydoc_data/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/pydoc_data/_pydoc.css +6 -0
- package/python3.4.2/lib/python3.4/pydoc_data/topics.py +79 -0
- package/python3.4.2/lib/python3.4/queue.py +249 -0
- package/python3.4.2/lib/python3.4/quopri.py +242 -0
- package/python3.4.2/lib/python3.4/random.py +742 -0
- package/python3.4.2/lib/python3.4/re.py +368 -0
- package/python3.4.2/lib/python3.4/reprlib.py +157 -0
- package/python3.4.2/lib/python3.4/rlcompleter.py +165 -0
- package/python3.4.2/lib/python3.4/runpy.py +271 -0
- package/python3.4.2/lib/python3.4/sched.py +167 -0
- package/python3.4.2/lib/python3.4/selectors.py +525 -0
- package/python3.4.2/lib/python3.4/shelve.py +239 -0
- package/python3.4.2/lib/python3.4/shlex.py +304 -0
- package/python3.4.2/lib/python3.4/shutil.py +1127 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/PKG-INFO +55 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/SOURCES.txt +126 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/entry_points.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/requires.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_compat.py +150 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_stringdefs.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/bccache.py +344 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/compiler.py +1640 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/constants.py +32 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/debug.py +337 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/defaults.py +43 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/environment.py +1191 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/exceptions.py +146 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/ext.py +636 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/filters.py +987 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/lexer.py +733 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/loaders.py +471 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/meta.py +103 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/nodes.py +914 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/optimizer.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/parser.py +895 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/runtime.py +581 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/sandbox.py +368 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/tests.py +149 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/__init__.py +156 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/api.py +261 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/bytecode_cache.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/core_tags.py +305 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/debug.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/doctests.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/ext.py +459 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/filters.py +515 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/imports.py +141 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/inheritance.py +250 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/lexnparse.py +593 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/loader.py +226 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/regression.py +279 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/broken.html +3 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/foo/test.html +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/syntaxerror.html +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/test.html +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/security.py +166 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/tests.py +93 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/utils.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/utils.py +520 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/visitor.py +87 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/PKG-INFO +119 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/SOURCES.txt +17 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/__init__.py +298 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_compat.py +26 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_constants.py +267 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_native.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_speedups.c +239 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/tests.py +179 -0
- package/python3.4.2/lib/python3.4/site-packages/README +2 -0
- package/python3.4.2/lib/python3.4/site-packages/_markerlib/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/_markerlib/markers.py +119 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/PKG-INFO +68 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/SOURCES.txt +23 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/entry_points.txt +3 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/requires.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/scripts/android-debian-builder +6 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__main__.py +26 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/build.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/config.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/deb.sh +106 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/default-config +42 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/first-time-setup.sh +94 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/init.sh +27 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/examples/jessie-armhf.cfg +26 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/run_tests.py +38 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/script.py +110 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/util.py +177 -0
- package/python3.4.2/lib/python3.4/site-packages/easy-install.pth +4 -0
- package/python3.4.2/lib/python3.4/site-packages/easy_install.py +5 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +277 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +8 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +119 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +50 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +56 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +137 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1064 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1301 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +488 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +364 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1026 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +317 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +323 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1575 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +721 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +958 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +3104 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/_base.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +20 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +65 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +205 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2713 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/ihatexml.py +285 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/inputstream.py +881 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +271 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +320 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/tokenizer.py +1731 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/_base.py +377 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +227 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +337 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +369 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +57 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/_base.py +200 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/genshistream.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/lxmletree.py +208 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/__init__.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/_base.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/datrie.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/py.py +67 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/utils.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py +2762 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +34 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +77 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +388 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cacert.pem +5026 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +24 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +115 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +454 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +75 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +45 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +803 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/__init__.py +32 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +925 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5prober.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardistribution.py +231 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +62 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +61 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/compat.py +34 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +39 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +86 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +242 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +90 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +596 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrprober.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwfreq.py +428 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwprober.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312freq.py +472 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312prober.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/hebrewprober.py +283 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jisfreq.py +569 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jpcntx.py +219 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langgreekmodel.py +225 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langthaimodel.py +200 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/latin1prober.py +139 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +575 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +170 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/utf8prober.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +205 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +204 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py +710 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/ntlmpool.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +422 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +126 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/fields.py +177 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/filepost.py +100 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py +260 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +385 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +258 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/request.py +141 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +308 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +27 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +45 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +133 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py +234 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/url.py +162 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +637 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +673 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +646 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +201 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/baseparser.py +224 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +371 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +114 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/help.py +33 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +314 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +162 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +80 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +195 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +351 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/download.py +644 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/index.py +990 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +172 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/log.py +276 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +102 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/req.py +1931 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +18 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/status_codes.py +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/util.py +720 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +251 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +131 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +151 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +273 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +560 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +71 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +98 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/WHEEL +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +5 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pkg_resources.py +2719 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/__init__.py +98 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/archive_util.py +210 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-arm-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/alias.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_egg.py +553 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_rpm.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_wininst.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_ext.py +298 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_py.py +221 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/develop.py +167 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/easy_install.py +1915 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/egg_info.py +392 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install.py +103 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_egg_info.py +125 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_lib.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_scripts.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/launcher manifest.xml +15 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/register.py +10 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/rotate.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/saveopts.py +24 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/sdist.py +238 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/setopt.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/test.py +198 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/upload_docs.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/compat.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/depends.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/dist.py +796 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/extension.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-arm-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/lib2to3_ex.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/package_index.py +1057 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py26compat.py +19 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py27compat.py +15 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py31compat.py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/sandbox.py +322 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/script template (dev).py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/script template.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/site-patch.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/ssl_support.py +234 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/svn_utils.py +564 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/__init__.py +352 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/doctest.py +2683 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/environment.py +165 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/py26compat.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/script-with-bom.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/server.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_bdist_egg.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_build_ext.py +20 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_develop.py +122 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_dist_info.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_easy_install.py +394 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_egg_info.py +173 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_markerlib.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_packageindex.py +203 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_resources.py +620 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sandbox.py +79 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sdist.py +535 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_svn.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_test.py +124 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py +72 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/version.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/DESCRIPTION.rst +1742 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/METADATA +1772 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/RECORD +149 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/WHEEL +6 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/dependency_links.txt +2 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt +62 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt.orig +62 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/pydist.json +1 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/requires.txt.orig +7 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/top_level.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site.py +616 -0
- package/python3.4.2/lib/python3.4/smtpd.py +861 -0
- package/python3.4.2/lib/python3.4/smtplib.py +999 -0
- package/python3.4.2/lib/python3.4/sndhdr.py +240 -0
- package/python3.4.2/lib/python3.4/socket.py +535 -0
- package/python3.4.2/lib/python3.4/socketserver.py +748 -0
- package/python3.4.2/lib/python3.4/sqlite3/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/sqlite3/dbapi2.py +89 -0
- package/python3.4.2/lib/python3.4/sqlite3/dump.py +70 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/dbapi.py +911 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/dump.py +81 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/factory.py +253 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/hooks.py +258 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/regression.py +358 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/transactions.py +204 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/types.py +403 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/userfunctions.py +468 -0
- package/python3.4.2/lib/python3.4/sre_compile.py +489 -0
- package/python3.4.2/lib/python3.4/sre_constants.py +261 -0
- package/python3.4.2/lib/python3.4/sre_parse.py +859 -0
- package/python3.4.2/lib/python3.4/ssl.py +945 -0
- package/python3.4.2/lib/python3.4/stat.py +155 -0
- package/python3.4.2/lib/python3.4/statistics.py +595 -0
- package/python3.4.2/lib/python3.4/string.py +282 -0
- package/python3.4.2/lib/python3.4/stringprep.py +272 -0
- package/python3.4.2/lib/python3.4/struct.py +15 -0
- package/python3.4.2/lib/python3.4/subprocess.py +1690 -0
- package/python3.4.2/lib/python3.4/sunau.py +525 -0
- package/python3.4.2/lib/python3.4/symbol.py +111 -0
- package/python3.4.2/lib/python3.4/symtable.py +240 -0
- package/python3.4.2/lib/python3.4/sysconfig.py +709 -0
- package/python3.4.2/lib/python3.4/tabnanny.py +332 -0
- package/python3.4.2/lib/python3.4/tarfile.py +2519 -0
- package/python3.4.2/lib/python3.4/telnetlib.py +672 -0
- package/python3.4.2/lib/python3.4/tempfile.py +698 -0
- package/python3.4.2/lib/python3.4/test/185test.db +0 -0
- package/python3.4.2/lib/python3.4/test/Sine-1000Hz-300ms.aif +0 -0
- package/python3.4.2/lib/python3.4/test/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/test/__main__.py +3 -0
- package/python3.4.2/lib/python3.4/test/_test_multiprocessing.py +3841 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-alaw.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiotest.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiotests.py +329 -0
- package/python3.4.2/lib/python3.4/test/autotest.py +6 -0
- package/python3.4.2/lib/python3.4/test/bad_coding.py +1 -0
- package/python3.4.2/lib/python3.4/test/bad_coding2.py +2 -0
- package/python3.4.2/lib/python3.4/test/badcert.pem +36 -0
- package/python3.4.2/lib/python3.4/test/badkey.pem +40 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_3131.py +2 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future10.py +3 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future3.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future4.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future5.py +12 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future6.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future7.py +11 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future8.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future9.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_pep3120.py +1 -0
- package/python3.4.2/lib/python3.4/test/buffer_tests.py +218 -0
- package/python3.4.2/lib/python3.4/test/bytecode_helper.py +41 -0
- package/python3.4.2/lib/python3.4/test/capath/4e1295a3.0 +14 -0
- package/python3.4.2/lib/python3.4/test/capath/5ed36f99.0 +41 -0
- package/python3.4.2/lib/python3.4/test/capath/6e88d7b8.0 +14 -0
- package/python3.4.2/lib/python3.4/test/capath/99d0fa06.0 +41 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.1 +2 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.2 +537 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.3 +69 -0
- package/python3.4.2/lib/python3.4/test/check_soundcard.vbs +13 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs-utf8.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/cp949-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/cp949.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030-utf8.txt +15 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030.txt +15 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312-utf8.txt +6 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312.txt +6 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gbk-utf8.txt +14 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gbk.txt +14 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/hz-utf8.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/hz.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/johab-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/johab.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cmath_testcases.txt +2370 -0
- package/python3.4.2/lib/python3.4/test/coding20731.py +4 -0
- package/python3.4.2/lib/python3.4/test/curses_tests.py +46 -0
- package/python3.4.2/lib/python3.4/test/data/README +2 -0
- package/python3.4.2/lib/python3.4/test/datetimetester.py +3786 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/abs.decTest +161 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/add.decTest +2716 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/and.decTest +338 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/base.decTest +1411 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/clamp.decTest +211 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/class.decTest +131 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/compare.decTest +758 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotal.decTest +798 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotmag.decTest +790 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copy.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copyabs.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copynegate.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copysign.decTest +177 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAbs.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAdd.decTest +1328 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAnd.decTest +347 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddBase.decTest +1104 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCanonical.decTest +357 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddClass.decTest +76 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompare.decTest +744 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareSig.decTest +647 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotal.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopy.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyAbs.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyNegate.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopySign.decTest +175 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivide.decTest +863 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivideInt.decTest +449 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddEncode.decTest +495 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddFMA.decTest +1698 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddInvert.decTest +202 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddLogB.decTest +159 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMax.decTest +322 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMaxMag.decTest +304 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMin.decTest +309 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinMag.decTest +293 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMultiply.decTest +553 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextMinus.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextPlus.decTest +124 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextToward.decTest +374 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddOr.decTest +292 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddPlus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddQuantize.decTest +833 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddReduce.decTest +182 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainder.decTest +600 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainderNear.decTest +629 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRotate.decTest +262 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSameQuantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddScaleB.decTest +243 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddShift.decTest +262 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSubtract.decTest +629 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddToIntegral.decTest +257 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddXor.decTest +337 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decDouble.decTest +65 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decQuad.decTest +65 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decSingle.decTest +25 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/divide.decTest +854 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/divideint.decTest +486 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAbs.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAdd.decTest +1215 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAnd.decTest +420 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqBase.decTest +1081 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCanonical.decTest +372 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqClass.decTest +77 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompare.decTest +753 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareSig.decTest +647 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotal.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopy.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyAbs.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyNegate.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopySign.decTest +175 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivide.decTest +808 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivideInt.decTest +453 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqEncode.decTest +477 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqFMA.decTest +1786 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqInvert.decTest +245 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqLogB.decTest +160 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMax.decTest +322 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMaxMag.decTest +304 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMin.decTest +309 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinMag.decTest +293 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMultiply.decTest +589 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextMinus.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextPlus.decTest +124 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextToward.decTest +375 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqOr.decTest +401 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqPlus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqQuantize.decTest +836 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqReduce.decTest +183 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainder.decTest +597 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainderNear.decTest +631 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRotate.decTest +298 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSameQuantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqScaleB.decTest +260 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqShift.decTest +298 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSubtract.decTest +635 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqToIntegral.decTest +257 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqXor.decTest +410 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dsBase.decTest +1062 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dsEncode.decTest +372 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/exp.decTest +674 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/extra.decTest +2830 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/fma.decTest +3426 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/inexact.decTest +215 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/invert.decTest +176 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ln.decTest +611 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/log10.decTest +551 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/logb.decTest +188 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/max.decTest +424 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/maxmag.decTest +404 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/min.decTest +407 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/minmag.decTest +390 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/minus.decTest +182 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/multiply.decTest +731 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nextminus.decTest +148 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nextplus.decTest +150 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nexttoward.decTest +426 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/or.decTest +334 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/plus.decTest +195 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/power.decTest +1624 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/powersqrt.decTest +2970 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/quantize.decTest +948 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/randomBound32.decTest +2443 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/randoms.decTest +4030 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/reduce.decTest +234 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/remainder.decTest +640 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/remainderNear.decTest +572 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rescale.decTest +764 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rotate.decTest +247 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rounding.decTest +1303 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/samequantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/scaleb.decTest +209 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/shift.decTest +250 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/squareroot.decTest +3834 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/subtract.decTest +873 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/testall.decTest +87 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegral.decTest +241 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegralx.decTest +255 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/xor.decTest +335 -0
- package/python3.4.2/lib/python3.4/test/dh512.pem +9 -0
- package/python3.4.2/lib/python3.4/test/dis_module.py +5 -0
- package/python3.4.2/lib/python3.4/test/doctest_aliases.py +13 -0
- package/python3.4.2/lib/python3.4/test/double_const.py +30 -0
- package/python3.4.2/lib/python3.4/test/empty.vbs +1 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/module_iso_8859_1.py +5 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/module_koi8_r.py +3 -0
- package/python3.4.2/lib/python3.4/test/exception_hierarchy.txt +61 -0
- package/python3.4.2/lib/python3.4/test/final_a.py +19 -0
- package/python3.4.2/lib/python3.4/test/final_b.py +19 -0
- package/python3.4.2/lib/python3.4/test/floating_points.txt +1028 -0
- package/python3.4.2/lib/python3.4/test/fork_wait.py +77 -0
- package/python3.4.2/lib/python3.4/test/formatfloat_testcases.txt +355 -0
- package/python3.4.2/lib/python3.4/test/future_test1.py +11 -0
- package/python3.4.2/lib/python3.4/test/future_test2.py +10 -0
- package/python3.4.2/lib/python3.4/test/gdb_sample.py +12 -0
- package/python3.4.2/lib/python3.4/test/https_svn_python_org_root.pem +41 -0
- package/python3.4.2/lib/python3.4/test/ieee754.txt +185 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.bmp +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.gif +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.jpg +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.pbm +3 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.pgm +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.png +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.ppm +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.ras +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.sgi +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.tiff +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.xbm +6 -0
- package/python3.4.2/lib/python3.4/test/inspect_fodder.py +58 -0
- package/python3.4.2/lib/python3.4/test/inspect_fodder2.py +111 -0
- package/python3.4.2/lib/python3.4/test/keycert.passwd.pem +33 -0
- package/python3.4.2/lib/python3.4/test/keycert.pem +31 -0
- package/python3.4.2/lib/python3.4/test/keycert2.pem +31 -0
- package/python3.4.2/lib/python3.4/test/keycert3.pem +73 -0
- package/python3.4.2/lib/python3.4/test/keycert4.pem +73 -0
- package/python3.4.2/lib/python3.4/test/list_tests.py +585 -0
- package/python3.4.2/lib/python3.4/test/lock_tests.py +896 -0
- package/python3.4.2/lib/python3.4/test/mailcap.txt +39 -0
- package/python3.4.2/lib/python3.4/test/make_ssl_certs.py +176 -0
- package/python3.4.2/lib/python3.4/test/mapping_tests.py +657 -0
- package/python3.4.2/lib/python3.4/test/math_testcases.txt +633 -0
- package/python3.4.2/lib/python3.4/test/memory_watchdog.py +28 -0
- package/python3.4.2/lib/python3.4/test/mime.types +1445 -0
- package/python3.4.2/lib/python3.4/test/mock_socket.py +156 -0
- package/python3.4.2/lib/python3.4/test/mp_fork_bomb.py +18 -0
- package/python3.4.2/lib/python3.4/test/multibytecodec_support.py +377 -0
- package/python3.4.2/lib/python3.4/test/nokia.pem +31 -0
- package/python3.4.2/lib/python3.4/test/nullbytecert.pem +90 -0
- package/python3.4.2/lib/python3.4/test/nullcert.pem +0 -0
- package/python3.4.2/lib/python3.4/test/outstanding_bugs.py +18 -0
- package/python3.4.2/lib/python3.4/test/pickletester.py +2253 -0
- package/python3.4.2/lib/python3.4/test/profilee.py +115 -0
- package/python3.4.2/lib/python3.4/test/pstats.pck +0 -0
- package/python3.4.2/lib/python3.4/test/pycacert.pem +78 -0
- package/python3.4.2/lib/python3.4/test/pycakey.pem +28 -0
- package/python3.4.2/lib/python3.4/test/pyclbr_input.py +33 -0
- package/python3.4.2/lib/python3.4/test/pydoc_mod.py +37 -0
- package/python3.4.2/lib/python3.4/test/pydocfodder.py +216 -0
- package/python3.4.2/lib/python3.4/test/pystone.py +277 -0
- package/python3.4.2/lib/python3.4/test/randv2_32.pck +633 -0
- package/python3.4.2/lib/python3.4/test/randv2_64.pck +633 -0
- package/python3.4.2/lib/python3.4/test/randv3.pck +633 -0
- package/python3.4.2/lib/python3.4/test/re_tests.py +670 -0
- package/python3.4.2/lib/python3.4/test/regrtest.py +1589 -0
- package/python3.4.2/lib/python3.4/test/relimport.py +1 -0
- package/python3.4.2/lib/python3.4/test/reperf.py +23 -0
- package/python3.4.2/lib/python3.4/test/revocation.crl +11 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest.py +76 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest_no_docstrings.py +12 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest_no_doctests.py +15 -0
- package/python3.4.2/lib/python3.4/test/script_helper.py +178 -0
- package/python3.4.2/lib/python3.4/test/seq_tests.py +397 -0
- package/python3.4.2/lib/python3.4/test/sgml_input.html +212 -0
- package/python3.4.2/lib/python3.4/test/sha256.pem +128 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/README +12 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.8svx +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.au +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.hcom +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.sndt +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.voc +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.wav +0 -0
- package/python3.4.2/lib/python3.4/test/sortperf.py +169 -0
- package/python3.4.2/lib/python3.4/test/ssl_cert.pem +15 -0
- package/python3.4.2/lib/python3.4/test/ssl_key.passwd.pem +18 -0
- package/python3.4.2/lib/python3.4/test/ssl_key.pem +16 -0
- package/python3.4.2/lib/python3.4/test/ssl_servers.py +205 -0
- package/python3.4.2/lib/python3.4/test/ssltests.py +22 -0
- package/python3.4.2/lib/python3.4/test/string_tests.py +1385 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/fd_status.py +34 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/input_reader.py +7 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/qcat.py +7 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/qgrep.py +10 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/sigchild_ignore.py +15 -0
- package/python3.4.2/lib/python3.4/test/support/__init__.py +2241 -0
- package/python3.4.2/lib/python3.4/test/test___all__.py +117 -0
- package/python3.4.2/lib/python3.4/test/test___future__.py +65 -0
- package/python3.4.2/lib/python3.4/test/test__locale.py +170 -0
- package/python3.4.2/lib/python3.4/test/test__opcode.py +23 -0
- package/python3.4.2/lib/python3.4/test/test__osx_support.py +281 -0
- package/python3.4.2/lib/python3.4/test/test_abc.py +408 -0
- package/python3.4.2/lib/python3.4/test/test_abstract_numbers.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_aifc.py +384 -0
- package/python3.4.2/lib/python3.4/test/test_argparse.py +4979 -0
- package/python3.4.2/lib/python3.4/test/test_array.py +1323 -0
- package/python3.4.2/lib/python3.4/test/test_ast.py +1038 -0
- package/python3.4.2/lib/python3.4/test/test_asynchat.py +333 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/__init__.py +10 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo.py +8 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo2.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo3.py +11 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/keycert3.pem +73 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/pycacert.pem +78 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_cert.pem +15 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_key.pem +16 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_base_events.py +1064 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_events.py +2240 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_futures.py +442 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_locks.py +858 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_proactor_events.py +492 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_queues.py +476 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_selector_events.py +1737 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_streams.py +628 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_subprocess.py +217 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_tasks.py +1977 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_transports.py +90 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_unix_events.py +1582 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_events.py +141 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_utils.py +171 -0
- package/python3.4.2/lib/python3.4/test/test_asyncore.py +859 -0
- package/python3.4.2/lib/python3.4/test/test_atexit.py +185 -0
- package/python3.4.2/lib/python3.4/test/test_audioop.py +534 -0
- package/python3.4.2/lib/python3.4/test/test_augassign.py +315 -0
- package/python3.4.2/lib/python3.4/test/test_base64.py +666 -0
- package/python3.4.2/lib/python3.4/test/test_bigaddrspace.py +101 -0
- package/python3.4.2/lib/python3.4/test/test_bigmem.py +1257 -0
- package/python3.4.2/lib/python3.4/test/test_binascii.py +270 -0
- package/python3.4.2/lib/python3.4/test/test_binhex.py +56 -0
- package/python3.4.2/lib/python3.4/test/test_binop.py +380 -0
- package/python3.4.2/lib/python3.4/test/test_bisect.py +328 -0
- package/python3.4.2/lib/python3.4/test/test_bool.py +347 -0
- package/python3.4.2/lib/python3.4/test/test_buffer.py +4294 -0
- package/python3.4.2/lib/python3.4/test/test_bufio.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_builtin.py +1637 -0
- package/python3.4.2/lib/python3.4/test/test_bytes.py +1433 -0
- package/python3.4.2/lib/python3.4/test/test_bz2.py +880 -0
- package/python3.4.2/lib/python3.4/test/test_calendar.py +714 -0
- package/python3.4.2/lib/python3.4/test/test_call.py +131 -0
- package/python3.4.2/lib/python3.4/test/test_capi.py +469 -0
- package/python3.4.2/lib/python3.4/test/test_cgi.py +489 -0
- package/python3.4.2/lib/python3.4/test/test_cgitb.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_charmapcodec.py +56 -0
- package/python3.4.2/lib/python3.4/test/test_class.py +552 -0
- package/python3.4.2/lib/python3.4/test/test_cmath.py +536 -0
- package/python3.4.2/lib/python3.4/test/test_cmd.py +243 -0
- package/python3.4.2/lib/python3.4/test/test_cmd_line.py +473 -0
- package/python3.4.2/lib/python3.4/test/test_cmd_line_script.py +481 -0
- package/python3.4.2/lib/python3.4/test/test_code.py +170 -0
- package/python3.4.2/lib/python3.4/test/test_code_module.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_codeccallbacks.py +880 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_cn.py +90 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_hk.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_iso2022.py +45 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_jp.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_kr.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_tw.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_cn.py +29 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_hk.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_jp.py +63 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_kr.py +40 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_tw.py +30 -0
- package/python3.4.2/lib/python3.4/test/test_codecs.py +2901 -0
- package/python3.4.2/lib/python3.4/test/test_codeop.py +304 -0
- package/python3.4.2/lib/python3.4/test/test_collections.py +1552 -0
- package/python3.4.2/lib/python3.4/test/test_colorsys.py +100 -0
- package/python3.4.2/lib/python3.4/test/test_compare.py +67 -0
- package/python3.4.2/lib/python3.4/test/test_compile.py +561 -0
- package/python3.4.2/lib/python3.4/test/test_compileall.py +384 -0
- package/python3.4.2/lib/python3.4/test/test_complex.py +638 -0
- package/python3.4.2/lib/python3.4/test/test_concurrent_futures.py +685 -0
- package/python3.4.2/lib/python3.4/test/test_configparser.py +1768 -0
- package/python3.4.2/lib/python3.4/test/test_contains.py +93 -0
- package/python3.4.2/lib/python3.4/test/test_contextlib.py +828 -0
- package/python3.4.2/lib/python3.4/test/test_copy.py +759 -0
- package/python3.4.2/lib/python3.4/test/test_copyreg.py +121 -0
- package/python3.4.2/lib/python3.4/test/test_cprofile.py +98 -0
- package/python3.4.2/lib/python3.4/test/test_crashers.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_crypt.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_csv.py +1074 -0
- package/python3.4.2/lib/python3.4/test/test_ctypes.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_curses.py +395 -0
- package/python3.4.2/lib/python3.4/test/test_datetime.py +48 -0
- package/python3.4.2/lib/python3.4/test/test_dbm.py +193 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_dumb.py +228 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_gnu.py +97 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_ndbm.py +54 -0
- package/python3.4.2/lib/python3.4/test/test_decimal.py +5504 -0
- package/python3.4.2/lib/python3.4/test/test_decorators.py +309 -0
- package/python3.4.2/lib/python3.4/test/test_defaultdict.py +190 -0
- package/python3.4.2/lib/python3.4/test/test_deque.py +817 -0
- package/python3.4.2/lib/python3.4/test/test_descr.py +5006 -0
- package/python3.4.2/lib/python3.4/test/test_descrtut.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_devpoll.py +146 -0
- package/python3.4.2/lib/python3.4/test/test_dict.py +928 -0
- package/python3.4.2/lib/python3.4/test/test_dictcomps.py +88 -0
- package/python3.4.2/lib/python3.4/test/test_dictviews.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_difflib.py +298 -0
- package/python3.4.2/lib/python3.4/test/test_difflib_expect.html +526 -0
- package/python3.4.2/lib/python3.4/test/test_dis.py +832 -0
- package/python3.4.2/lib/python3.4/test/test_distutils.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_doctest.py +2921 -0
- package/python3.4.2/lib/python3.4/test/test_doctest.txt +17 -0
- package/python3.4.2/lib/python3.4/test/test_doctest2.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_doctest2.txt +14 -0
- package/python3.4.2/lib/python3.4/test/test_doctest3.txt +5 -0
- package/python3.4.2/lib/python3.4/test/test_doctest4.txt +11 -0
- package/python3.4.2/lib/python3.4/test/test_docxmlrpc.py +219 -0
- package/python3.4.2/lib/python3.4/test/test_dummy_thread.py +182 -0
- package/python3.4.2/lib/python3.4/test/test_dummy_threading.py +64 -0
- package/python3.4.2/lib/python3.4/test/test_dynamic.py +143 -0
- package/python3.4.2/lib/python3.4/test/test_dynamicclassattribute.py +304 -0
- package/python3.4.2/lib/python3.4/test/test_email/__init__.py +159 -0
- package/python3.4.2/lib/python3.4/test/test_email/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/PyBanner048.gif +0 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/audiotest.au +0 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_01.txt +19 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_02.txt +136 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_03.txt +16 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_04.txt +37 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_05.txt +28 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_06.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_07.txt +83 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_08.txt +24 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_09.txt +24 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_10.txt +39 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_11.txt +7 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_12.txt +36 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_12a.txt +38 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_13.txt +94 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_14.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_15.txt +52 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_16.txt +123 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_17.txt +12 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_18.txt +6 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_19.txt +43 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_20.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_21.txt +20 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_22.txt +46 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_23.txt +8 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_24.txt +10 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_25.txt +117 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_26.txt +46 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_27.txt +15 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_28.txt +25 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_29.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_30.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_31.txt +15 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_32.txt +14 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_33.txt +29 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_34.txt +19 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_35.txt +4 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_36.txt +40 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_37.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_38.txt +101 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_39.txt +83 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_40.txt +10 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_41.txt +8 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_42.txt +20 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_43.txt +217 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_44.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_45.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_46.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/test__encoded_words.py +192 -0
- package/python3.4.2/lib/python3.4/test/test_email/test__header_value_parser.py +2606 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_asian_codecs.py +82 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_contentmanager.py +796 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_defect_handling.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_email.py +5289 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_generator.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_headerregistry.py +1594 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_inversion.py +49 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_message.py +783 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_parser.py +36 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_pickleable.py +74 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_policy.py +332 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_utils.py +140 -0
- package/python3.4.2/lib/python3.4/test/test_email/torture_test.py +136 -0
- package/python3.4.2/lib/python3.4/test/test_ensurepip.py +345 -0
- package/python3.4.2/lib/python3.4/test/test_enum.py +1592 -0
- package/python3.4.2/lib/python3.4/test/test_enumerate.py +272 -0
- package/python3.4.2/lib/python3.4/test/test_eof.py +31 -0
- package/python3.4.2/lib/python3.4/test/test_epoll.py +259 -0
- package/python3.4.2/lib/python3.4/test/test_errno.py +40 -0
- package/python3.4.2/lib/python3.4/test/test_exception_variations.py +180 -0
- package/python3.4.2/lib/python3.4/test/test_exceptions.py +978 -0
- package/python3.4.2/lib/python3.4/test/test_extcall.py +349 -0
- package/python3.4.2/lib/python3.4/test/test_faulthandler.py +623 -0
- package/python3.4.2/lib/python3.4/test/test_fcntl.py +152 -0
- package/python3.4.2/lib/python3.4/test/test_file.py +329 -0
- package/python3.4.2/lib/python3.4/test/test_file_eintr.py +236 -0
- package/python3.4.2/lib/python3.4/test/test_filecmp.py +217 -0
- package/python3.4.2/lib/python3.4/test/test_fileinput.py +891 -0
- package/python3.4.2/lib/python3.4/test/test_fileio.py +480 -0
- package/python3.4.2/lib/python3.4/test/test_finalization.py +522 -0
- package/python3.4.2/lib/python3.4/test/test_float.py +1312 -0
- package/python3.4.2/lib/python3.4/test/test_flufl.py +27 -0
- package/python3.4.2/lib/python3.4/test/test_fnmatch.py +89 -0
- package/python3.4.2/lib/python3.4/test/test_fork1.py +111 -0
- package/python3.4.2/lib/python3.4/test/test_format.py +362 -0
- package/python3.4.2/lib/python3.4/test/test_fractions.py +612 -0
- package/python3.4.2/lib/python3.4/test/test_frame.py +168 -0
- package/python3.4.2/lib/python3.4/test/test_ftplib.py +1080 -0
- package/python3.4.2/lib/python3.4/test/test_funcattrs.py +385 -0
- package/python3.4.2/lib/python3.4/test/test_functools.py +1584 -0
- package/python3.4.2/lib/python3.4/test/test_future.py +125 -0
- package/python3.4.2/lib/python3.4/test/test_future3.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_future4.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_future5.py +21 -0
- package/python3.4.2/lib/python3.4/test/test_gc.py +1013 -0
- package/python3.4.2/lib/python3.4/test/test_gdb.py +870 -0
- package/python3.4.2/lib/python3.4/test/test_generators.py +1940 -0
- package/python3.4.2/lib/python3.4/test/test_genericpath.py +439 -0
- package/python3.4.2/lib/python3.4/test/test_genexps.py +285 -0
- package/python3.4.2/lib/python3.4/test/test_getargs2.py +615 -0
- package/python3.4.2/lib/python3.4/test/test_getopt.py +187 -0
- package/python3.4.2/lib/python3.4/test/test_getpass.py +163 -0
- package/python3.4.2/lib/python3.4/test/test_gettext.py +467 -0
- package/python3.4.2/lib/python3.4/test/test_glob.py +200 -0
- package/python3.4.2/lib/python3.4/test/test_global.py +61 -0
- package/python3.4.2/lib/python3.4/test/test_grammar.py +1024 -0
- package/python3.4.2/lib/python3.4/test/test_grp.py +99 -0
- package/python3.4.2/lib/python3.4/test/test_gzip.py +561 -0
- package/python3.4.2/lib/python3.4/test/test_hash.py +346 -0
- package/python3.4.2/lib/python3.4/test/test_hashlib.py +533 -0
- package/python3.4.2/lib/python3.4/test/test_heapq.py +417 -0
- package/python3.4.2/lib/python3.4/test/test_hmac.py +506 -0
- package/python3.4.2/lib/python3.4/test/test_html.py +104 -0
- package/python3.4.2/lib/python3.4/test/test_htmlparser.py +832 -0
- package/python3.4.2/lib/python3.4/test/test_http_cookiejar.py +1714 -0
- package/python3.4.2/lib/python3.4/test/test_http_cookies.py +243 -0
- package/python3.4.2/lib/python3.4/test/test_httplib.py +1025 -0
- package/python3.4.2/lib/python3.4/test/test_httpservers.py +770 -0
- package/python3.4.2/lib/python3.4/test/test_idle.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_imaplib.py +504 -0
- package/python3.4.2/lib/python3.4/test/test_imghdr.py +131 -0
- package/python3.4.2/lib/python3.4/test/test_imp.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_import.py +1072 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/abc.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_finder.py +85 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_loader.py +106 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/util.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_case_sensitivity.py +51 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_finder.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_loader.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_path_hook.py +32 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/util.py +19 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_finder.py +80 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_loader.py +222 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___loader__.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___package__.py +133 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_api.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_caching.py +92 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_fromlist.py +129 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_meta_path.py +119 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_packages.py +110 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_path.py +144 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_relative_imports.py +216 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/util.py +20 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/regrtest.py +17 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_case_sensitivity.py +83 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_file_loader.py +588 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_finder.py +232 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_path_hook.py +30 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_source_encoding.py +165 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/util.py +96 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_abc.py +951 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_api.py +437 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_locks.py +156 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_namespace_pkgs.py +293 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_spec.py +957 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_util.py +592 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_windows.py +29 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/util.py +225 -0
- package/python3.4.2/lib/python3.4/test/test_index.py +275 -0
- package/python3.4.2/lib/python3.4/test/test_inspect.py +3103 -0
- package/python3.4.2/lib/python3.4/test/test_int.py +458 -0
- package/python3.4.2/lib/python3.4/test/test_int_literal.py +147 -0
- package/python3.4.2/lib/python3.4/test/test_io.py +3481 -0
- package/python3.4.2/lib/python3.4/test/test_ioctl.py +91 -0
- package/python3.4.2/lib/python3.4/test/test_ipaddress.py +1693 -0
- package/python3.4.2/lib/python3.4/test/test_isinstance.py +289 -0
- package/python3.4.2/lib/python3.4/test/test_iter.py +927 -0
- package/python3.4.2/lib/python3.4/test/test_iterlen.py +229 -0
- package/python3.4.2/lib/python3.4/test/test_itertools.py +2142 -0
- package/python3.4.2/lib/python3.4/test/test_json/__init__.py +53 -0
- package/python3.4.2/lib/python3.4/test/test_json/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_decode.py +99 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_default.py +12 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_dump.py +49 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_encode_basestring_ascii.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_enum.py +120 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_fail.py +194 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_float.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_indent.py +67 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass1.py +75 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass2.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass3.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_recursion.py +100 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_scanstring.py +141 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_separators.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_speedups.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_tool.py +69 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_unicode.py +75 -0
- package/python3.4.2/lib/python3.4/test/test_keyword.py +138 -0
- package/python3.4.2/lib/python3.4/test/test_keywordonlyarg.py +193 -0
- package/python3.4.2/lib/python3.4/test/test_kqueue.py +219 -0
- package/python3.4.2/lib/python3.4/test/test_largefile.py +180 -0
- package/python3.4.2/lib/python3.4/test/test_lib2to3.py +22 -0
- package/python3.4.2/lib/python3.4/test/test_linecache.py +133 -0
- package/python3.4.2/lib/python3.4/test/test_list.py +125 -0
- package/python3.4.2/lib/python3.4/test/test_listcomps.py +148 -0
- package/python3.4.2/lib/python3.4/test/test_locale.py +528 -0
- package/python3.4.2/lib/python3.4/test/test_logging.py +4179 -0
- package/python3.4.2/lib/python3.4/test/test_long.py +1250 -0
- package/python3.4.2/lib/python3.4/test/test_longexp.py +14 -0
- package/python3.4.2/lib/python3.4/test/test_lzma.py +1592 -0
- package/python3.4.2/lib/python3.4/test/test_macpath.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_macurl2path.py +31 -0
- package/python3.4.2/lib/python3.4/test/test_mailbox.py +2287 -0
- package/python3.4.2/lib/python3.4/test/test_mailcap.py +221 -0
- package/python3.4.2/lib/python3.4/test/test_marshal.py +451 -0
- package/python3.4.2/lib/python3.4/test/test_math.py +1107 -0
- package/python3.4.2/lib/python3.4/test/test_memoryio.py +784 -0
- package/python3.4.2/lib/python3.4/test/test_memoryview.py +478 -0
- package/python3.4.2/lib/python3.4/test/test_metaclass.py +265 -0
- package/python3.4.2/lib/python3.4/test/test_mimetypes.py +111 -0
- package/python3.4.2/lib/python3.4/test/test_minidom.py +1545 -0
- package/python3.4.2/lib/python3.4/test/test_mmap.py +774 -0
- package/python3.4.2/lib/python3.4/test/test_module.py +222 -0
- package/python3.4.2/lib/python3.4/test/test_modulefinder.py +324 -0
- package/python3.4.2/lib/python3.4/test/test_msilib.py +46 -0
- package/python3.4.2/lib/python3.4/test/test_multibytecodec.py +263 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_fork.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_forkserver.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_main_handling.py +289 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_spawn.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_netrc.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_nis.py +43 -0
- package/python3.4.2/lib/python3.4/test/test_nntplib.py +1429 -0
- package/python3.4.2/lib/python3.4/test/test_normalization.py +104 -0
- package/python3.4.2/lib/python3.4/test/test_ntpath.py +385 -0
- package/python3.4.2/lib/python3.4/test/test_numeric_tower.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_opcodes.py +112 -0
- package/python3.4.2/lib/python3.4/test/test_openpty.py +25 -0
- package/python3.4.2/lib/python3.4/test/test_operator.py +484 -0
- package/python3.4.2/lib/python3.4/test/test_optparse.py +1657 -0
- package/python3.4.2/lib/python3.4/test/test_os.py +2550 -0
- package/python3.4.2/lib/python3.4/test/test_ossaudiodev.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_osx_env.py +34 -0
- package/python3.4.2/lib/python3.4/test/test_parser.py +745 -0
- package/python3.4.2/lib/python3.4/test/test_pathlib.py +1884 -0
- package/python3.4.2/lib/python3.4/test/test_pdb.py +1052 -0
- package/python3.4.2/lib/python3.4/test/test_peepholer.py +339 -0
- package/python3.4.2/lib/python3.4/test/test_pep247.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_pep277.py +201 -0
- package/python3.4.2/lib/python3.4/test/test_pep292.py +247 -0
- package/python3.4.2/lib/python3.4/test/test_pep3120.py +47 -0
- package/python3.4.2/lib/python3.4/test/test_pep3131.py +35 -0
- package/python3.4.2/lib/python3.4/test/test_pep3151.py +209 -0
- package/python3.4.2/lib/python3.4/test/test_pep352.py +184 -0
- package/python3.4.2/lib/python3.4/test/test_pep380.py +1023 -0
- package/python3.4.2/lib/python3.4/test/test_pickle.py +156 -0
- package/python3.4.2/lib/python3.4/test/test_pickletools.py +25 -0
- package/python3.4.2/lib/python3.4/test/test_pipes.py +196 -0
- package/python3.4.2/lib/python3.4/test/test_pkg.py +299 -0
- package/python3.4.2/lib/python3.4/test/test_pkgimport.py +84 -0
- package/python3.4.2/lib/python3.4/test/test_pkgutil.py +410 -0
- package/python3.4.2/lib/python3.4/test/test_platform.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_plistlib.py +526 -0
- package/python3.4.2/lib/python3.4/test/test_poll.py +215 -0
- package/python3.4.2/lib/python3.4/test/test_popen.py +64 -0
- package/python3.4.2/lib/python3.4/test/test_poplib.py +507 -0
- package/python3.4.2/lib/python3.4/test/test_posix.py +1183 -0
- package/python3.4.2/lib/python3.4/test/test_posixpath.py +544 -0
- package/python3.4.2/lib/python3.4/test/test_pow.py +129 -0
- package/python3.4.2/lib/python3.4/test/test_pprint.py +602 -0
- package/python3.4.2/lib/python3.4/test/test_print.py +132 -0
- package/python3.4.2/lib/python3.4/test/test_profile.py +187 -0
- package/python3.4.2/lib/python3.4/test/test_property.py +254 -0
- package/python3.4.2/lib/python3.4/test/test_pstats.py +45 -0
- package/python3.4.2/lib/python3.4/test/test_pty.py +302 -0
- package/python3.4.2/lib/python3.4/test/test_pulldom.py +347 -0
- package/python3.4.2/lib/python3.4/test/test_pwd.py +114 -0
- package/python3.4.2/lib/python3.4/test/test_py_compile.py +103 -0
- package/python3.4.2/lib/python3.4/test/test_pyclbr.py +181 -0
- package/python3.4.2/lib/python3.4/test/test_pydoc.py +1003 -0
- package/python3.4.2/lib/python3.4/test/test_pyexpat.py +708 -0
- package/python3.4.2/lib/python3.4/test/test_queue.py +363 -0
- package/python3.4.2/lib/python3.4/test/test_quopri.py +208 -0
- package/python3.4.2/lib/python3.4/test/test_raise.py +422 -0
- package/python3.4.2/lib/python3.4/test/test_random.py +759 -0
- package/python3.4.2/lib/python3.4/test/test_range.py +652 -0
- package/python3.4.2/lib/python3.4/test/test_re.py +1451 -0
- package/python3.4.2/lib/python3.4/test/test_readline.py +60 -0
- package/python3.4.2/lib/python3.4/test/test_regrtest.py +275 -0
- package/python3.4.2/lib/python3.4/test/test_reprlib.py +383 -0
- package/python3.4.2/lib/python3.4/test/test_resource.py +166 -0
- package/python3.4.2/lib/python3.4/test/test_richcmp.py +333 -0
- package/python3.4.2/lib/python3.4/test/test_rlcompleter.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_robotparser.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_runpy.py +691 -0
- package/python3.4.2/lib/python3.4/test/test_sax.py +1007 -0
- package/python3.4.2/lib/python3.4/test/test_sched.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_scope.py +764 -0
- package/python3.4.2/lib/python3.4/test/test_select.py +83 -0
- package/python3.4.2/lib/python3.4/test/test_selectors.py +453 -0
- package/python3.4.2/lib/python3.4/test/test_set.py +1839 -0
- package/python3.4.2/lib/python3.4/test/test_setcomps.py +151 -0
- package/python3.4.2/lib/python3.4/test/test_shelve.py +224 -0
- package/python3.4.2/lib/python3.4/test/test_shlex.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_shutil.py +1766 -0
- package/python3.4.2/lib/python3.4/test/test_signal.py +940 -0
- package/python3.4.2/lib/python3.4/test/test_site.py +468 -0
- package/python3.4.2/lib/python3.4/test/test_slice.py +247 -0
- package/python3.4.2/lib/python3.4/test/test_smtpd.py +557 -0
- package/python3.4.2/lib/python3.4/test/test_smtplib.py +950 -0
- package/python3.4.2/lib/python3.4/test/test_smtpnet.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_sndhdr.py +23 -0
- package/python3.4.2/lib/python3.4/test/test_socket.py +5163 -0
- package/python3.4.2/lib/python3.4/test/test_socketserver.py +314 -0
- package/python3.4.2/lib/python3.4/test/test_sort.py +285 -0
- package/python3.4.2/lib/python3.4/test/test_source_encoding.py +145 -0
- package/python3.4.2/lib/python3.4/test/test_spwd.py +60 -0
- package/python3.4.2/lib/python3.4/test/test_sqlite.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_ssl.py +2908 -0
- package/python3.4.2/lib/python3.4/test/test_startfile.py +37 -0
- package/python3.4.2/lib/python3.4/test/test_stat.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_statistics.py +1574 -0
- package/python3.4.2/lib/python3.4/test/test_strftime.py +204 -0
- package/python3.4.2/lib/python3.4/test/test_string.py +174 -0
- package/python3.4.2/lib/python3.4/test/test_stringprep.py +96 -0
- package/python3.4.2/lib/python3.4/test/test_strlit.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_strptime.py +577 -0
- package/python3.4.2/lib/python3.4/test/test_strtod.py +436 -0
- package/python3.4.2/lib/python3.4/test/test_struct.py +667 -0
- package/python3.4.2/lib/python3.4/test/test_structmembers.py +147 -0
- package/python3.4.2/lib/python3.4/test/test_structseq.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_subprocess.py +2474 -0
- package/python3.4.2/lib/python3.4/test/test_sunau.py +122 -0
- package/python3.4.2/lib/python3.4/test/test_sundry.py +59 -0
- package/python3.4.2/lib/python3.4/test/test_super.py +181 -0
- package/python3.4.2/lib/python3.4/test/test_support.py +315 -0
- package/python3.4.2/lib/python3.4/test/test_symtable.py +176 -0
- package/python3.4.2/lib/python3.4/test/test_syntax.py +593 -0
- package/python3.4.2/lib/python3.4/test/test_sys.py +1000 -0
- package/python3.4.2/lib/python3.4/test/test_sys_setprofile.py +386 -0
- package/python3.4.2/lib/python3.4/test/test_sys_settrace.py +834 -0
- package/python3.4.2/lib/python3.4/test/test_sysconfig.py +423 -0
- package/python3.4.2/lib/python3.4/test/test_syslog.py +43 -0
- package/python3.4.2/lib/python3.4/test/test_tarfile.py +2180 -0
- package/python3.4.2/lib/python3.4/test/test_tcl.py +642 -0
- package/python3.4.2/lib/python3.4/test/test_telnetlib.py +401 -0
- package/python3.4.2/lib/python3.4/test/test_tempfile.py +1248 -0
- package/python3.4.2/lib/python3.4/test/test_textwrap.py +929 -0
- package/python3.4.2/lib/python3.4/test/test_thread.py +260 -0
- package/python3.4.2/lib/python3.4/test/test_threaded_import.py +244 -0
- package/python3.4.2/lib/python3.4/test/test_threadedtempfile.py +78 -0
- package/python3.4.2/lib/python3.4/test/test_threading.py +1021 -0
- package/python3.4.2/lib/python3.4/test/test_threading_local.py +225 -0
- package/python3.4.2/lib/python3.4/test/test_threadsignals.py +227 -0
- package/python3.4.2/lib/python3.4/test/test_time.py +763 -0
- package/python3.4.2/lib/python3.4/test/test_timeit.py +306 -0
- package/python3.4.2/lib/python3.4/test/test_timeout.py +303 -0
- package/python3.4.2/lib/python3.4/test/test_tk.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_tokenize.py +1233 -0
- package/python3.4.2/lib/python3.4/test/test_trace.py +415 -0
- package/python3.4.2/lib/python3.4/test/test_traceback.py +451 -0
- package/python3.4.2/lib/python3.4/test/test_tracemalloc.py +826 -0
- package/python3.4.2/lib/python3.4/test/test_ttk_guionly.py +37 -0
- package/python3.4.2/lib/python3.4/test/test_ttk_textonly.py +17 -0
- package/python3.4.2/lib/python3.4/test/test_tuple.py +208 -0
- package/python3.4.2/lib/python3.4/test/test_typechecks.py +76 -0
- package/python3.4.2/lib/python3.4/test/test_types.py +1178 -0
- package/python3.4.2/lib/python3.4/test/test_ucn.py +240 -0
- package/python3.4.2/lib/python3.4/test/test_unary.py +58 -0
- package/python3.4.2/lib/python3.4/test/test_unicode.py +2596 -0
- package/python3.4.2/lib/python3.4/test/test_unicode_file.py +144 -0
- package/python3.4.2/lib/python3.4/test/test_unicodedata.py +323 -0
- package/python3.4.2/lib/python3.4/test/test_unittest.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_univnewlines.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_unpack.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_unpack_ex.py +174 -0
- package/python3.4.2/lib/python3.4/test/test_urllib.py +1486 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2.py +1646 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2_localnet.py +690 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2net.py +342 -0
- package/python3.4.2/lib/python3.4/test/test_urllib_response.py +59 -0
- package/python3.4.2/lib/python3.4/test/test_urllibnet.py +212 -0
- package/python3.4.2/lib/python3.4/test/test_urlparse.py +879 -0
- package/python3.4.2/lib/python3.4/test/test_userdict.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_userlist.py +65 -0
- package/python3.4.2/lib/python3.4/test/test_userstring.py +47 -0
- package/python3.4.2/lib/python3.4/test/test_uu.py +239 -0
- package/python3.4.2/lib/python3.4/test/test_uuid.py +498 -0
- package/python3.4.2/lib/python3.4/test/test_venv.py +406 -0
- package/python3.4.2/lib/python3.4/test/test_wait3.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_wait4.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_warnings.py +873 -0
- package/python3.4.2/lib/python3.4/test/test_wave.py +107 -0
- package/python3.4.2/lib/python3.4/test/test_weakref.py +1801 -0
- package/python3.4.2/lib/python3.4/test/test_weakset.py +450 -0
- package/python3.4.2/lib/python3.4/test/test_webbrowser.py +192 -0
- package/python3.4.2/lib/python3.4/test/test_winreg.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_winsound.py +253 -0
- package/python3.4.2/lib/python3.4/test/test_with.py +750 -0
- package/python3.4.2/lib/python3.4/test/test_wsgiref.py +640 -0
- package/python3.4.2/lib/python3.4/test/test_xdrlib.py +58 -0
- package/python3.4.2/lib/python3.4/test/test_xml_dom_minicompat.py +101 -0
- package/python3.4.2/lib/python3.4/test/test_xml_etree.py +2587 -0
- package/python3.4.2/lib/python3.4/test/test_xml_etree_c.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_xmlrpc.py +1114 -0
- package/python3.4.2/lib/python3.4/test/test_xmlrpc_net.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_zipfile.py +1783 -0
- package/python3.4.2/lib/python3.4/test/test_zipfile64.py +118 -0
- package/python3.4.2/lib/python3.4/test/test_zipimport.py +507 -0
- package/python3.4.2/lib/python3.4/test/test_zipimport_support.py +246 -0
- package/python3.4.2/lib/python3.4/test/test_zlib.py +725 -0
- package/python3.4.2/lib/python3.4/test/testcodec.py +48 -0
- package/python3.4.2/lib/python3.4/test/testtar.tar +0 -0
- package/python3.4.2/lib/python3.4/test/tf_inherit_check.py +25 -0
- package/python3.4.2/lib/python3.4/test/threaded_import_hangers.py +45 -0
- package/python3.4.2/lib/python3.4/test/time_hashlib.py +87 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests.txt +189 -0
- package/python3.4.2/lib/python3.4/test/tracedmodules/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/test/tracedmodules/testmod.py +9 -0
- package/python3.4.2/lib/python3.4/test/warning_tests.py +9 -0
- package/python3.4.2/lib/python3.4/test/win_console_handler.py +49 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/simple-ns.xml +7 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/simple.xml +6 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml +115 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml.out +115 -0
- package/python3.4.2/lib/python3.4/test/xmltests.py +21 -0
- package/python3.4.2/lib/python3.4/test/zip_cp437_header.zip +0 -0
- package/python3.4.2/lib/python3.4/test/zipdir.zip +0 -0
- package/python3.4.2/lib/python3.4/textwrap.py +470 -0
- package/python3.4.2/lib/python3.4/this.py +28 -0
- package/python3.4.2/lib/python3.4/threading.py +1359 -0
- package/python3.4.2/lib/python3.4/timeit.py +322 -0
- package/python3.4.2/lib/python3.4/tkinter/__init__.py +3898 -0
- package/python3.4.2/lib/python3.4/tkinter/__main__.py +7 -0
- package/python3.4.2/lib/python3.4/tkinter/_fix.py +78 -0
- package/python3.4.2/lib/python3.4/tkinter/colorchooser.py +72 -0
- package/python3.4.2/lib/python3.4/tkinter/commondialog.py +60 -0
- package/python3.4.2/lib/python3.4/tkinter/constants.py +110 -0
- package/python3.4.2/lib/python3.4/tkinter/dialog.py +49 -0
- package/python3.4.2/lib/python3.4/tkinter/dnd.py +321 -0
- package/python3.4.2/lib/python3.4/tkinter/filedialog.py +479 -0
- package/python3.4.2/lib/python3.4/tkinter/font.py +234 -0
- package/python3.4.2/lib/python3.4/tkinter/messagebox.py +134 -0
- package/python3.4.2/lib/python3.4/tkinter/scrolledtext.py +54 -0
- package/python3.4.2/lib/python3.4/tkinter/simpledialog.py +423 -0
- package/python3.4.2/lib/python3.4/tkinter/test/README +14 -0
- package/python3.4.2/lib/python3.4/tkinter/test/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/runtktests.py +71 -0
- package/python3.4.2/lib/python3.4/tkinter/test/support.py +104 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_font.py +27 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_geometry_managers.py +900 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_images.py +327 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_loadtk.py +46 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_misc.py +42 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_text.py +47 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_variables.py +186 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py +1193 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_extensions.py +291 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_functions.py +462 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_style.py +92 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_widgets.py +1598 -0
- package/python3.4.2/lib/python3.4/tkinter/test/widget_tests.py +521 -0
- package/python3.4.2/lib/python3.4/tkinter/tix.py +1944 -0
- package/python3.4.2/lib/python3.4/tkinter/ttk.py +1616 -0
- package/python3.4.2/lib/python3.4/token.py +140 -0
- package/python3.4.2/lib/python3.4/tokenize.py +691 -0
- package/python3.4.2/lib/python3.4/trace.py +858 -0
- package/python3.4.2/lib/python3.4/traceback.py +313 -0
- package/python3.4.2/lib/python3.4/tracemalloc.py +487 -0
- package/python3.4.2/lib/python3.4/tty.py +36 -0
- package/python3.4.2/lib/python3.4/turtle.py +4140 -0
- package/python3.4.2/lib/python3.4/turtledemo/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/turtledemo/__main__.py +380 -0
- package/python3.4.2/lib/python3.4/turtledemo/bytedesign.py +162 -0
- package/python3.4.2/lib/python3.4/turtledemo/chaos.py +59 -0
- package/python3.4.2/lib/python3.4/turtledemo/clock.py +132 -0
- package/python3.4.2/lib/python3.4/turtledemo/colormixer.py +58 -0
- package/python3.4.2/lib/python3.4/turtledemo/forest.py +108 -0
- package/python3.4.2/lib/python3.4/turtledemo/fractalcurves.py +138 -0
- package/python3.4.2/lib/python3.4/turtledemo/lindenmayer.py +119 -0
- package/python3.4.2/lib/python3.4/turtledemo/minimal_hanoi.py +79 -0
- package/python3.4.2/lib/python3.4/turtledemo/nim.py +226 -0
- package/python3.4.2/lib/python3.4/turtledemo/paint.py +54 -0
- package/python3.4.2/lib/python3.4/turtledemo/peace.py +61 -0
- package/python3.4.2/lib/python3.4/turtledemo/penrose.py +181 -0
- package/python3.4.2/lib/python3.4/turtledemo/planet_and_moon.py +112 -0
- package/python3.4.2/lib/python3.4/turtledemo/round_dance.py +86 -0
- package/python3.4.2/lib/python3.4/turtledemo/tree.py +63 -0
- package/python3.4.2/lib/python3.4/turtledemo/turtle.cfg +10 -0
- package/python3.4.2/lib/python3.4/turtledemo/two_canvases.py +54 -0
- package/python3.4.2/lib/python3.4/turtledemo/wikipedia.py +65 -0
- package/python3.4.2/lib/python3.4/turtledemo/yinyang.py +49 -0
- package/python3.4.2/lib/python3.4/types.py +158 -0
- package/python3.4.2/lib/python3.4/unittest/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/unittest/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/case.py +1400 -0
- package/python3.4.2/lib/python3.4/unittest/loader.py +379 -0
- package/python3.4.2/lib/python3.4/unittest/main.py +248 -0
- package/python3.4.2/lib/python3.4/unittest/mock.py +2330 -0
- package/python3.4.2/lib/python3.4/unittest/result.py +212 -0
- package/python3.4.2/lib/python3.4/unittest/runner.py +213 -0
- package/python3.4.2/lib/python3.4/unittest/signals.py +71 -0
- package/python3.4.2/lib/python3.4/unittest/suite.py +324 -0
- package/python3.4.2/lib/python3.4/unittest/test/__init__.py +22 -0
- package/python3.4.2/lib/python3.4/unittest/test/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/test/_test_warnings.py +73 -0
- package/python3.4.2/lib/python3.4/unittest/test/dummy.py +1 -0
- package/python3.4.2/lib/python3.4/unittest/test/support.py +142 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_assertions.py +398 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_break.py +288 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_case.py +1574 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_discovery.py +527 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_functiontestcase.py +148 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_loader.py +1312 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_program.py +396 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_result.py +660 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_runner.py +346 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_setups.py +506 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_skipping.py +227 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_suite.py +447 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/support.py +23 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testcallable.py +151 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testhelpers.py +908 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testmagicmethods.py +428 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testmock.py +1412 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testpatch.py +1801 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testsentinel.py +28 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testwith.py +259 -0
- package/python3.4.2/lib/python3.4/unittest/util.py +177 -0
- package/python3.4.2/lib/python3.4/urllib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/urllib/error.py +76 -0
- package/python3.4.2/lib/python3.4/urllib/parse.py +973 -0
- package/python3.4.2/lib/python3.4/urllib/request.py +2559 -0
- package/python3.4.2/lib/python3.4/urllib/response.py +76 -0
- package/python3.4.2/lib/python3.4/urllib/robotparser.py +212 -0
- package/python3.4.2/lib/python3.4/uu.py +199 -0
- package/python3.4.2/lib/python3.4/uuid.py +591 -0
- package/python3.4.2/lib/python3.4/venv/__init__.py +449 -0
- package/python3.4.2/lib/python3.4/venv/__main__.py +10 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate +76 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.csh +37 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.fish +74 -0
- package/python3.4.2/lib/python3.4/warnings.py +407 -0
- package/python3.4.2/lib/python3.4/wave.py +503 -0
- package/python3.4.2/lib/python3.4/weakref.py +577 -0
- package/python3.4.2/lib/python3.4/webbrowser.py +651 -0
- package/python3.4.2/lib/python3.4/wsgiref/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/wsgiref/handlers.py +547 -0
- package/python3.4.2/lib/python3.4/wsgiref/headers.py +184 -0
- package/python3.4.2/lib/python3.4/wsgiref/simple_server.py +165 -0
- package/python3.4.2/lib/python3.4/wsgiref/util.py +165 -0
- package/python3.4.2/lib/python3.4/wsgiref/validate.py +443 -0
- package/python3.4.2/lib/python3.4/xdrlib.py +224 -0
- package/python3.4.2/lib/python3.4/xml/__init__.py +20 -0
- package/python3.4.2/lib/python3.4/xml/dom/NodeFilter.py +27 -0
- package/python3.4.2/lib/python3.4/xml/dom/__init__.py +140 -0
- package/python3.4.2/lib/python3.4/xml/dom/domreg.py +97 -0
- package/python3.4.2/lib/python3.4/xml/dom/expatbuilder.py +965 -0
- package/python3.4.2/lib/python3.4/xml/dom/minicompat.py +109 -0
- package/python3.4.2/lib/python3.4/xml/dom/minidom.py +1983 -0
- package/python3.4.2/lib/python3.4/xml/dom/pulldom.py +342 -0
- package/python3.4.2/lib/python3.4/xml/dom/xmlbuilder.py +386 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementInclude.py +143 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementPath.py +308 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementTree.py +1667 -0
- package/python3.4.2/lib/python3.4/xml/etree/__init__.py +33 -0
- package/python3.4.2/lib/python3.4/xml/etree/cElementTree.py +3 -0
- package/python3.4.2/lib/python3.4/xml/parsers/__init__.py +8 -0
- package/python3.4.2/lib/python3.4/xml/parsers/expat.py +8 -0
- package/python3.4.2/lib/python3.4/xml/sax/__init__.py +105 -0
- package/python3.4.2/lib/python3.4/xml/sax/_exceptions.py +131 -0
- package/python3.4.2/lib/python3.4/xml/sax/expatreader.py +417 -0
- package/python3.4.2/lib/python3.4/xml/sax/handler.py +342 -0
- package/python3.4.2/lib/python3.4/xml/sax/saxutils.py +365 -0
- package/python3.4.2/lib/python3.4/xml/sax/xmlreader.py +378 -0
- package/python3.4.2/lib/python3.4/xmlrpc/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/xmlrpc/client.py +1479 -0
- package/python3.4.2/lib/python3.4/xmlrpc/server.py +986 -0
- package/python3.4.2/lib/python3.4/zipfile.py +1788 -0
- package/python3.4.2/share/man/man1/python3.1 +460 -0
- package/python3.4.2/share/man/man1/python3.4.1 +460 -0
|
@@ -0,0 +1,2080 @@
|
|
|
1
|
+
r"""HTTP cookie handling for web clients.
|
|
2
|
+
|
|
3
|
+
This module has (now fairly distant) origins in Gisle Aas' Perl module
|
|
4
|
+
HTTP::Cookies, from the libwww-perl library.
|
|
5
|
+
|
|
6
|
+
Docstrings, comments and debug strings in this code refer to the
|
|
7
|
+
attributes of the HTTP cookie system as cookie-attributes, to distinguish
|
|
8
|
+
them clearly from Python attributes.
|
|
9
|
+
|
|
10
|
+
Class diagram (note that BSDDBCookieJar and the MSIE* classes are not
|
|
11
|
+
distributed with the Python standard library, but are available from
|
|
12
|
+
http://wwwsearch.sf.net/):
|
|
13
|
+
|
|
14
|
+
CookieJar____
|
|
15
|
+
/ \ \
|
|
16
|
+
FileCookieJar \ \
|
|
17
|
+
/ | \ \ \
|
|
18
|
+
MozillaCookieJar | LWPCookieJar \ \
|
|
19
|
+
| | \
|
|
20
|
+
| ---MSIEBase | \
|
|
21
|
+
| / | | \
|
|
22
|
+
| / MSIEDBCookieJar BSDDBCookieJar
|
|
23
|
+
|/
|
|
24
|
+
MSIECookieJar
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
__all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy',
|
|
29
|
+
'FileCookieJar', 'LWPCookieJar', 'LoadError', 'MozillaCookieJar']
|
|
30
|
+
|
|
31
|
+
import copy
|
|
32
|
+
import datetime
|
|
33
|
+
import re
|
|
34
|
+
import time
|
|
35
|
+
import urllib.parse, urllib.request
|
|
36
|
+
try:
|
|
37
|
+
import threading as _threading
|
|
38
|
+
except ImportError:
|
|
39
|
+
import dummy_threading as _threading
|
|
40
|
+
import http.client # only for the default HTTP port
|
|
41
|
+
from calendar import timegm
|
|
42
|
+
|
|
43
|
+
debug = False # set to True to enable debugging via the logging module
|
|
44
|
+
logger = None
|
|
45
|
+
|
|
46
|
+
def _debug(*args):
|
|
47
|
+
if not debug:
|
|
48
|
+
return
|
|
49
|
+
global logger
|
|
50
|
+
if not logger:
|
|
51
|
+
import logging
|
|
52
|
+
logger = logging.getLogger("http.cookiejar")
|
|
53
|
+
return logger.debug(*args)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
DEFAULT_HTTP_PORT = str(http.client.HTTP_PORT)
|
|
57
|
+
MISSING_FILENAME_TEXT = ("a filename was not supplied (nor was the CookieJar "
|
|
58
|
+
"instance initialised with one)")
|
|
59
|
+
|
|
60
|
+
def _warn_unhandled_exception():
|
|
61
|
+
# There are a few catch-all except: statements in this module, for
|
|
62
|
+
# catching input that's bad in unexpected ways. Warn if any
|
|
63
|
+
# exceptions are caught there.
|
|
64
|
+
import io, warnings, traceback
|
|
65
|
+
f = io.StringIO()
|
|
66
|
+
traceback.print_exc(None, f)
|
|
67
|
+
msg = f.getvalue()
|
|
68
|
+
warnings.warn("http.cookiejar bug!\n%s" % msg, stacklevel=2)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Date/time conversion
|
|
72
|
+
# -----------------------------------------------------------------------------
|
|
73
|
+
|
|
74
|
+
EPOCH_YEAR = 1970
|
|
75
|
+
def _timegm(tt):
|
|
76
|
+
year, month, mday, hour, min, sec = tt[:6]
|
|
77
|
+
if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
|
|
78
|
+
(0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
|
|
79
|
+
return timegm(tt)
|
|
80
|
+
else:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
|
|
84
|
+
MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
|
85
|
+
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
86
|
+
MONTHS_LOWER = []
|
|
87
|
+
for month in MONTHS: MONTHS_LOWER.append(month.lower())
|
|
88
|
+
|
|
89
|
+
def time2isoz(t=None):
|
|
90
|
+
"""Return a string representing time in seconds since epoch, t.
|
|
91
|
+
|
|
92
|
+
If the function is called without an argument, it will use the current
|
|
93
|
+
time.
|
|
94
|
+
|
|
95
|
+
The format of the returned string is like "YYYY-MM-DD hh:mm:ssZ",
|
|
96
|
+
representing Universal Time (UTC, aka GMT). An example of this format is:
|
|
97
|
+
|
|
98
|
+
1994-11-24 08:49:37Z
|
|
99
|
+
|
|
100
|
+
"""
|
|
101
|
+
if t is None:
|
|
102
|
+
dt = datetime.datetime.utcnow()
|
|
103
|
+
else:
|
|
104
|
+
dt = datetime.datetime.utcfromtimestamp(t)
|
|
105
|
+
return "%04d-%02d-%02d %02d:%02d:%02dZ" % (
|
|
106
|
+
dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)
|
|
107
|
+
|
|
108
|
+
def time2netscape(t=None):
|
|
109
|
+
"""Return a string representing time in seconds since epoch, t.
|
|
110
|
+
|
|
111
|
+
If the function is called without an argument, it will use the current
|
|
112
|
+
time.
|
|
113
|
+
|
|
114
|
+
The format of the returned string is like this:
|
|
115
|
+
|
|
116
|
+
Wed, DD-Mon-YYYY HH:MM:SS GMT
|
|
117
|
+
|
|
118
|
+
"""
|
|
119
|
+
if t is None:
|
|
120
|
+
dt = datetime.datetime.utcnow()
|
|
121
|
+
else:
|
|
122
|
+
dt = datetime.datetime.utcfromtimestamp(t)
|
|
123
|
+
return "%s %02d-%s-%04d %02d:%02d:%02d GMT" % (
|
|
124
|
+
DAYS[dt.weekday()], dt.day, MONTHS[dt.month-1],
|
|
125
|
+
dt.year, dt.hour, dt.minute, dt.second)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
UTC_ZONES = {"GMT": None, "UTC": None, "UT": None, "Z": None}
|
|
129
|
+
|
|
130
|
+
TIMEZONE_RE = re.compile(r"^([-+])?(\d\d?):?(\d\d)?$", re.ASCII)
|
|
131
|
+
def offset_from_tz_string(tz):
|
|
132
|
+
offset = None
|
|
133
|
+
if tz in UTC_ZONES:
|
|
134
|
+
offset = 0
|
|
135
|
+
else:
|
|
136
|
+
m = TIMEZONE_RE.search(tz)
|
|
137
|
+
if m:
|
|
138
|
+
offset = 3600 * int(m.group(2))
|
|
139
|
+
if m.group(3):
|
|
140
|
+
offset = offset + 60 * int(m.group(3))
|
|
141
|
+
if m.group(1) == '-':
|
|
142
|
+
offset = -offset
|
|
143
|
+
return offset
|
|
144
|
+
|
|
145
|
+
def _str2time(day, mon, yr, hr, min, sec, tz):
|
|
146
|
+
# translate month name to number
|
|
147
|
+
# month numbers start with 1 (January)
|
|
148
|
+
try:
|
|
149
|
+
mon = MONTHS_LOWER.index(mon.lower())+1
|
|
150
|
+
except ValueError:
|
|
151
|
+
# maybe it's already a number
|
|
152
|
+
try:
|
|
153
|
+
imon = int(mon)
|
|
154
|
+
except ValueError:
|
|
155
|
+
return None
|
|
156
|
+
if 1 <= imon <= 12:
|
|
157
|
+
mon = imon
|
|
158
|
+
else:
|
|
159
|
+
return None
|
|
160
|
+
|
|
161
|
+
# make sure clock elements are defined
|
|
162
|
+
if hr is None: hr = 0
|
|
163
|
+
if min is None: min = 0
|
|
164
|
+
if sec is None: sec = 0
|
|
165
|
+
|
|
166
|
+
yr = int(yr)
|
|
167
|
+
day = int(day)
|
|
168
|
+
hr = int(hr)
|
|
169
|
+
min = int(min)
|
|
170
|
+
sec = int(sec)
|
|
171
|
+
|
|
172
|
+
if yr < 1000:
|
|
173
|
+
# find "obvious" year
|
|
174
|
+
cur_yr = time.localtime(time.time())[0]
|
|
175
|
+
m = cur_yr % 100
|
|
176
|
+
tmp = yr
|
|
177
|
+
yr = yr + cur_yr - m
|
|
178
|
+
m = m - tmp
|
|
179
|
+
if abs(m) > 50:
|
|
180
|
+
if m > 0: yr = yr + 100
|
|
181
|
+
else: yr = yr - 100
|
|
182
|
+
|
|
183
|
+
# convert UTC time tuple to seconds since epoch (not timezone-adjusted)
|
|
184
|
+
t = _timegm((yr, mon, day, hr, min, sec, tz))
|
|
185
|
+
|
|
186
|
+
if t is not None:
|
|
187
|
+
# adjust time using timezone string, to get absolute time since epoch
|
|
188
|
+
if tz is None:
|
|
189
|
+
tz = "UTC"
|
|
190
|
+
tz = tz.upper()
|
|
191
|
+
offset = offset_from_tz_string(tz)
|
|
192
|
+
if offset is None:
|
|
193
|
+
return None
|
|
194
|
+
t = t - offset
|
|
195
|
+
|
|
196
|
+
return t
|
|
197
|
+
|
|
198
|
+
STRICT_DATE_RE = re.compile(
|
|
199
|
+
r"^[SMTWF][a-z][a-z], (\d\d) ([JFMASOND][a-z][a-z]) "
|
|
200
|
+
"(\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$", re.ASCII)
|
|
201
|
+
WEEKDAY_RE = re.compile(
|
|
202
|
+
r"^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*", re.I | re.ASCII)
|
|
203
|
+
LOOSE_HTTP_DATE_RE = re.compile(
|
|
204
|
+
r"""^
|
|
205
|
+
(\d\d?) # day
|
|
206
|
+
(?:\s+|[-\/])
|
|
207
|
+
(\w+) # month
|
|
208
|
+
(?:\s+|[-\/])
|
|
209
|
+
(\d+) # year
|
|
210
|
+
(?:
|
|
211
|
+
(?:\s+|:) # separator before clock
|
|
212
|
+
(\d\d?):(\d\d) # hour:min
|
|
213
|
+
(?::(\d\d))? # optional seconds
|
|
214
|
+
)? # optional clock
|
|
215
|
+
\s*
|
|
216
|
+
([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
|
|
217
|
+
\s*
|
|
218
|
+
(?:\(\w+\))? # ASCII representation of timezone in parens.
|
|
219
|
+
\s*$""", re.X | re.ASCII)
|
|
220
|
+
def http2time(text):
|
|
221
|
+
"""Returns time in seconds since epoch of time represented by a string.
|
|
222
|
+
|
|
223
|
+
Return value is an integer.
|
|
224
|
+
|
|
225
|
+
None is returned if the format of str is unrecognized, the time is outside
|
|
226
|
+
the representable range, or the timezone string is not recognized. If the
|
|
227
|
+
string contains no timezone, UTC is assumed.
|
|
228
|
+
|
|
229
|
+
The timezone in the string may be numerical (like "-0800" or "+0100") or a
|
|
230
|
+
string timezone (like "UTC", "GMT", "BST" or "EST"). Currently, only the
|
|
231
|
+
timezone strings equivalent to UTC (zero offset) are known to the function.
|
|
232
|
+
|
|
233
|
+
The function loosely parses the following formats:
|
|
234
|
+
|
|
235
|
+
Wed, 09 Feb 1994 22:23:32 GMT -- HTTP format
|
|
236
|
+
Tuesday, 08-Feb-94 14:15:29 GMT -- old rfc850 HTTP format
|
|
237
|
+
Tuesday, 08-Feb-1994 14:15:29 GMT -- broken rfc850 HTTP format
|
|
238
|
+
09 Feb 1994 22:23:32 GMT -- HTTP format (no weekday)
|
|
239
|
+
08-Feb-94 14:15:29 GMT -- rfc850 format (no weekday)
|
|
240
|
+
08-Feb-1994 14:15:29 GMT -- broken rfc850 format (no weekday)
|
|
241
|
+
|
|
242
|
+
The parser ignores leading and trailing whitespace. The time may be
|
|
243
|
+
absent.
|
|
244
|
+
|
|
245
|
+
If the year is given with only 2 digits, the function will select the
|
|
246
|
+
century that makes the year closest to the current date.
|
|
247
|
+
|
|
248
|
+
"""
|
|
249
|
+
# fast exit for strictly conforming string
|
|
250
|
+
m = STRICT_DATE_RE.search(text)
|
|
251
|
+
if m:
|
|
252
|
+
g = m.groups()
|
|
253
|
+
mon = MONTHS_LOWER.index(g[1].lower()) + 1
|
|
254
|
+
tt = (int(g[2]), mon, int(g[0]),
|
|
255
|
+
int(g[3]), int(g[4]), float(g[5]))
|
|
256
|
+
return _timegm(tt)
|
|
257
|
+
|
|
258
|
+
# No, we need some messy parsing...
|
|
259
|
+
|
|
260
|
+
# clean up
|
|
261
|
+
text = text.lstrip()
|
|
262
|
+
text = WEEKDAY_RE.sub("", text, 1) # Useless weekday
|
|
263
|
+
|
|
264
|
+
# tz is time zone specifier string
|
|
265
|
+
day, mon, yr, hr, min, sec, tz = [None]*7
|
|
266
|
+
|
|
267
|
+
# loose regexp parse
|
|
268
|
+
m = LOOSE_HTTP_DATE_RE.search(text)
|
|
269
|
+
if m is not None:
|
|
270
|
+
day, mon, yr, hr, min, sec, tz = m.groups()
|
|
271
|
+
else:
|
|
272
|
+
return None # bad format
|
|
273
|
+
|
|
274
|
+
return _str2time(day, mon, yr, hr, min, sec, tz)
|
|
275
|
+
|
|
276
|
+
ISO_DATE_RE = re.compile(
|
|
277
|
+
"""^
|
|
278
|
+
(\d{4}) # year
|
|
279
|
+
[-\/]?
|
|
280
|
+
(\d\d?) # numerical month
|
|
281
|
+
[-\/]?
|
|
282
|
+
(\d\d?) # day
|
|
283
|
+
(?:
|
|
284
|
+
(?:\s+|[-:Tt]) # separator before clock
|
|
285
|
+
(\d\d?):?(\d\d) # hour:min
|
|
286
|
+
(?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
|
|
287
|
+
)? # optional clock
|
|
288
|
+
\s*
|
|
289
|
+
([-+]?\d\d?:?(:?\d\d)?
|
|
290
|
+
|Z|z)? # timezone (Z is "zero meridian", i.e. GMT)
|
|
291
|
+
\s*$""", re.X | re. ASCII)
|
|
292
|
+
def iso2time(text):
|
|
293
|
+
"""
|
|
294
|
+
As for http2time, but parses the ISO 8601 formats:
|
|
295
|
+
|
|
296
|
+
1994-02-03 14:15:29 -0100 -- ISO 8601 format
|
|
297
|
+
1994-02-03 14:15:29 -- zone is optional
|
|
298
|
+
1994-02-03 -- only date
|
|
299
|
+
1994-02-03T14:15:29 -- Use T as separator
|
|
300
|
+
19940203T141529Z -- ISO 8601 compact format
|
|
301
|
+
19940203 -- only date
|
|
302
|
+
|
|
303
|
+
"""
|
|
304
|
+
# clean up
|
|
305
|
+
text = text.lstrip()
|
|
306
|
+
|
|
307
|
+
# tz is time zone specifier string
|
|
308
|
+
day, mon, yr, hr, min, sec, tz = [None]*7
|
|
309
|
+
|
|
310
|
+
# loose regexp parse
|
|
311
|
+
m = ISO_DATE_RE.search(text)
|
|
312
|
+
if m is not None:
|
|
313
|
+
# XXX there's an extra bit of the timezone I'm ignoring here: is
|
|
314
|
+
# this the right thing to do?
|
|
315
|
+
yr, mon, day, hr, min, sec, tz, _ = m.groups()
|
|
316
|
+
else:
|
|
317
|
+
return None # bad format
|
|
318
|
+
|
|
319
|
+
return _str2time(day, mon, yr, hr, min, sec, tz)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
# Header parsing
|
|
323
|
+
# -----------------------------------------------------------------------------
|
|
324
|
+
|
|
325
|
+
def unmatched(match):
|
|
326
|
+
"""Return unmatched part of re.Match object."""
|
|
327
|
+
start, end = match.span(0)
|
|
328
|
+
return match.string[:start]+match.string[end:]
|
|
329
|
+
|
|
330
|
+
HEADER_TOKEN_RE = re.compile(r"^\s*([^=\s;,]+)")
|
|
331
|
+
HEADER_QUOTED_VALUE_RE = re.compile(r"^\s*=\s*\"([^\"\\]*(?:\\.[^\"\\]*)*)\"")
|
|
332
|
+
HEADER_VALUE_RE = re.compile(r"^\s*=\s*([^\s;,]*)")
|
|
333
|
+
HEADER_ESCAPE_RE = re.compile(r"\\(.)")
|
|
334
|
+
def split_header_words(header_values):
|
|
335
|
+
r"""Parse header values into a list of lists containing key,value pairs.
|
|
336
|
+
|
|
337
|
+
The function knows how to deal with ",", ";" and "=" as well as quoted
|
|
338
|
+
values after "=". A list of space separated tokens are parsed as if they
|
|
339
|
+
were separated by ";".
|
|
340
|
+
|
|
341
|
+
If the header_values passed as argument contains multiple values, then they
|
|
342
|
+
are treated as if they were a single value separated by comma ",".
|
|
343
|
+
|
|
344
|
+
This means that this function is useful for parsing header fields that
|
|
345
|
+
follow this syntax (BNF as from the HTTP/1.1 specification, but we relax
|
|
346
|
+
the requirement for tokens).
|
|
347
|
+
|
|
348
|
+
headers = #header
|
|
349
|
+
header = (token | parameter) *( [";"] (token | parameter))
|
|
350
|
+
|
|
351
|
+
token = 1*<any CHAR except CTLs or separators>
|
|
352
|
+
separators = "(" | ")" | "<" | ">" | "@"
|
|
353
|
+
| "," | ";" | ":" | "\" | <">
|
|
354
|
+
| "/" | "[" | "]" | "?" | "="
|
|
355
|
+
| "{" | "}" | SP | HT
|
|
356
|
+
|
|
357
|
+
quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
|
|
358
|
+
qdtext = <any TEXT except <">>
|
|
359
|
+
quoted-pair = "\" CHAR
|
|
360
|
+
|
|
361
|
+
parameter = attribute "=" value
|
|
362
|
+
attribute = token
|
|
363
|
+
value = token | quoted-string
|
|
364
|
+
|
|
365
|
+
Each header is represented by a list of key/value pairs. The value for a
|
|
366
|
+
simple token (not part of a parameter) is None. Syntactically incorrect
|
|
367
|
+
headers will not necessarily be parsed as you would want.
|
|
368
|
+
|
|
369
|
+
This is easier to describe with some examples:
|
|
370
|
+
|
|
371
|
+
>>> split_header_words(['foo="bar"; port="80,81"; discard, bar=baz'])
|
|
372
|
+
[[('foo', 'bar'), ('port', '80,81'), ('discard', None)], [('bar', 'baz')]]
|
|
373
|
+
>>> split_header_words(['text/html; charset="iso-8859-1"'])
|
|
374
|
+
[[('text/html', None), ('charset', 'iso-8859-1')]]
|
|
375
|
+
>>> split_header_words([r'Basic realm="\"foo\bar\""'])
|
|
376
|
+
[[('Basic', None), ('realm', '"foobar"')]]
|
|
377
|
+
|
|
378
|
+
"""
|
|
379
|
+
assert not isinstance(header_values, str)
|
|
380
|
+
result = []
|
|
381
|
+
for text in header_values:
|
|
382
|
+
orig_text = text
|
|
383
|
+
pairs = []
|
|
384
|
+
while text:
|
|
385
|
+
m = HEADER_TOKEN_RE.search(text)
|
|
386
|
+
if m:
|
|
387
|
+
text = unmatched(m)
|
|
388
|
+
name = m.group(1)
|
|
389
|
+
m = HEADER_QUOTED_VALUE_RE.search(text)
|
|
390
|
+
if m: # quoted value
|
|
391
|
+
text = unmatched(m)
|
|
392
|
+
value = m.group(1)
|
|
393
|
+
value = HEADER_ESCAPE_RE.sub(r"\1", value)
|
|
394
|
+
else:
|
|
395
|
+
m = HEADER_VALUE_RE.search(text)
|
|
396
|
+
if m: # unquoted value
|
|
397
|
+
text = unmatched(m)
|
|
398
|
+
value = m.group(1)
|
|
399
|
+
value = value.rstrip()
|
|
400
|
+
else:
|
|
401
|
+
# no value, a lone token
|
|
402
|
+
value = None
|
|
403
|
+
pairs.append((name, value))
|
|
404
|
+
elif text.lstrip().startswith(","):
|
|
405
|
+
# concatenated headers, as per RFC 2616 section 4.2
|
|
406
|
+
text = text.lstrip()[1:]
|
|
407
|
+
if pairs: result.append(pairs)
|
|
408
|
+
pairs = []
|
|
409
|
+
else:
|
|
410
|
+
# skip junk
|
|
411
|
+
non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)
|
|
412
|
+
assert nr_junk_chars > 0, (
|
|
413
|
+
"split_header_words bug: '%s', '%s', %s" %
|
|
414
|
+
(orig_text, text, pairs))
|
|
415
|
+
text = non_junk
|
|
416
|
+
if pairs: result.append(pairs)
|
|
417
|
+
return result
|
|
418
|
+
|
|
419
|
+
HEADER_JOIN_ESCAPE_RE = re.compile(r"([\"\\])")
|
|
420
|
+
def join_header_words(lists):
|
|
421
|
+
"""Do the inverse (almost) of the conversion done by split_header_words.
|
|
422
|
+
|
|
423
|
+
Takes a list of lists of (key, value) pairs and produces a single header
|
|
424
|
+
value. Attribute values are quoted if needed.
|
|
425
|
+
|
|
426
|
+
>>> join_header_words([[("text/plain", None), ("charset", "iso-8859/1")]])
|
|
427
|
+
'text/plain; charset="iso-8859/1"'
|
|
428
|
+
>>> join_header_words([[("text/plain", None)], [("charset", "iso-8859/1")]])
|
|
429
|
+
'text/plain, charset="iso-8859/1"'
|
|
430
|
+
|
|
431
|
+
"""
|
|
432
|
+
headers = []
|
|
433
|
+
for pairs in lists:
|
|
434
|
+
attr = []
|
|
435
|
+
for k, v in pairs:
|
|
436
|
+
if v is not None:
|
|
437
|
+
if not re.search(r"^\w+$", v):
|
|
438
|
+
v = HEADER_JOIN_ESCAPE_RE.sub(r"\\\1", v) # escape " and \
|
|
439
|
+
v = '"%s"' % v
|
|
440
|
+
k = "%s=%s" % (k, v)
|
|
441
|
+
attr.append(k)
|
|
442
|
+
if attr: headers.append("; ".join(attr))
|
|
443
|
+
return ", ".join(headers)
|
|
444
|
+
|
|
445
|
+
def strip_quotes(text):
|
|
446
|
+
if text.startswith('"'):
|
|
447
|
+
text = text[1:]
|
|
448
|
+
if text.endswith('"'):
|
|
449
|
+
text = text[:-1]
|
|
450
|
+
return text
|
|
451
|
+
|
|
452
|
+
def parse_ns_headers(ns_headers):
|
|
453
|
+
"""Ad-hoc parser for Netscape protocol cookie-attributes.
|
|
454
|
+
|
|
455
|
+
The old Netscape cookie format for Set-Cookie can for instance contain
|
|
456
|
+
an unquoted "," in the expires field, so we have to use this ad-hoc
|
|
457
|
+
parser instead of split_header_words.
|
|
458
|
+
|
|
459
|
+
XXX This may not make the best possible effort to parse all the crap
|
|
460
|
+
that Netscape Cookie headers contain. Ronald Tschalar's HTTPClient
|
|
461
|
+
parser is probably better, so could do worse than following that if
|
|
462
|
+
this ever gives any trouble.
|
|
463
|
+
|
|
464
|
+
Currently, this is also used for parsing RFC 2109 cookies.
|
|
465
|
+
|
|
466
|
+
"""
|
|
467
|
+
known_attrs = ("expires", "domain", "path", "secure",
|
|
468
|
+
# RFC 2109 attrs (may turn up in Netscape cookies, too)
|
|
469
|
+
"version", "port", "max-age")
|
|
470
|
+
|
|
471
|
+
result = []
|
|
472
|
+
for ns_header in ns_headers:
|
|
473
|
+
pairs = []
|
|
474
|
+
version_set = False
|
|
475
|
+
for ii, param in enumerate(re.split(r";\s*", ns_header)):
|
|
476
|
+
param = param.rstrip()
|
|
477
|
+
if param == "": continue
|
|
478
|
+
if "=" not in param:
|
|
479
|
+
k, v = param, None
|
|
480
|
+
else:
|
|
481
|
+
k, v = re.split(r"\s*=\s*", param, 1)
|
|
482
|
+
k = k.lstrip()
|
|
483
|
+
if ii != 0:
|
|
484
|
+
lc = k.lower()
|
|
485
|
+
if lc in known_attrs:
|
|
486
|
+
k = lc
|
|
487
|
+
if k == "version":
|
|
488
|
+
# This is an RFC 2109 cookie.
|
|
489
|
+
v = strip_quotes(v)
|
|
490
|
+
version_set = True
|
|
491
|
+
if k == "expires":
|
|
492
|
+
# convert expires date to seconds since epoch
|
|
493
|
+
v = http2time(strip_quotes(v)) # None if invalid
|
|
494
|
+
pairs.append((k, v))
|
|
495
|
+
|
|
496
|
+
if pairs:
|
|
497
|
+
if not version_set:
|
|
498
|
+
pairs.append(("version", "0"))
|
|
499
|
+
result.append(pairs)
|
|
500
|
+
|
|
501
|
+
return result
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
IPV4_RE = re.compile(r"\.\d+$", re.ASCII)
|
|
505
|
+
def is_HDN(text):
|
|
506
|
+
"""Return True if text is a host domain name."""
|
|
507
|
+
# XXX
|
|
508
|
+
# This may well be wrong. Which RFC is HDN defined in, if any (for
|
|
509
|
+
# the purposes of RFC 2965)?
|
|
510
|
+
# For the current implementation, what about IPv6? Remember to look
|
|
511
|
+
# at other uses of IPV4_RE also, if change this.
|
|
512
|
+
if IPV4_RE.search(text):
|
|
513
|
+
return False
|
|
514
|
+
if text == "":
|
|
515
|
+
return False
|
|
516
|
+
if text[0] == "." or text[-1] == ".":
|
|
517
|
+
return False
|
|
518
|
+
return True
|
|
519
|
+
|
|
520
|
+
def domain_match(A, B):
|
|
521
|
+
"""Return True if domain A domain-matches domain B, according to RFC 2965.
|
|
522
|
+
|
|
523
|
+
A and B may be host domain names or IP addresses.
|
|
524
|
+
|
|
525
|
+
RFC 2965, section 1:
|
|
526
|
+
|
|
527
|
+
Host names can be specified either as an IP address or a HDN string.
|
|
528
|
+
Sometimes we compare one host name with another. (Such comparisons SHALL
|
|
529
|
+
be case-insensitive.) Host A's name domain-matches host B's if
|
|
530
|
+
|
|
531
|
+
* their host name strings string-compare equal; or
|
|
532
|
+
|
|
533
|
+
* A is a HDN string and has the form NB, where N is a non-empty
|
|
534
|
+
name string, B has the form .B', and B' is a HDN string. (So,
|
|
535
|
+
x.y.com domain-matches .Y.com but not Y.com.)
|
|
536
|
+
|
|
537
|
+
Note that domain-match is not a commutative operation: a.b.c.com
|
|
538
|
+
domain-matches .c.com, but not the reverse.
|
|
539
|
+
|
|
540
|
+
"""
|
|
541
|
+
# Note that, if A or B are IP addresses, the only relevant part of the
|
|
542
|
+
# definition of the domain-match algorithm is the direct string-compare.
|
|
543
|
+
A = A.lower()
|
|
544
|
+
B = B.lower()
|
|
545
|
+
if A == B:
|
|
546
|
+
return True
|
|
547
|
+
if not is_HDN(A):
|
|
548
|
+
return False
|
|
549
|
+
i = A.rfind(B)
|
|
550
|
+
if i == -1 or i == 0:
|
|
551
|
+
# A does not have form NB, or N is the empty string
|
|
552
|
+
return False
|
|
553
|
+
if not B.startswith("."):
|
|
554
|
+
return False
|
|
555
|
+
if not is_HDN(B[1:]):
|
|
556
|
+
return False
|
|
557
|
+
return True
|
|
558
|
+
|
|
559
|
+
def liberal_is_HDN(text):
|
|
560
|
+
"""Return True if text is a sort-of-like a host domain name.
|
|
561
|
+
|
|
562
|
+
For accepting/blocking domains.
|
|
563
|
+
|
|
564
|
+
"""
|
|
565
|
+
if IPV4_RE.search(text):
|
|
566
|
+
return False
|
|
567
|
+
return True
|
|
568
|
+
|
|
569
|
+
def user_domain_match(A, B):
|
|
570
|
+
"""For blocking/accepting domains.
|
|
571
|
+
|
|
572
|
+
A and B may be host domain names or IP addresses.
|
|
573
|
+
|
|
574
|
+
"""
|
|
575
|
+
A = A.lower()
|
|
576
|
+
B = B.lower()
|
|
577
|
+
if not (liberal_is_HDN(A) and liberal_is_HDN(B)):
|
|
578
|
+
if A == B:
|
|
579
|
+
# equal IP addresses
|
|
580
|
+
return True
|
|
581
|
+
return False
|
|
582
|
+
initial_dot = B.startswith(".")
|
|
583
|
+
if initial_dot and A.endswith(B):
|
|
584
|
+
return True
|
|
585
|
+
if not initial_dot and A == B:
|
|
586
|
+
return True
|
|
587
|
+
return False
|
|
588
|
+
|
|
589
|
+
cut_port_re = re.compile(r":\d+$", re.ASCII)
|
|
590
|
+
def request_host(request):
|
|
591
|
+
"""Return request-host, as defined by RFC 2965.
|
|
592
|
+
|
|
593
|
+
Variation from RFC: returned value is lowercased, for convenient
|
|
594
|
+
comparison.
|
|
595
|
+
|
|
596
|
+
"""
|
|
597
|
+
url = request.get_full_url()
|
|
598
|
+
host = urllib.parse.urlparse(url)[1]
|
|
599
|
+
if host == "":
|
|
600
|
+
host = request.get_header("Host", "")
|
|
601
|
+
|
|
602
|
+
# remove port, if present
|
|
603
|
+
host = cut_port_re.sub("", host, 1)
|
|
604
|
+
return host.lower()
|
|
605
|
+
|
|
606
|
+
def eff_request_host(request):
|
|
607
|
+
"""Return a tuple (request-host, effective request-host name).
|
|
608
|
+
|
|
609
|
+
As defined by RFC 2965, except both are lowercased.
|
|
610
|
+
|
|
611
|
+
"""
|
|
612
|
+
erhn = req_host = request_host(request)
|
|
613
|
+
if req_host.find(".") == -1 and not IPV4_RE.search(req_host):
|
|
614
|
+
erhn = req_host + ".local"
|
|
615
|
+
return req_host, erhn
|
|
616
|
+
|
|
617
|
+
def request_path(request):
|
|
618
|
+
"""Path component of request-URI, as defined by RFC 2965."""
|
|
619
|
+
url = request.get_full_url()
|
|
620
|
+
parts = urllib.parse.urlsplit(url)
|
|
621
|
+
path = escape_path(parts.path)
|
|
622
|
+
if not path.startswith("/"):
|
|
623
|
+
# fix bad RFC 2396 absoluteURI
|
|
624
|
+
path = "/" + path
|
|
625
|
+
return path
|
|
626
|
+
|
|
627
|
+
def request_port(request):
|
|
628
|
+
host = request.host
|
|
629
|
+
i = host.find(':')
|
|
630
|
+
if i >= 0:
|
|
631
|
+
port = host[i+1:]
|
|
632
|
+
try:
|
|
633
|
+
int(port)
|
|
634
|
+
except ValueError:
|
|
635
|
+
_debug("nonnumeric port: '%s'", port)
|
|
636
|
+
return None
|
|
637
|
+
else:
|
|
638
|
+
port = DEFAULT_HTTP_PORT
|
|
639
|
+
return port
|
|
640
|
+
|
|
641
|
+
# Characters in addition to A-Z, a-z, 0-9, '_', '.', and '-' that don't
|
|
642
|
+
# need to be escaped to form a valid HTTP URL (RFCs 2396 and 1738).
|
|
643
|
+
HTTP_PATH_SAFE = "%/;:@&=+$,!~*'()"
|
|
644
|
+
ESCAPED_CHAR_RE = re.compile(r"%([0-9a-fA-F][0-9a-fA-F])")
|
|
645
|
+
def uppercase_escaped_char(match):
|
|
646
|
+
return "%%%s" % match.group(1).upper()
|
|
647
|
+
def escape_path(path):
|
|
648
|
+
"""Escape any invalid characters in HTTP URL, and uppercase all escapes."""
|
|
649
|
+
# There's no knowing what character encoding was used to create URLs
|
|
650
|
+
# containing %-escapes, but since we have to pick one to escape invalid
|
|
651
|
+
# path characters, we pick UTF-8, as recommended in the HTML 4.0
|
|
652
|
+
# specification:
|
|
653
|
+
# http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.1
|
|
654
|
+
# And here, kind of: draft-fielding-uri-rfc2396bis-03
|
|
655
|
+
# (And in draft IRI specification: draft-duerst-iri-05)
|
|
656
|
+
# (And here, for new URI schemes: RFC 2718)
|
|
657
|
+
path = urllib.parse.quote(path, HTTP_PATH_SAFE)
|
|
658
|
+
path = ESCAPED_CHAR_RE.sub(uppercase_escaped_char, path)
|
|
659
|
+
return path
|
|
660
|
+
|
|
661
|
+
def reach(h):
|
|
662
|
+
"""Return reach of host h, as defined by RFC 2965, section 1.
|
|
663
|
+
|
|
664
|
+
The reach R of a host name H is defined as follows:
|
|
665
|
+
|
|
666
|
+
* If
|
|
667
|
+
|
|
668
|
+
- H is the host domain name of a host; and,
|
|
669
|
+
|
|
670
|
+
- H has the form A.B; and
|
|
671
|
+
|
|
672
|
+
- A has no embedded (that is, interior) dots; and
|
|
673
|
+
|
|
674
|
+
- B has at least one embedded dot, or B is the string "local".
|
|
675
|
+
then the reach of H is .B.
|
|
676
|
+
|
|
677
|
+
* Otherwise, the reach of H is H.
|
|
678
|
+
|
|
679
|
+
>>> reach("www.acme.com")
|
|
680
|
+
'.acme.com'
|
|
681
|
+
>>> reach("acme.com")
|
|
682
|
+
'acme.com'
|
|
683
|
+
>>> reach("acme.local")
|
|
684
|
+
'.local'
|
|
685
|
+
|
|
686
|
+
"""
|
|
687
|
+
i = h.find(".")
|
|
688
|
+
if i >= 0:
|
|
689
|
+
#a = h[:i] # this line is only here to show what a is
|
|
690
|
+
b = h[i+1:]
|
|
691
|
+
i = b.find(".")
|
|
692
|
+
if is_HDN(h) and (i >= 0 or b == "local"):
|
|
693
|
+
return "."+b
|
|
694
|
+
return h
|
|
695
|
+
|
|
696
|
+
def is_third_party(request):
|
|
697
|
+
"""
|
|
698
|
+
|
|
699
|
+
RFC 2965, section 3.3.6:
|
|
700
|
+
|
|
701
|
+
An unverifiable transaction is to a third-party host if its request-
|
|
702
|
+
host U does not domain-match the reach R of the request-host O in the
|
|
703
|
+
origin transaction.
|
|
704
|
+
|
|
705
|
+
"""
|
|
706
|
+
req_host = request_host(request)
|
|
707
|
+
if not domain_match(req_host, reach(request.origin_req_host)):
|
|
708
|
+
return True
|
|
709
|
+
else:
|
|
710
|
+
return False
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
class Cookie:
|
|
714
|
+
"""HTTP Cookie.
|
|
715
|
+
|
|
716
|
+
This class represents both Netscape and RFC 2965 cookies.
|
|
717
|
+
|
|
718
|
+
This is deliberately a very simple class. It just holds attributes. It's
|
|
719
|
+
possible to construct Cookie instances that don't comply with the cookie
|
|
720
|
+
standards. CookieJar.make_cookies is the factory function for Cookie
|
|
721
|
+
objects -- it deals with cookie parsing, supplying defaults, and
|
|
722
|
+
normalising to the representation used in this class. CookiePolicy is
|
|
723
|
+
responsible for checking them to see whether they should be accepted from
|
|
724
|
+
and returned to the server.
|
|
725
|
+
|
|
726
|
+
Note that the port may be present in the headers, but unspecified ("Port"
|
|
727
|
+
rather than"Port=80", for example); if this is the case, port is None.
|
|
728
|
+
|
|
729
|
+
"""
|
|
730
|
+
|
|
731
|
+
def __init__(self, version, name, value,
|
|
732
|
+
port, port_specified,
|
|
733
|
+
domain, domain_specified, domain_initial_dot,
|
|
734
|
+
path, path_specified,
|
|
735
|
+
secure,
|
|
736
|
+
expires,
|
|
737
|
+
discard,
|
|
738
|
+
comment,
|
|
739
|
+
comment_url,
|
|
740
|
+
rest,
|
|
741
|
+
rfc2109=False,
|
|
742
|
+
):
|
|
743
|
+
|
|
744
|
+
if version is not None: version = int(version)
|
|
745
|
+
if expires is not None: expires = int(expires)
|
|
746
|
+
if port is None and port_specified is True:
|
|
747
|
+
raise ValueError("if port is None, port_specified must be false")
|
|
748
|
+
|
|
749
|
+
self.version = version
|
|
750
|
+
self.name = name
|
|
751
|
+
self.value = value
|
|
752
|
+
self.port = port
|
|
753
|
+
self.port_specified = port_specified
|
|
754
|
+
# normalise case, as per RFC 2965 section 3.3.3
|
|
755
|
+
self.domain = domain.lower()
|
|
756
|
+
self.domain_specified = domain_specified
|
|
757
|
+
# Sigh. We need to know whether the domain given in the
|
|
758
|
+
# cookie-attribute had an initial dot, in order to follow RFC 2965
|
|
759
|
+
# (as clarified in draft errata). Needed for the returned $Domain
|
|
760
|
+
# value.
|
|
761
|
+
self.domain_initial_dot = domain_initial_dot
|
|
762
|
+
self.path = path
|
|
763
|
+
self.path_specified = path_specified
|
|
764
|
+
self.secure = secure
|
|
765
|
+
self.expires = expires
|
|
766
|
+
self.discard = discard
|
|
767
|
+
self.comment = comment
|
|
768
|
+
self.comment_url = comment_url
|
|
769
|
+
self.rfc2109 = rfc2109
|
|
770
|
+
|
|
771
|
+
self._rest = copy.copy(rest)
|
|
772
|
+
|
|
773
|
+
def has_nonstandard_attr(self, name):
|
|
774
|
+
return name in self._rest
|
|
775
|
+
def get_nonstandard_attr(self, name, default=None):
|
|
776
|
+
return self._rest.get(name, default)
|
|
777
|
+
def set_nonstandard_attr(self, name, value):
|
|
778
|
+
self._rest[name] = value
|
|
779
|
+
|
|
780
|
+
def is_expired(self, now=None):
|
|
781
|
+
if now is None: now = time.time()
|
|
782
|
+
if (self.expires is not None) and (self.expires <= now):
|
|
783
|
+
return True
|
|
784
|
+
return False
|
|
785
|
+
|
|
786
|
+
def __str__(self):
|
|
787
|
+
if self.port is None: p = ""
|
|
788
|
+
else: p = ":"+self.port
|
|
789
|
+
limit = self.domain + p + self.path
|
|
790
|
+
if self.value is not None:
|
|
791
|
+
namevalue = "%s=%s" % (self.name, self.value)
|
|
792
|
+
else:
|
|
793
|
+
namevalue = self.name
|
|
794
|
+
return "<Cookie %s for %s>" % (namevalue, limit)
|
|
795
|
+
|
|
796
|
+
def __repr__(self):
|
|
797
|
+
args = []
|
|
798
|
+
for name in ("version", "name", "value",
|
|
799
|
+
"port", "port_specified",
|
|
800
|
+
"domain", "domain_specified", "domain_initial_dot",
|
|
801
|
+
"path", "path_specified",
|
|
802
|
+
"secure", "expires", "discard", "comment", "comment_url",
|
|
803
|
+
):
|
|
804
|
+
attr = getattr(self, name)
|
|
805
|
+
args.append("%s=%s" % (name, repr(attr)))
|
|
806
|
+
args.append("rest=%s" % repr(self._rest))
|
|
807
|
+
args.append("rfc2109=%s" % repr(self.rfc2109))
|
|
808
|
+
return "Cookie(%s)" % ", ".join(args)
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
class CookiePolicy:
|
|
812
|
+
"""Defines which cookies get accepted from and returned to server.
|
|
813
|
+
|
|
814
|
+
May also modify cookies, though this is probably a bad idea.
|
|
815
|
+
|
|
816
|
+
The subclass DefaultCookiePolicy defines the standard rules for Netscape
|
|
817
|
+
and RFC 2965 cookies -- override that if you want a customised policy.
|
|
818
|
+
|
|
819
|
+
"""
|
|
820
|
+
def set_ok(self, cookie, request):
|
|
821
|
+
"""Return true if (and only if) cookie should be accepted from server.
|
|
822
|
+
|
|
823
|
+
Currently, pre-expired cookies never get this far -- the CookieJar
|
|
824
|
+
class deletes such cookies itself.
|
|
825
|
+
|
|
826
|
+
"""
|
|
827
|
+
raise NotImplementedError()
|
|
828
|
+
|
|
829
|
+
def return_ok(self, cookie, request):
|
|
830
|
+
"""Return true if (and only if) cookie should be returned to server."""
|
|
831
|
+
raise NotImplementedError()
|
|
832
|
+
|
|
833
|
+
def domain_return_ok(self, domain, request):
|
|
834
|
+
"""Return false if cookies should not be returned, given cookie domain.
|
|
835
|
+
"""
|
|
836
|
+
return True
|
|
837
|
+
|
|
838
|
+
def path_return_ok(self, path, request):
|
|
839
|
+
"""Return false if cookies should not be returned, given cookie path.
|
|
840
|
+
"""
|
|
841
|
+
return True
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
class DefaultCookiePolicy(CookiePolicy):
|
|
845
|
+
"""Implements the standard rules for accepting and returning cookies."""
|
|
846
|
+
|
|
847
|
+
DomainStrictNoDots = 1
|
|
848
|
+
DomainStrictNonDomain = 2
|
|
849
|
+
DomainRFC2965Match = 4
|
|
850
|
+
|
|
851
|
+
DomainLiberal = 0
|
|
852
|
+
DomainStrict = DomainStrictNoDots|DomainStrictNonDomain
|
|
853
|
+
|
|
854
|
+
def __init__(self,
|
|
855
|
+
blocked_domains=None, allowed_domains=None,
|
|
856
|
+
netscape=True, rfc2965=False,
|
|
857
|
+
rfc2109_as_netscape=None,
|
|
858
|
+
hide_cookie2=False,
|
|
859
|
+
strict_domain=False,
|
|
860
|
+
strict_rfc2965_unverifiable=True,
|
|
861
|
+
strict_ns_unverifiable=False,
|
|
862
|
+
strict_ns_domain=DomainLiberal,
|
|
863
|
+
strict_ns_set_initial_dollar=False,
|
|
864
|
+
strict_ns_set_path=False,
|
|
865
|
+
):
|
|
866
|
+
"""Constructor arguments should be passed as keyword arguments only."""
|
|
867
|
+
self.netscape = netscape
|
|
868
|
+
self.rfc2965 = rfc2965
|
|
869
|
+
self.rfc2109_as_netscape = rfc2109_as_netscape
|
|
870
|
+
self.hide_cookie2 = hide_cookie2
|
|
871
|
+
self.strict_domain = strict_domain
|
|
872
|
+
self.strict_rfc2965_unverifiable = strict_rfc2965_unverifiable
|
|
873
|
+
self.strict_ns_unverifiable = strict_ns_unverifiable
|
|
874
|
+
self.strict_ns_domain = strict_ns_domain
|
|
875
|
+
self.strict_ns_set_initial_dollar = strict_ns_set_initial_dollar
|
|
876
|
+
self.strict_ns_set_path = strict_ns_set_path
|
|
877
|
+
|
|
878
|
+
if blocked_domains is not None:
|
|
879
|
+
self._blocked_domains = tuple(blocked_domains)
|
|
880
|
+
else:
|
|
881
|
+
self._blocked_domains = ()
|
|
882
|
+
|
|
883
|
+
if allowed_domains is not None:
|
|
884
|
+
allowed_domains = tuple(allowed_domains)
|
|
885
|
+
self._allowed_domains = allowed_domains
|
|
886
|
+
|
|
887
|
+
def blocked_domains(self):
|
|
888
|
+
"""Return the sequence of blocked domains (as a tuple)."""
|
|
889
|
+
return self._blocked_domains
|
|
890
|
+
def set_blocked_domains(self, blocked_domains):
|
|
891
|
+
"""Set the sequence of blocked domains."""
|
|
892
|
+
self._blocked_domains = tuple(blocked_domains)
|
|
893
|
+
|
|
894
|
+
def is_blocked(self, domain):
|
|
895
|
+
for blocked_domain in self._blocked_domains:
|
|
896
|
+
if user_domain_match(domain, blocked_domain):
|
|
897
|
+
return True
|
|
898
|
+
return False
|
|
899
|
+
|
|
900
|
+
def allowed_domains(self):
|
|
901
|
+
"""Return None, or the sequence of allowed domains (as a tuple)."""
|
|
902
|
+
return self._allowed_domains
|
|
903
|
+
def set_allowed_domains(self, allowed_domains):
|
|
904
|
+
"""Set the sequence of allowed domains, or None."""
|
|
905
|
+
if allowed_domains is not None:
|
|
906
|
+
allowed_domains = tuple(allowed_domains)
|
|
907
|
+
self._allowed_domains = allowed_domains
|
|
908
|
+
|
|
909
|
+
def is_not_allowed(self, domain):
|
|
910
|
+
if self._allowed_domains is None:
|
|
911
|
+
return False
|
|
912
|
+
for allowed_domain in self._allowed_domains:
|
|
913
|
+
if user_domain_match(domain, allowed_domain):
|
|
914
|
+
return False
|
|
915
|
+
return True
|
|
916
|
+
|
|
917
|
+
def set_ok(self, cookie, request):
|
|
918
|
+
"""
|
|
919
|
+
If you override .set_ok(), be sure to call this method. If it returns
|
|
920
|
+
false, so should your subclass (assuming your subclass wants to be more
|
|
921
|
+
strict about which cookies to accept).
|
|
922
|
+
|
|
923
|
+
"""
|
|
924
|
+
_debug(" - checking cookie %s=%s", cookie.name, cookie.value)
|
|
925
|
+
|
|
926
|
+
assert cookie.name is not None
|
|
927
|
+
|
|
928
|
+
for n in "version", "verifiability", "name", "path", "domain", "port":
|
|
929
|
+
fn_name = "set_ok_"+n
|
|
930
|
+
fn = getattr(self, fn_name)
|
|
931
|
+
if not fn(cookie, request):
|
|
932
|
+
return False
|
|
933
|
+
|
|
934
|
+
return True
|
|
935
|
+
|
|
936
|
+
def set_ok_version(self, cookie, request):
|
|
937
|
+
if cookie.version is None:
|
|
938
|
+
# Version is always set to 0 by parse_ns_headers if it's a Netscape
|
|
939
|
+
# cookie, so this must be an invalid RFC 2965 cookie.
|
|
940
|
+
_debug(" Set-Cookie2 without version attribute (%s=%s)",
|
|
941
|
+
cookie.name, cookie.value)
|
|
942
|
+
return False
|
|
943
|
+
if cookie.version > 0 and not self.rfc2965:
|
|
944
|
+
_debug(" RFC 2965 cookies are switched off")
|
|
945
|
+
return False
|
|
946
|
+
elif cookie.version == 0 and not self.netscape:
|
|
947
|
+
_debug(" Netscape cookies are switched off")
|
|
948
|
+
return False
|
|
949
|
+
return True
|
|
950
|
+
|
|
951
|
+
def set_ok_verifiability(self, cookie, request):
|
|
952
|
+
if request.unverifiable and is_third_party(request):
|
|
953
|
+
if cookie.version > 0 and self.strict_rfc2965_unverifiable:
|
|
954
|
+
_debug(" third-party RFC 2965 cookie during "
|
|
955
|
+
"unverifiable transaction")
|
|
956
|
+
return False
|
|
957
|
+
elif cookie.version == 0 and self.strict_ns_unverifiable:
|
|
958
|
+
_debug(" third-party Netscape cookie during "
|
|
959
|
+
"unverifiable transaction")
|
|
960
|
+
return False
|
|
961
|
+
return True
|
|
962
|
+
|
|
963
|
+
def set_ok_name(self, cookie, request):
|
|
964
|
+
# Try and stop servers setting V0 cookies designed to hack other
|
|
965
|
+
# servers that know both V0 and V1 protocols.
|
|
966
|
+
if (cookie.version == 0 and self.strict_ns_set_initial_dollar and
|
|
967
|
+
cookie.name.startswith("$")):
|
|
968
|
+
_debug(" illegal name (starts with '$'): '%s'", cookie.name)
|
|
969
|
+
return False
|
|
970
|
+
return True
|
|
971
|
+
|
|
972
|
+
def set_ok_path(self, cookie, request):
|
|
973
|
+
if cookie.path_specified:
|
|
974
|
+
req_path = request_path(request)
|
|
975
|
+
if ((cookie.version > 0 or
|
|
976
|
+
(cookie.version == 0 and self.strict_ns_set_path)) and
|
|
977
|
+
not req_path.startswith(cookie.path)):
|
|
978
|
+
_debug(" path attribute %s is not a prefix of request "
|
|
979
|
+
"path %s", cookie.path, req_path)
|
|
980
|
+
return False
|
|
981
|
+
return True
|
|
982
|
+
|
|
983
|
+
def set_ok_domain(self, cookie, request):
|
|
984
|
+
if self.is_blocked(cookie.domain):
|
|
985
|
+
_debug(" domain %s is in user block-list", cookie.domain)
|
|
986
|
+
return False
|
|
987
|
+
if self.is_not_allowed(cookie.domain):
|
|
988
|
+
_debug(" domain %s is not in user allow-list", cookie.domain)
|
|
989
|
+
return False
|
|
990
|
+
if cookie.domain_specified:
|
|
991
|
+
req_host, erhn = eff_request_host(request)
|
|
992
|
+
domain = cookie.domain
|
|
993
|
+
if self.strict_domain and (domain.count(".") >= 2):
|
|
994
|
+
# XXX This should probably be compared with the Konqueror
|
|
995
|
+
# (kcookiejar.cpp) and Mozilla implementations, but it's a
|
|
996
|
+
# losing battle.
|
|
997
|
+
i = domain.rfind(".")
|
|
998
|
+
j = domain.rfind(".", 0, i)
|
|
999
|
+
if j == 0: # domain like .foo.bar
|
|
1000
|
+
tld = domain[i+1:]
|
|
1001
|
+
sld = domain[j+1:i]
|
|
1002
|
+
if sld.lower() in ("co", "ac", "com", "edu", "org", "net",
|
|
1003
|
+
"gov", "mil", "int", "aero", "biz", "cat", "coop",
|
|
1004
|
+
"info", "jobs", "mobi", "museum", "name", "pro",
|
|
1005
|
+
"travel", "eu") and len(tld) == 2:
|
|
1006
|
+
# domain like .co.uk
|
|
1007
|
+
_debug(" country-code second level domain %s", domain)
|
|
1008
|
+
return False
|
|
1009
|
+
if domain.startswith("."):
|
|
1010
|
+
undotted_domain = domain[1:]
|
|
1011
|
+
else:
|
|
1012
|
+
undotted_domain = domain
|
|
1013
|
+
embedded_dots = (undotted_domain.find(".") >= 0)
|
|
1014
|
+
if not embedded_dots and domain != ".local":
|
|
1015
|
+
_debug(" non-local domain %s contains no embedded dot",
|
|
1016
|
+
domain)
|
|
1017
|
+
return False
|
|
1018
|
+
if cookie.version == 0:
|
|
1019
|
+
if (not erhn.endswith(domain) and
|
|
1020
|
+
(not erhn.startswith(".") and
|
|
1021
|
+
not ("."+erhn).endswith(domain))):
|
|
1022
|
+
_debug(" effective request-host %s (even with added "
|
|
1023
|
+
"initial dot) does not end with %s",
|
|
1024
|
+
erhn, domain)
|
|
1025
|
+
return False
|
|
1026
|
+
if (cookie.version > 0 or
|
|
1027
|
+
(self.strict_ns_domain & self.DomainRFC2965Match)):
|
|
1028
|
+
if not domain_match(erhn, domain):
|
|
1029
|
+
_debug(" effective request-host %s does not domain-match "
|
|
1030
|
+
"%s", erhn, domain)
|
|
1031
|
+
return False
|
|
1032
|
+
if (cookie.version > 0 or
|
|
1033
|
+
(self.strict_ns_domain & self.DomainStrictNoDots)):
|
|
1034
|
+
host_prefix = req_host[:-len(domain)]
|
|
1035
|
+
if (host_prefix.find(".") >= 0 and
|
|
1036
|
+
not IPV4_RE.search(req_host)):
|
|
1037
|
+
_debug(" host prefix %s for domain %s contains a dot",
|
|
1038
|
+
host_prefix, domain)
|
|
1039
|
+
return False
|
|
1040
|
+
return True
|
|
1041
|
+
|
|
1042
|
+
def set_ok_port(self, cookie, request):
|
|
1043
|
+
if cookie.port_specified:
|
|
1044
|
+
req_port = request_port(request)
|
|
1045
|
+
if req_port is None:
|
|
1046
|
+
req_port = "80"
|
|
1047
|
+
else:
|
|
1048
|
+
req_port = str(req_port)
|
|
1049
|
+
for p in cookie.port.split(","):
|
|
1050
|
+
try:
|
|
1051
|
+
int(p)
|
|
1052
|
+
except ValueError:
|
|
1053
|
+
_debug(" bad port %s (not numeric)", p)
|
|
1054
|
+
return False
|
|
1055
|
+
if p == req_port:
|
|
1056
|
+
break
|
|
1057
|
+
else:
|
|
1058
|
+
_debug(" request port (%s) not found in %s",
|
|
1059
|
+
req_port, cookie.port)
|
|
1060
|
+
return False
|
|
1061
|
+
return True
|
|
1062
|
+
|
|
1063
|
+
def return_ok(self, cookie, request):
|
|
1064
|
+
"""
|
|
1065
|
+
If you override .return_ok(), be sure to call this method. If it
|
|
1066
|
+
returns false, so should your subclass (assuming your subclass wants to
|
|
1067
|
+
be more strict about which cookies to return).
|
|
1068
|
+
|
|
1069
|
+
"""
|
|
1070
|
+
# Path has already been checked by .path_return_ok(), and domain
|
|
1071
|
+
# blocking done by .domain_return_ok().
|
|
1072
|
+
_debug(" - checking cookie %s=%s", cookie.name, cookie.value)
|
|
1073
|
+
|
|
1074
|
+
for n in "version", "verifiability", "secure", "expires", "port", "domain":
|
|
1075
|
+
fn_name = "return_ok_"+n
|
|
1076
|
+
fn = getattr(self, fn_name)
|
|
1077
|
+
if not fn(cookie, request):
|
|
1078
|
+
return False
|
|
1079
|
+
return True
|
|
1080
|
+
|
|
1081
|
+
def return_ok_version(self, cookie, request):
|
|
1082
|
+
if cookie.version > 0 and not self.rfc2965:
|
|
1083
|
+
_debug(" RFC 2965 cookies are switched off")
|
|
1084
|
+
return False
|
|
1085
|
+
elif cookie.version == 0 and not self.netscape:
|
|
1086
|
+
_debug(" Netscape cookies are switched off")
|
|
1087
|
+
return False
|
|
1088
|
+
return True
|
|
1089
|
+
|
|
1090
|
+
def return_ok_verifiability(self, cookie, request):
|
|
1091
|
+
if request.unverifiable and is_third_party(request):
|
|
1092
|
+
if cookie.version > 0 and self.strict_rfc2965_unverifiable:
|
|
1093
|
+
_debug(" third-party RFC 2965 cookie during unverifiable "
|
|
1094
|
+
"transaction")
|
|
1095
|
+
return False
|
|
1096
|
+
elif cookie.version == 0 and self.strict_ns_unverifiable:
|
|
1097
|
+
_debug(" third-party Netscape cookie during unverifiable "
|
|
1098
|
+
"transaction")
|
|
1099
|
+
return False
|
|
1100
|
+
return True
|
|
1101
|
+
|
|
1102
|
+
def return_ok_secure(self, cookie, request):
|
|
1103
|
+
if cookie.secure and request.type != "https":
|
|
1104
|
+
_debug(" secure cookie with non-secure request")
|
|
1105
|
+
return False
|
|
1106
|
+
return True
|
|
1107
|
+
|
|
1108
|
+
def return_ok_expires(self, cookie, request):
|
|
1109
|
+
if cookie.is_expired(self._now):
|
|
1110
|
+
_debug(" cookie expired")
|
|
1111
|
+
return False
|
|
1112
|
+
return True
|
|
1113
|
+
|
|
1114
|
+
def return_ok_port(self, cookie, request):
|
|
1115
|
+
if cookie.port:
|
|
1116
|
+
req_port = request_port(request)
|
|
1117
|
+
if req_port is None:
|
|
1118
|
+
req_port = "80"
|
|
1119
|
+
for p in cookie.port.split(","):
|
|
1120
|
+
if p == req_port:
|
|
1121
|
+
break
|
|
1122
|
+
else:
|
|
1123
|
+
_debug(" request port %s does not match cookie port %s",
|
|
1124
|
+
req_port, cookie.port)
|
|
1125
|
+
return False
|
|
1126
|
+
return True
|
|
1127
|
+
|
|
1128
|
+
def return_ok_domain(self, cookie, request):
|
|
1129
|
+
req_host, erhn = eff_request_host(request)
|
|
1130
|
+
domain = cookie.domain
|
|
1131
|
+
|
|
1132
|
+
# strict check of non-domain cookies: Mozilla does this, MSIE5 doesn't
|
|
1133
|
+
if (cookie.version == 0 and
|
|
1134
|
+
(self.strict_ns_domain & self.DomainStrictNonDomain) and
|
|
1135
|
+
not cookie.domain_specified and domain != erhn):
|
|
1136
|
+
_debug(" cookie with unspecified domain does not string-compare "
|
|
1137
|
+
"equal to request domain")
|
|
1138
|
+
return False
|
|
1139
|
+
|
|
1140
|
+
if cookie.version > 0 and not domain_match(erhn, domain):
|
|
1141
|
+
_debug(" effective request-host name %s does not domain-match "
|
|
1142
|
+
"RFC 2965 cookie domain %s", erhn, domain)
|
|
1143
|
+
return False
|
|
1144
|
+
if cookie.version == 0 and not ("."+erhn).endswith(domain):
|
|
1145
|
+
_debug(" request-host %s does not match Netscape cookie domain "
|
|
1146
|
+
"%s", req_host, domain)
|
|
1147
|
+
return False
|
|
1148
|
+
return True
|
|
1149
|
+
|
|
1150
|
+
def domain_return_ok(self, domain, request):
|
|
1151
|
+
# Liberal check of. This is here as an optimization to avoid
|
|
1152
|
+
# having to load lots of MSIE cookie files unless necessary.
|
|
1153
|
+
req_host, erhn = eff_request_host(request)
|
|
1154
|
+
if not req_host.startswith("."):
|
|
1155
|
+
req_host = "."+req_host
|
|
1156
|
+
if not erhn.startswith("."):
|
|
1157
|
+
erhn = "."+erhn
|
|
1158
|
+
if not (req_host.endswith(domain) or erhn.endswith(domain)):
|
|
1159
|
+
#_debug(" request domain %s does not match cookie domain %s",
|
|
1160
|
+
# req_host, domain)
|
|
1161
|
+
return False
|
|
1162
|
+
|
|
1163
|
+
if self.is_blocked(domain):
|
|
1164
|
+
_debug(" domain %s is in user block-list", domain)
|
|
1165
|
+
return False
|
|
1166
|
+
if self.is_not_allowed(domain):
|
|
1167
|
+
_debug(" domain %s is not in user allow-list", domain)
|
|
1168
|
+
return False
|
|
1169
|
+
|
|
1170
|
+
return True
|
|
1171
|
+
|
|
1172
|
+
def path_return_ok(self, path, request):
|
|
1173
|
+
_debug("- checking cookie path=%s", path)
|
|
1174
|
+
req_path = request_path(request)
|
|
1175
|
+
if not req_path.startswith(path):
|
|
1176
|
+
_debug(" %s does not path-match %s", req_path, path)
|
|
1177
|
+
return False
|
|
1178
|
+
return True
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
def vals_sorted_by_key(adict):
|
|
1182
|
+
keys = sorted(adict.keys())
|
|
1183
|
+
return map(adict.get, keys)
|
|
1184
|
+
|
|
1185
|
+
def deepvalues(mapping):
|
|
1186
|
+
"""Iterates over nested mapping, depth-first, in sorted order by key."""
|
|
1187
|
+
values = vals_sorted_by_key(mapping)
|
|
1188
|
+
for obj in values:
|
|
1189
|
+
mapping = False
|
|
1190
|
+
try:
|
|
1191
|
+
obj.items
|
|
1192
|
+
except AttributeError:
|
|
1193
|
+
pass
|
|
1194
|
+
else:
|
|
1195
|
+
mapping = True
|
|
1196
|
+
yield from deepvalues(obj)
|
|
1197
|
+
if not mapping:
|
|
1198
|
+
yield obj
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
# Used as second parameter to dict.get() method, to distinguish absent
|
|
1202
|
+
# dict key from one with a None value.
|
|
1203
|
+
class Absent: pass
|
|
1204
|
+
|
|
1205
|
+
class CookieJar:
|
|
1206
|
+
"""Collection of HTTP cookies.
|
|
1207
|
+
|
|
1208
|
+
You may not need to know about this class: try
|
|
1209
|
+
urllib.request.build_opener(HTTPCookieProcessor).open(url).
|
|
1210
|
+
"""
|
|
1211
|
+
|
|
1212
|
+
non_word_re = re.compile(r"\W")
|
|
1213
|
+
quote_re = re.compile(r"([\"\\])")
|
|
1214
|
+
strict_domain_re = re.compile(r"\.?[^.]*")
|
|
1215
|
+
domain_re = re.compile(r"[^.]*")
|
|
1216
|
+
dots_re = re.compile(r"^\.+")
|
|
1217
|
+
|
|
1218
|
+
magic_re = re.compile(r"^\#LWP-Cookies-(\d+\.\d+)", re.ASCII)
|
|
1219
|
+
|
|
1220
|
+
def __init__(self, policy=None):
|
|
1221
|
+
if policy is None:
|
|
1222
|
+
policy = DefaultCookiePolicy()
|
|
1223
|
+
self._policy = policy
|
|
1224
|
+
|
|
1225
|
+
self._cookies_lock = _threading.RLock()
|
|
1226
|
+
self._cookies = {}
|
|
1227
|
+
|
|
1228
|
+
def set_policy(self, policy):
|
|
1229
|
+
self._policy = policy
|
|
1230
|
+
|
|
1231
|
+
def _cookies_for_domain(self, domain, request):
|
|
1232
|
+
cookies = []
|
|
1233
|
+
if not self._policy.domain_return_ok(domain, request):
|
|
1234
|
+
return []
|
|
1235
|
+
_debug("Checking %s for cookies to return", domain)
|
|
1236
|
+
cookies_by_path = self._cookies[domain]
|
|
1237
|
+
for path in cookies_by_path.keys():
|
|
1238
|
+
if not self._policy.path_return_ok(path, request):
|
|
1239
|
+
continue
|
|
1240
|
+
cookies_by_name = cookies_by_path[path]
|
|
1241
|
+
for cookie in cookies_by_name.values():
|
|
1242
|
+
if not self._policy.return_ok(cookie, request):
|
|
1243
|
+
_debug(" not returning cookie")
|
|
1244
|
+
continue
|
|
1245
|
+
_debug(" it's a match")
|
|
1246
|
+
cookies.append(cookie)
|
|
1247
|
+
return cookies
|
|
1248
|
+
|
|
1249
|
+
def _cookies_for_request(self, request):
|
|
1250
|
+
"""Return a list of cookies to be returned to server."""
|
|
1251
|
+
cookies = []
|
|
1252
|
+
for domain in self._cookies.keys():
|
|
1253
|
+
cookies.extend(self._cookies_for_domain(domain, request))
|
|
1254
|
+
return cookies
|
|
1255
|
+
|
|
1256
|
+
def _cookie_attrs(self, cookies):
|
|
1257
|
+
"""Return a list of cookie-attributes to be returned to server.
|
|
1258
|
+
|
|
1259
|
+
like ['foo="bar"; $Path="/"', ...]
|
|
1260
|
+
|
|
1261
|
+
The $Version attribute is also added when appropriate (currently only
|
|
1262
|
+
once per request).
|
|
1263
|
+
|
|
1264
|
+
"""
|
|
1265
|
+
# add cookies in order of most specific (ie. longest) path first
|
|
1266
|
+
cookies.sort(key=lambda a: len(a.path), reverse=True)
|
|
1267
|
+
|
|
1268
|
+
version_set = False
|
|
1269
|
+
|
|
1270
|
+
attrs = []
|
|
1271
|
+
for cookie in cookies:
|
|
1272
|
+
# set version of Cookie header
|
|
1273
|
+
# XXX
|
|
1274
|
+
# What should it be if multiple matching Set-Cookie headers have
|
|
1275
|
+
# different versions themselves?
|
|
1276
|
+
# Answer: there is no answer; was supposed to be settled by
|
|
1277
|
+
# RFC 2965 errata, but that may never appear...
|
|
1278
|
+
version = cookie.version
|
|
1279
|
+
if not version_set:
|
|
1280
|
+
version_set = True
|
|
1281
|
+
if version > 0:
|
|
1282
|
+
attrs.append("$Version=%s" % version)
|
|
1283
|
+
|
|
1284
|
+
# quote cookie value if necessary
|
|
1285
|
+
# (not for Netscape protocol, which already has any quotes
|
|
1286
|
+
# intact, due to the poorly-specified Netscape Cookie: syntax)
|
|
1287
|
+
if ((cookie.value is not None) and
|
|
1288
|
+
self.non_word_re.search(cookie.value) and version > 0):
|
|
1289
|
+
value = self.quote_re.sub(r"\\\1", cookie.value)
|
|
1290
|
+
else:
|
|
1291
|
+
value = cookie.value
|
|
1292
|
+
|
|
1293
|
+
# add cookie-attributes to be returned in Cookie header
|
|
1294
|
+
if cookie.value is None:
|
|
1295
|
+
attrs.append(cookie.name)
|
|
1296
|
+
else:
|
|
1297
|
+
attrs.append("%s=%s" % (cookie.name, value))
|
|
1298
|
+
if version > 0:
|
|
1299
|
+
if cookie.path_specified:
|
|
1300
|
+
attrs.append('$Path="%s"' % cookie.path)
|
|
1301
|
+
if cookie.domain.startswith("."):
|
|
1302
|
+
domain = cookie.domain
|
|
1303
|
+
if (not cookie.domain_initial_dot and
|
|
1304
|
+
domain.startswith(".")):
|
|
1305
|
+
domain = domain[1:]
|
|
1306
|
+
attrs.append('$Domain="%s"' % domain)
|
|
1307
|
+
if cookie.port is not None:
|
|
1308
|
+
p = "$Port"
|
|
1309
|
+
if cookie.port_specified:
|
|
1310
|
+
p = p + ('="%s"' % cookie.port)
|
|
1311
|
+
attrs.append(p)
|
|
1312
|
+
|
|
1313
|
+
return attrs
|
|
1314
|
+
|
|
1315
|
+
def add_cookie_header(self, request):
|
|
1316
|
+
"""Add correct Cookie: header to request (urllib.request.Request object).
|
|
1317
|
+
|
|
1318
|
+
The Cookie2 header is also added unless policy.hide_cookie2 is true.
|
|
1319
|
+
|
|
1320
|
+
"""
|
|
1321
|
+
_debug("add_cookie_header")
|
|
1322
|
+
self._cookies_lock.acquire()
|
|
1323
|
+
try:
|
|
1324
|
+
|
|
1325
|
+
self._policy._now = self._now = int(time.time())
|
|
1326
|
+
|
|
1327
|
+
cookies = self._cookies_for_request(request)
|
|
1328
|
+
|
|
1329
|
+
attrs = self._cookie_attrs(cookies)
|
|
1330
|
+
if attrs:
|
|
1331
|
+
if not request.has_header("Cookie"):
|
|
1332
|
+
request.add_unredirected_header(
|
|
1333
|
+
"Cookie", "; ".join(attrs))
|
|
1334
|
+
|
|
1335
|
+
# if necessary, advertise that we know RFC 2965
|
|
1336
|
+
if (self._policy.rfc2965 and not self._policy.hide_cookie2 and
|
|
1337
|
+
not request.has_header("Cookie2")):
|
|
1338
|
+
for cookie in cookies:
|
|
1339
|
+
if cookie.version != 1:
|
|
1340
|
+
request.add_unredirected_header("Cookie2", '$Version="1"')
|
|
1341
|
+
break
|
|
1342
|
+
|
|
1343
|
+
finally:
|
|
1344
|
+
self._cookies_lock.release()
|
|
1345
|
+
|
|
1346
|
+
self.clear_expired_cookies()
|
|
1347
|
+
|
|
1348
|
+
def _normalized_cookie_tuples(self, attrs_set):
|
|
1349
|
+
"""Return list of tuples containing normalised cookie information.
|
|
1350
|
+
|
|
1351
|
+
attrs_set is the list of lists of key,value pairs extracted from
|
|
1352
|
+
the Set-Cookie or Set-Cookie2 headers.
|
|
1353
|
+
|
|
1354
|
+
Tuples are name, value, standard, rest, where name and value are the
|
|
1355
|
+
cookie name and value, standard is a dictionary containing the standard
|
|
1356
|
+
cookie-attributes (discard, secure, version, expires or max-age,
|
|
1357
|
+
domain, path and port) and rest is a dictionary containing the rest of
|
|
1358
|
+
the cookie-attributes.
|
|
1359
|
+
|
|
1360
|
+
"""
|
|
1361
|
+
cookie_tuples = []
|
|
1362
|
+
|
|
1363
|
+
boolean_attrs = "discard", "secure"
|
|
1364
|
+
value_attrs = ("version",
|
|
1365
|
+
"expires", "max-age",
|
|
1366
|
+
"domain", "path", "port",
|
|
1367
|
+
"comment", "commenturl")
|
|
1368
|
+
|
|
1369
|
+
for cookie_attrs in attrs_set:
|
|
1370
|
+
name, value = cookie_attrs[0]
|
|
1371
|
+
|
|
1372
|
+
# Build dictionary of standard cookie-attributes (standard) and
|
|
1373
|
+
# dictionary of other cookie-attributes (rest).
|
|
1374
|
+
|
|
1375
|
+
# Note: expiry time is normalised to seconds since epoch. V0
|
|
1376
|
+
# cookies should have the Expires cookie-attribute, and V1 cookies
|
|
1377
|
+
# should have Max-Age, but since V1 includes RFC 2109 cookies (and
|
|
1378
|
+
# since V0 cookies may be a mish-mash of Netscape and RFC 2109), we
|
|
1379
|
+
# accept either (but prefer Max-Age).
|
|
1380
|
+
max_age_set = False
|
|
1381
|
+
|
|
1382
|
+
bad_cookie = False
|
|
1383
|
+
|
|
1384
|
+
standard = {}
|
|
1385
|
+
rest = {}
|
|
1386
|
+
for k, v in cookie_attrs[1:]:
|
|
1387
|
+
lc = k.lower()
|
|
1388
|
+
# don't lose case distinction for unknown fields
|
|
1389
|
+
if lc in value_attrs or lc in boolean_attrs:
|
|
1390
|
+
k = lc
|
|
1391
|
+
if k in boolean_attrs and v is None:
|
|
1392
|
+
# boolean cookie-attribute is present, but has no value
|
|
1393
|
+
# (like "discard", rather than "port=80")
|
|
1394
|
+
v = True
|
|
1395
|
+
if k in standard:
|
|
1396
|
+
# only first value is significant
|
|
1397
|
+
continue
|
|
1398
|
+
if k == "domain":
|
|
1399
|
+
if v is None:
|
|
1400
|
+
_debug(" missing value for domain attribute")
|
|
1401
|
+
bad_cookie = True
|
|
1402
|
+
break
|
|
1403
|
+
# RFC 2965 section 3.3.3
|
|
1404
|
+
v = v.lower()
|
|
1405
|
+
if k == "expires":
|
|
1406
|
+
if max_age_set:
|
|
1407
|
+
# Prefer max-age to expires (like Mozilla)
|
|
1408
|
+
continue
|
|
1409
|
+
if v is None:
|
|
1410
|
+
_debug(" missing or invalid value for expires "
|
|
1411
|
+
"attribute: treating as session cookie")
|
|
1412
|
+
continue
|
|
1413
|
+
if k == "max-age":
|
|
1414
|
+
max_age_set = True
|
|
1415
|
+
try:
|
|
1416
|
+
v = int(v)
|
|
1417
|
+
except ValueError:
|
|
1418
|
+
_debug(" missing or invalid (non-numeric) value for "
|
|
1419
|
+
"max-age attribute")
|
|
1420
|
+
bad_cookie = True
|
|
1421
|
+
break
|
|
1422
|
+
# convert RFC 2965 Max-Age to seconds since epoch
|
|
1423
|
+
# XXX Strictly you're supposed to follow RFC 2616
|
|
1424
|
+
# age-calculation rules. Remember that zero Max-Age is a
|
|
1425
|
+
# is a request to discard (old and new) cookie, though.
|
|
1426
|
+
k = "expires"
|
|
1427
|
+
v = self._now + v
|
|
1428
|
+
if (k in value_attrs) or (k in boolean_attrs):
|
|
1429
|
+
if (v is None and
|
|
1430
|
+
k not in ("port", "comment", "commenturl")):
|
|
1431
|
+
_debug(" missing value for %s attribute" % k)
|
|
1432
|
+
bad_cookie = True
|
|
1433
|
+
break
|
|
1434
|
+
standard[k] = v
|
|
1435
|
+
else:
|
|
1436
|
+
rest[k] = v
|
|
1437
|
+
|
|
1438
|
+
if bad_cookie:
|
|
1439
|
+
continue
|
|
1440
|
+
|
|
1441
|
+
cookie_tuples.append((name, value, standard, rest))
|
|
1442
|
+
|
|
1443
|
+
return cookie_tuples
|
|
1444
|
+
|
|
1445
|
+
def _cookie_from_cookie_tuple(self, tup, request):
|
|
1446
|
+
# standard is dict of standard cookie-attributes, rest is dict of the
|
|
1447
|
+
# rest of them
|
|
1448
|
+
name, value, standard, rest = tup
|
|
1449
|
+
|
|
1450
|
+
domain = standard.get("domain", Absent)
|
|
1451
|
+
path = standard.get("path", Absent)
|
|
1452
|
+
port = standard.get("port", Absent)
|
|
1453
|
+
expires = standard.get("expires", Absent)
|
|
1454
|
+
|
|
1455
|
+
# set the easy defaults
|
|
1456
|
+
version = standard.get("version", None)
|
|
1457
|
+
if version is not None:
|
|
1458
|
+
try:
|
|
1459
|
+
version = int(version)
|
|
1460
|
+
except ValueError:
|
|
1461
|
+
return None # invalid version, ignore cookie
|
|
1462
|
+
secure = standard.get("secure", False)
|
|
1463
|
+
# (discard is also set if expires is Absent)
|
|
1464
|
+
discard = standard.get("discard", False)
|
|
1465
|
+
comment = standard.get("comment", None)
|
|
1466
|
+
comment_url = standard.get("commenturl", None)
|
|
1467
|
+
|
|
1468
|
+
# set default path
|
|
1469
|
+
if path is not Absent and path != "":
|
|
1470
|
+
path_specified = True
|
|
1471
|
+
path = escape_path(path)
|
|
1472
|
+
else:
|
|
1473
|
+
path_specified = False
|
|
1474
|
+
path = request_path(request)
|
|
1475
|
+
i = path.rfind("/")
|
|
1476
|
+
if i != -1:
|
|
1477
|
+
if version == 0:
|
|
1478
|
+
# Netscape spec parts company from reality here
|
|
1479
|
+
path = path[:i]
|
|
1480
|
+
else:
|
|
1481
|
+
path = path[:i+1]
|
|
1482
|
+
if len(path) == 0: path = "/"
|
|
1483
|
+
|
|
1484
|
+
# set default domain
|
|
1485
|
+
domain_specified = domain is not Absent
|
|
1486
|
+
# but first we have to remember whether it starts with a dot
|
|
1487
|
+
domain_initial_dot = False
|
|
1488
|
+
if domain_specified:
|
|
1489
|
+
domain_initial_dot = bool(domain.startswith("."))
|
|
1490
|
+
if domain is Absent:
|
|
1491
|
+
req_host, erhn = eff_request_host(request)
|
|
1492
|
+
domain = erhn
|
|
1493
|
+
elif not domain.startswith("."):
|
|
1494
|
+
domain = "."+domain
|
|
1495
|
+
|
|
1496
|
+
# set default port
|
|
1497
|
+
port_specified = False
|
|
1498
|
+
if port is not Absent:
|
|
1499
|
+
if port is None:
|
|
1500
|
+
# Port attr present, but has no value: default to request port.
|
|
1501
|
+
# Cookie should then only be sent back on that port.
|
|
1502
|
+
port = request_port(request)
|
|
1503
|
+
else:
|
|
1504
|
+
port_specified = True
|
|
1505
|
+
port = re.sub(r"\s+", "", port)
|
|
1506
|
+
else:
|
|
1507
|
+
# No port attr present. Cookie can be sent back on any port.
|
|
1508
|
+
port = None
|
|
1509
|
+
|
|
1510
|
+
# set default expires and discard
|
|
1511
|
+
if expires is Absent:
|
|
1512
|
+
expires = None
|
|
1513
|
+
discard = True
|
|
1514
|
+
elif expires <= self._now:
|
|
1515
|
+
# Expiry date in past is request to delete cookie. This can't be
|
|
1516
|
+
# in DefaultCookiePolicy, because can't delete cookies there.
|
|
1517
|
+
try:
|
|
1518
|
+
self.clear(domain, path, name)
|
|
1519
|
+
except KeyError:
|
|
1520
|
+
pass
|
|
1521
|
+
_debug("Expiring cookie, domain='%s', path='%s', name='%s'",
|
|
1522
|
+
domain, path, name)
|
|
1523
|
+
return None
|
|
1524
|
+
|
|
1525
|
+
return Cookie(version,
|
|
1526
|
+
name, value,
|
|
1527
|
+
port, port_specified,
|
|
1528
|
+
domain, domain_specified, domain_initial_dot,
|
|
1529
|
+
path, path_specified,
|
|
1530
|
+
secure,
|
|
1531
|
+
expires,
|
|
1532
|
+
discard,
|
|
1533
|
+
comment,
|
|
1534
|
+
comment_url,
|
|
1535
|
+
rest)
|
|
1536
|
+
|
|
1537
|
+
def _cookies_from_attrs_set(self, attrs_set, request):
|
|
1538
|
+
cookie_tuples = self._normalized_cookie_tuples(attrs_set)
|
|
1539
|
+
|
|
1540
|
+
cookies = []
|
|
1541
|
+
for tup in cookie_tuples:
|
|
1542
|
+
cookie = self._cookie_from_cookie_tuple(tup, request)
|
|
1543
|
+
if cookie: cookies.append(cookie)
|
|
1544
|
+
return cookies
|
|
1545
|
+
|
|
1546
|
+
def _process_rfc2109_cookies(self, cookies):
|
|
1547
|
+
rfc2109_as_ns = getattr(self._policy, 'rfc2109_as_netscape', None)
|
|
1548
|
+
if rfc2109_as_ns is None:
|
|
1549
|
+
rfc2109_as_ns = not self._policy.rfc2965
|
|
1550
|
+
for cookie in cookies:
|
|
1551
|
+
if cookie.version == 1:
|
|
1552
|
+
cookie.rfc2109 = True
|
|
1553
|
+
if rfc2109_as_ns:
|
|
1554
|
+
# treat 2109 cookies as Netscape cookies rather than
|
|
1555
|
+
# as RFC2965 cookies
|
|
1556
|
+
cookie.version = 0
|
|
1557
|
+
|
|
1558
|
+
def make_cookies(self, response, request):
|
|
1559
|
+
"""Return sequence of Cookie objects extracted from response object."""
|
|
1560
|
+
# get cookie-attributes for RFC 2965 and Netscape protocols
|
|
1561
|
+
headers = response.info()
|
|
1562
|
+
rfc2965_hdrs = headers.get_all("Set-Cookie2", [])
|
|
1563
|
+
ns_hdrs = headers.get_all("Set-Cookie", [])
|
|
1564
|
+
|
|
1565
|
+
rfc2965 = self._policy.rfc2965
|
|
1566
|
+
netscape = self._policy.netscape
|
|
1567
|
+
|
|
1568
|
+
if ((not rfc2965_hdrs and not ns_hdrs) or
|
|
1569
|
+
(not ns_hdrs and not rfc2965) or
|
|
1570
|
+
(not rfc2965_hdrs and not netscape) or
|
|
1571
|
+
(not netscape and not rfc2965)):
|
|
1572
|
+
return [] # no relevant cookie headers: quick exit
|
|
1573
|
+
|
|
1574
|
+
try:
|
|
1575
|
+
cookies = self._cookies_from_attrs_set(
|
|
1576
|
+
split_header_words(rfc2965_hdrs), request)
|
|
1577
|
+
except Exception:
|
|
1578
|
+
_warn_unhandled_exception()
|
|
1579
|
+
cookies = []
|
|
1580
|
+
|
|
1581
|
+
if ns_hdrs and netscape:
|
|
1582
|
+
try:
|
|
1583
|
+
# RFC 2109 and Netscape cookies
|
|
1584
|
+
ns_cookies = self._cookies_from_attrs_set(
|
|
1585
|
+
parse_ns_headers(ns_hdrs), request)
|
|
1586
|
+
except Exception:
|
|
1587
|
+
_warn_unhandled_exception()
|
|
1588
|
+
ns_cookies = []
|
|
1589
|
+
self._process_rfc2109_cookies(ns_cookies)
|
|
1590
|
+
|
|
1591
|
+
# Look for Netscape cookies (from Set-Cookie headers) that match
|
|
1592
|
+
# corresponding RFC 2965 cookies (from Set-Cookie2 headers).
|
|
1593
|
+
# For each match, keep the RFC 2965 cookie and ignore the Netscape
|
|
1594
|
+
# cookie (RFC 2965 section 9.1). Actually, RFC 2109 cookies are
|
|
1595
|
+
# bundled in with the Netscape cookies for this purpose, which is
|
|
1596
|
+
# reasonable behaviour.
|
|
1597
|
+
if rfc2965:
|
|
1598
|
+
lookup = {}
|
|
1599
|
+
for cookie in cookies:
|
|
1600
|
+
lookup[(cookie.domain, cookie.path, cookie.name)] = None
|
|
1601
|
+
|
|
1602
|
+
def no_matching_rfc2965(ns_cookie, lookup=lookup):
|
|
1603
|
+
key = ns_cookie.domain, ns_cookie.path, ns_cookie.name
|
|
1604
|
+
return key not in lookup
|
|
1605
|
+
ns_cookies = filter(no_matching_rfc2965, ns_cookies)
|
|
1606
|
+
|
|
1607
|
+
if ns_cookies:
|
|
1608
|
+
cookies.extend(ns_cookies)
|
|
1609
|
+
|
|
1610
|
+
return cookies
|
|
1611
|
+
|
|
1612
|
+
def set_cookie_if_ok(self, cookie, request):
|
|
1613
|
+
"""Set a cookie if policy says it's OK to do so."""
|
|
1614
|
+
self._cookies_lock.acquire()
|
|
1615
|
+
try:
|
|
1616
|
+
self._policy._now = self._now = int(time.time())
|
|
1617
|
+
|
|
1618
|
+
if self._policy.set_ok(cookie, request):
|
|
1619
|
+
self.set_cookie(cookie)
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
finally:
|
|
1623
|
+
self._cookies_lock.release()
|
|
1624
|
+
|
|
1625
|
+
def set_cookie(self, cookie):
|
|
1626
|
+
"""Set a cookie, without checking whether or not it should be set."""
|
|
1627
|
+
c = self._cookies
|
|
1628
|
+
self._cookies_lock.acquire()
|
|
1629
|
+
try:
|
|
1630
|
+
if cookie.domain not in c: c[cookie.domain] = {}
|
|
1631
|
+
c2 = c[cookie.domain]
|
|
1632
|
+
if cookie.path not in c2: c2[cookie.path] = {}
|
|
1633
|
+
c3 = c2[cookie.path]
|
|
1634
|
+
c3[cookie.name] = cookie
|
|
1635
|
+
finally:
|
|
1636
|
+
self._cookies_lock.release()
|
|
1637
|
+
|
|
1638
|
+
def extract_cookies(self, response, request):
|
|
1639
|
+
"""Extract cookies from response, where allowable given the request."""
|
|
1640
|
+
_debug("extract_cookies: %s", response.info())
|
|
1641
|
+
self._cookies_lock.acquire()
|
|
1642
|
+
try:
|
|
1643
|
+
self._policy._now = self._now = int(time.time())
|
|
1644
|
+
|
|
1645
|
+
for cookie in self.make_cookies(response, request):
|
|
1646
|
+
if self._policy.set_ok(cookie, request):
|
|
1647
|
+
_debug(" setting cookie: %s", cookie)
|
|
1648
|
+
self.set_cookie(cookie)
|
|
1649
|
+
finally:
|
|
1650
|
+
self._cookies_lock.release()
|
|
1651
|
+
|
|
1652
|
+
def clear(self, domain=None, path=None, name=None):
|
|
1653
|
+
"""Clear some cookies.
|
|
1654
|
+
|
|
1655
|
+
Invoking this method without arguments will clear all cookies. If
|
|
1656
|
+
given a single argument, only cookies belonging to that domain will be
|
|
1657
|
+
removed. If given two arguments, cookies belonging to the specified
|
|
1658
|
+
path within that domain are removed. If given three arguments, then
|
|
1659
|
+
the cookie with the specified name, path and domain is removed.
|
|
1660
|
+
|
|
1661
|
+
Raises KeyError if no matching cookie exists.
|
|
1662
|
+
|
|
1663
|
+
"""
|
|
1664
|
+
if name is not None:
|
|
1665
|
+
if (domain is None) or (path is None):
|
|
1666
|
+
raise ValueError(
|
|
1667
|
+
"domain and path must be given to remove a cookie by name")
|
|
1668
|
+
del self._cookies[domain][path][name]
|
|
1669
|
+
elif path is not None:
|
|
1670
|
+
if domain is None:
|
|
1671
|
+
raise ValueError(
|
|
1672
|
+
"domain must be given to remove cookies by path")
|
|
1673
|
+
del self._cookies[domain][path]
|
|
1674
|
+
elif domain is not None:
|
|
1675
|
+
del self._cookies[domain]
|
|
1676
|
+
else:
|
|
1677
|
+
self._cookies = {}
|
|
1678
|
+
|
|
1679
|
+
def clear_session_cookies(self):
|
|
1680
|
+
"""Discard all session cookies.
|
|
1681
|
+
|
|
1682
|
+
Note that the .save() method won't save session cookies anyway, unless
|
|
1683
|
+
you ask otherwise by passing a true ignore_discard argument.
|
|
1684
|
+
|
|
1685
|
+
"""
|
|
1686
|
+
self._cookies_lock.acquire()
|
|
1687
|
+
try:
|
|
1688
|
+
for cookie in self:
|
|
1689
|
+
if cookie.discard:
|
|
1690
|
+
self.clear(cookie.domain, cookie.path, cookie.name)
|
|
1691
|
+
finally:
|
|
1692
|
+
self._cookies_lock.release()
|
|
1693
|
+
|
|
1694
|
+
def clear_expired_cookies(self):
|
|
1695
|
+
"""Discard all expired cookies.
|
|
1696
|
+
|
|
1697
|
+
You probably don't need to call this method: expired cookies are never
|
|
1698
|
+
sent back to the server (provided you're using DefaultCookiePolicy),
|
|
1699
|
+
this method is called by CookieJar itself every so often, and the
|
|
1700
|
+
.save() method won't save expired cookies anyway (unless you ask
|
|
1701
|
+
otherwise by passing a true ignore_expires argument).
|
|
1702
|
+
|
|
1703
|
+
"""
|
|
1704
|
+
self._cookies_lock.acquire()
|
|
1705
|
+
try:
|
|
1706
|
+
now = time.time()
|
|
1707
|
+
for cookie in self:
|
|
1708
|
+
if cookie.is_expired(now):
|
|
1709
|
+
self.clear(cookie.domain, cookie.path, cookie.name)
|
|
1710
|
+
finally:
|
|
1711
|
+
self._cookies_lock.release()
|
|
1712
|
+
|
|
1713
|
+
def __iter__(self):
|
|
1714
|
+
return deepvalues(self._cookies)
|
|
1715
|
+
|
|
1716
|
+
def __len__(self):
|
|
1717
|
+
"""Return number of contained cookies."""
|
|
1718
|
+
i = 0
|
|
1719
|
+
for cookie in self: i = i + 1
|
|
1720
|
+
return i
|
|
1721
|
+
|
|
1722
|
+
def __repr__(self):
|
|
1723
|
+
r = []
|
|
1724
|
+
for cookie in self: r.append(repr(cookie))
|
|
1725
|
+
return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
|
|
1726
|
+
|
|
1727
|
+
def __str__(self):
|
|
1728
|
+
r = []
|
|
1729
|
+
for cookie in self: r.append(str(cookie))
|
|
1730
|
+
return "<%s[%s]>" % (self.__class__.__name__, ", ".join(r))
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
# derives from OSError for backwards-compatibility with Python 2.4.0
|
|
1734
|
+
class LoadError(OSError): pass
|
|
1735
|
+
|
|
1736
|
+
class FileCookieJar(CookieJar):
|
|
1737
|
+
"""CookieJar that can be loaded from and saved to a file."""
|
|
1738
|
+
|
|
1739
|
+
def __init__(self, filename=None, delayload=False, policy=None):
|
|
1740
|
+
"""
|
|
1741
|
+
Cookies are NOT loaded from the named file until either the .load() or
|
|
1742
|
+
.revert() method is called.
|
|
1743
|
+
|
|
1744
|
+
"""
|
|
1745
|
+
CookieJar.__init__(self, policy)
|
|
1746
|
+
if filename is not None:
|
|
1747
|
+
try:
|
|
1748
|
+
filename+""
|
|
1749
|
+
except:
|
|
1750
|
+
raise ValueError("filename must be string-like")
|
|
1751
|
+
self.filename = filename
|
|
1752
|
+
self.delayload = bool(delayload)
|
|
1753
|
+
|
|
1754
|
+
def save(self, filename=None, ignore_discard=False, ignore_expires=False):
|
|
1755
|
+
"""Save cookies to a file."""
|
|
1756
|
+
raise NotImplementedError()
|
|
1757
|
+
|
|
1758
|
+
def load(self, filename=None, ignore_discard=False, ignore_expires=False):
|
|
1759
|
+
"""Load cookies from a file."""
|
|
1760
|
+
if filename is None:
|
|
1761
|
+
if self.filename is not None: filename = self.filename
|
|
1762
|
+
else: raise ValueError(MISSING_FILENAME_TEXT)
|
|
1763
|
+
|
|
1764
|
+
with open(filename) as f:
|
|
1765
|
+
self._really_load(f, filename, ignore_discard, ignore_expires)
|
|
1766
|
+
|
|
1767
|
+
def revert(self, filename=None,
|
|
1768
|
+
ignore_discard=False, ignore_expires=False):
|
|
1769
|
+
"""Clear all cookies and reload cookies from a saved file.
|
|
1770
|
+
|
|
1771
|
+
Raises LoadError (or OSError) if reversion is not successful; the
|
|
1772
|
+
object's state will not be altered if this happens.
|
|
1773
|
+
|
|
1774
|
+
"""
|
|
1775
|
+
if filename is None:
|
|
1776
|
+
if self.filename is not None: filename = self.filename
|
|
1777
|
+
else: raise ValueError(MISSING_FILENAME_TEXT)
|
|
1778
|
+
|
|
1779
|
+
self._cookies_lock.acquire()
|
|
1780
|
+
try:
|
|
1781
|
+
|
|
1782
|
+
old_state = copy.deepcopy(self._cookies)
|
|
1783
|
+
self._cookies = {}
|
|
1784
|
+
try:
|
|
1785
|
+
self.load(filename, ignore_discard, ignore_expires)
|
|
1786
|
+
except OSError:
|
|
1787
|
+
self._cookies = old_state
|
|
1788
|
+
raise
|
|
1789
|
+
|
|
1790
|
+
finally:
|
|
1791
|
+
self._cookies_lock.release()
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
def lwp_cookie_str(cookie):
|
|
1795
|
+
"""Return string representation of Cookie in an the LWP cookie file format.
|
|
1796
|
+
|
|
1797
|
+
Actually, the format is extended a bit -- see module docstring.
|
|
1798
|
+
|
|
1799
|
+
"""
|
|
1800
|
+
h = [(cookie.name, cookie.value),
|
|
1801
|
+
("path", cookie.path),
|
|
1802
|
+
("domain", cookie.domain)]
|
|
1803
|
+
if cookie.port is not None: h.append(("port", cookie.port))
|
|
1804
|
+
if cookie.path_specified: h.append(("path_spec", None))
|
|
1805
|
+
if cookie.port_specified: h.append(("port_spec", None))
|
|
1806
|
+
if cookie.domain_initial_dot: h.append(("domain_dot", None))
|
|
1807
|
+
if cookie.secure: h.append(("secure", None))
|
|
1808
|
+
if cookie.expires: h.append(("expires",
|
|
1809
|
+
time2isoz(float(cookie.expires))))
|
|
1810
|
+
if cookie.discard: h.append(("discard", None))
|
|
1811
|
+
if cookie.comment: h.append(("comment", cookie.comment))
|
|
1812
|
+
if cookie.comment_url: h.append(("commenturl", cookie.comment_url))
|
|
1813
|
+
|
|
1814
|
+
keys = sorted(cookie._rest.keys())
|
|
1815
|
+
for k in keys:
|
|
1816
|
+
h.append((k, str(cookie._rest[k])))
|
|
1817
|
+
|
|
1818
|
+
h.append(("version", str(cookie.version)))
|
|
1819
|
+
|
|
1820
|
+
return join_header_words([h])
|
|
1821
|
+
|
|
1822
|
+
class LWPCookieJar(FileCookieJar):
|
|
1823
|
+
"""
|
|
1824
|
+
The LWPCookieJar saves a sequence of "Set-Cookie3" lines.
|
|
1825
|
+
"Set-Cookie3" is the format used by the libwww-perl libary, not known
|
|
1826
|
+
to be compatible with any browser, but which is easy to read and
|
|
1827
|
+
doesn't lose information about RFC 2965 cookies.
|
|
1828
|
+
|
|
1829
|
+
Additional methods
|
|
1830
|
+
|
|
1831
|
+
as_lwp_str(ignore_discard=True, ignore_expired=True)
|
|
1832
|
+
|
|
1833
|
+
"""
|
|
1834
|
+
|
|
1835
|
+
def as_lwp_str(self, ignore_discard=True, ignore_expires=True):
|
|
1836
|
+
"""Return cookies as a string of "\\n"-separated "Set-Cookie3" headers.
|
|
1837
|
+
|
|
1838
|
+
ignore_discard and ignore_expires: see docstring for FileCookieJar.save
|
|
1839
|
+
|
|
1840
|
+
"""
|
|
1841
|
+
now = time.time()
|
|
1842
|
+
r = []
|
|
1843
|
+
for cookie in self:
|
|
1844
|
+
if not ignore_discard and cookie.discard:
|
|
1845
|
+
continue
|
|
1846
|
+
if not ignore_expires and cookie.is_expired(now):
|
|
1847
|
+
continue
|
|
1848
|
+
r.append("Set-Cookie3: %s" % lwp_cookie_str(cookie))
|
|
1849
|
+
return "\n".join(r+[""])
|
|
1850
|
+
|
|
1851
|
+
def save(self, filename=None, ignore_discard=False, ignore_expires=False):
|
|
1852
|
+
if filename is None:
|
|
1853
|
+
if self.filename is not None: filename = self.filename
|
|
1854
|
+
else: raise ValueError(MISSING_FILENAME_TEXT)
|
|
1855
|
+
|
|
1856
|
+
with open(filename, "w") as f:
|
|
1857
|
+
# There really isn't an LWP Cookies 2.0 format, but this indicates
|
|
1858
|
+
# that there is extra information in here (domain_dot and
|
|
1859
|
+
# port_spec) while still being compatible with libwww-perl, I hope.
|
|
1860
|
+
f.write("#LWP-Cookies-2.0\n")
|
|
1861
|
+
f.write(self.as_lwp_str(ignore_discard, ignore_expires))
|
|
1862
|
+
|
|
1863
|
+
def _really_load(self, f, filename, ignore_discard, ignore_expires):
|
|
1864
|
+
magic = f.readline()
|
|
1865
|
+
if not self.magic_re.search(magic):
|
|
1866
|
+
msg = ("%r does not look like a Set-Cookie3 (LWP) format "
|
|
1867
|
+
"file" % filename)
|
|
1868
|
+
raise LoadError(msg)
|
|
1869
|
+
|
|
1870
|
+
now = time.time()
|
|
1871
|
+
|
|
1872
|
+
header = "Set-Cookie3:"
|
|
1873
|
+
boolean_attrs = ("port_spec", "path_spec", "domain_dot",
|
|
1874
|
+
"secure", "discard")
|
|
1875
|
+
value_attrs = ("version",
|
|
1876
|
+
"port", "path", "domain",
|
|
1877
|
+
"expires",
|
|
1878
|
+
"comment", "commenturl")
|
|
1879
|
+
|
|
1880
|
+
try:
|
|
1881
|
+
while 1:
|
|
1882
|
+
line = f.readline()
|
|
1883
|
+
if line == "": break
|
|
1884
|
+
if not line.startswith(header):
|
|
1885
|
+
continue
|
|
1886
|
+
line = line[len(header):].strip()
|
|
1887
|
+
|
|
1888
|
+
for data in split_header_words([line]):
|
|
1889
|
+
name, value = data[0]
|
|
1890
|
+
standard = {}
|
|
1891
|
+
rest = {}
|
|
1892
|
+
for k in boolean_attrs:
|
|
1893
|
+
standard[k] = False
|
|
1894
|
+
for k, v in data[1:]:
|
|
1895
|
+
if k is not None:
|
|
1896
|
+
lc = k.lower()
|
|
1897
|
+
else:
|
|
1898
|
+
lc = None
|
|
1899
|
+
# don't lose case distinction for unknown fields
|
|
1900
|
+
if (lc in value_attrs) or (lc in boolean_attrs):
|
|
1901
|
+
k = lc
|
|
1902
|
+
if k in boolean_attrs:
|
|
1903
|
+
if v is None: v = True
|
|
1904
|
+
standard[k] = v
|
|
1905
|
+
elif k in value_attrs:
|
|
1906
|
+
standard[k] = v
|
|
1907
|
+
else:
|
|
1908
|
+
rest[k] = v
|
|
1909
|
+
|
|
1910
|
+
h = standard.get
|
|
1911
|
+
expires = h("expires")
|
|
1912
|
+
discard = h("discard")
|
|
1913
|
+
if expires is not None:
|
|
1914
|
+
expires = iso2time(expires)
|
|
1915
|
+
if expires is None:
|
|
1916
|
+
discard = True
|
|
1917
|
+
domain = h("domain")
|
|
1918
|
+
domain_specified = domain.startswith(".")
|
|
1919
|
+
c = Cookie(h("version"), name, value,
|
|
1920
|
+
h("port"), h("port_spec"),
|
|
1921
|
+
domain, domain_specified, h("domain_dot"),
|
|
1922
|
+
h("path"), h("path_spec"),
|
|
1923
|
+
h("secure"),
|
|
1924
|
+
expires,
|
|
1925
|
+
discard,
|
|
1926
|
+
h("comment"),
|
|
1927
|
+
h("commenturl"),
|
|
1928
|
+
rest)
|
|
1929
|
+
if not ignore_discard and c.discard:
|
|
1930
|
+
continue
|
|
1931
|
+
if not ignore_expires and c.is_expired(now):
|
|
1932
|
+
continue
|
|
1933
|
+
self.set_cookie(c)
|
|
1934
|
+
except OSError:
|
|
1935
|
+
raise
|
|
1936
|
+
except Exception:
|
|
1937
|
+
_warn_unhandled_exception()
|
|
1938
|
+
raise LoadError("invalid Set-Cookie3 format file %r: %r" %
|
|
1939
|
+
(filename, line))
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
class MozillaCookieJar(FileCookieJar):
|
|
1943
|
+
"""
|
|
1944
|
+
|
|
1945
|
+
WARNING: you may want to backup your browser's cookies file if you use
|
|
1946
|
+
this class to save cookies. I *think* it works, but there have been
|
|
1947
|
+
bugs in the past!
|
|
1948
|
+
|
|
1949
|
+
This class differs from CookieJar only in the format it uses to save and
|
|
1950
|
+
load cookies to and from a file. This class uses the Mozilla/Netscape
|
|
1951
|
+
`cookies.txt' format. lynx uses this file format, too.
|
|
1952
|
+
|
|
1953
|
+
Don't expect cookies saved while the browser is running to be noticed by
|
|
1954
|
+
the browser (in fact, Mozilla on unix will overwrite your saved cookies if
|
|
1955
|
+
you change them on disk while it's running; on Windows, you probably can't
|
|
1956
|
+
save at all while the browser is running).
|
|
1957
|
+
|
|
1958
|
+
Note that the Mozilla/Netscape format will downgrade RFC2965 cookies to
|
|
1959
|
+
Netscape cookies on saving.
|
|
1960
|
+
|
|
1961
|
+
In particular, the cookie version and port number information is lost,
|
|
1962
|
+
together with information about whether or not Path, Port and Discard were
|
|
1963
|
+
specified by the Set-Cookie2 (or Set-Cookie) header, and whether or not the
|
|
1964
|
+
domain as set in the HTTP header started with a dot (yes, I'm aware some
|
|
1965
|
+
domains in Netscape files start with a dot and some don't -- trust me, you
|
|
1966
|
+
really don't want to know any more about this).
|
|
1967
|
+
|
|
1968
|
+
Note that though Mozilla and Netscape use the same format, they use
|
|
1969
|
+
slightly different headers. The class saves cookies using the Netscape
|
|
1970
|
+
header by default (Mozilla can cope with that).
|
|
1971
|
+
|
|
1972
|
+
"""
|
|
1973
|
+
magic_re = re.compile("#( Netscape)? HTTP Cookie File")
|
|
1974
|
+
header = """\
|
|
1975
|
+
# Netscape HTTP Cookie File
|
|
1976
|
+
# http://curl.haxx.se/rfc/cookie_spec.html
|
|
1977
|
+
# This is a generated file! Do not edit.
|
|
1978
|
+
|
|
1979
|
+
"""
|
|
1980
|
+
|
|
1981
|
+
def _really_load(self, f, filename, ignore_discard, ignore_expires):
|
|
1982
|
+
now = time.time()
|
|
1983
|
+
|
|
1984
|
+
magic = f.readline()
|
|
1985
|
+
if not self.magic_re.search(magic):
|
|
1986
|
+
f.close()
|
|
1987
|
+
raise LoadError(
|
|
1988
|
+
"%r does not look like a Netscape format cookies file" %
|
|
1989
|
+
filename)
|
|
1990
|
+
|
|
1991
|
+
try:
|
|
1992
|
+
while 1:
|
|
1993
|
+
line = f.readline()
|
|
1994
|
+
if line == "": break
|
|
1995
|
+
|
|
1996
|
+
# last field may be absent, so keep any trailing tab
|
|
1997
|
+
if line.endswith("\n"): line = line[:-1]
|
|
1998
|
+
|
|
1999
|
+
# skip comments and blank lines XXX what is $ for?
|
|
2000
|
+
if (line.strip().startswith(("#", "$")) or
|
|
2001
|
+
line.strip() == ""):
|
|
2002
|
+
continue
|
|
2003
|
+
|
|
2004
|
+
domain, domain_specified, path, secure, expires, name, value = \
|
|
2005
|
+
line.split("\t")
|
|
2006
|
+
secure = (secure == "TRUE")
|
|
2007
|
+
domain_specified = (domain_specified == "TRUE")
|
|
2008
|
+
if name == "":
|
|
2009
|
+
# cookies.txt regards 'Set-Cookie: foo' as a cookie
|
|
2010
|
+
# with no name, whereas http.cookiejar regards it as a
|
|
2011
|
+
# cookie with no value.
|
|
2012
|
+
name = value
|
|
2013
|
+
value = None
|
|
2014
|
+
|
|
2015
|
+
initial_dot = domain.startswith(".")
|
|
2016
|
+
assert domain_specified == initial_dot
|
|
2017
|
+
|
|
2018
|
+
discard = False
|
|
2019
|
+
if expires == "":
|
|
2020
|
+
expires = None
|
|
2021
|
+
discard = True
|
|
2022
|
+
|
|
2023
|
+
# assume path_specified is false
|
|
2024
|
+
c = Cookie(0, name, value,
|
|
2025
|
+
None, False,
|
|
2026
|
+
domain, domain_specified, initial_dot,
|
|
2027
|
+
path, False,
|
|
2028
|
+
secure,
|
|
2029
|
+
expires,
|
|
2030
|
+
discard,
|
|
2031
|
+
None,
|
|
2032
|
+
None,
|
|
2033
|
+
{})
|
|
2034
|
+
if not ignore_discard and c.discard:
|
|
2035
|
+
continue
|
|
2036
|
+
if not ignore_expires and c.is_expired(now):
|
|
2037
|
+
continue
|
|
2038
|
+
self.set_cookie(c)
|
|
2039
|
+
|
|
2040
|
+
except OSError:
|
|
2041
|
+
raise
|
|
2042
|
+
except Exception:
|
|
2043
|
+
_warn_unhandled_exception()
|
|
2044
|
+
raise LoadError("invalid Netscape format cookies file %r: %r" %
|
|
2045
|
+
(filename, line))
|
|
2046
|
+
|
|
2047
|
+
def save(self, filename=None, ignore_discard=False, ignore_expires=False):
|
|
2048
|
+
if filename is None:
|
|
2049
|
+
if self.filename is not None: filename = self.filename
|
|
2050
|
+
else: raise ValueError(MISSING_FILENAME_TEXT)
|
|
2051
|
+
|
|
2052
|
+
with open(filename, "w") as f:
|
|
2053
|
+
f.write(self.header)
|
|
2054
|
+
now = time.time()
|
|
2055
|
+
for cookie in self:
|
|
2056
|
+
if not ignore_discard and cookie.discard:
|
|
2057
|
+
continue
|
|
2058
|
+
if not ignore_expires and cookie.is_expired(now):
|
|
2059
|
+
continue
|
|
2060
|
+
if cookie.secure: secure = "TRUE"
|
|
2061
|
+
else: secure = "FALSE"
|
|
2062
|
+
if cookie.domain.startswith("."): initial_dot = "TRUE"
|
|
2063
|
+
else: initial_dot = "FALSE"
|
|
2064
|
+
if cookie.expires is not None:
|
|
2065
|
+
expires = str(cookie.expires)
|
|
2066
|
+
else:
|
|
2067
|
+
expires = ""
|
|
2068
|
+
if cookie.value is None:
|
|
2069
|
+
# cookies.txt regards 'Set-Cookie: foo' as a cookie
|
|
2070
|
+
# with no name, whereas http.cookiejar regards it as a
|
|
2071
|
+
# cookie with no value.
|
|
2072
|
+
name = ""
|
|
2073
|
+
value = cookie.name
|
|
2074
|
+
else:
|
|
2075
|
+
name = cookie.name
|
|
2076
|
+
value = cookie.value
|
|
2077
|
+
f.write(
|
|
2078
|
+
"\t".join([cookie.domain, initial_dot, cookie.path,
|
|
2079
|
+
secure, expires, name, value])+
|
|
2080
|
+
"\n")
|