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,2136 @@
|
|
|
1
|
+
"""Concrete date/time and related types.
|
|
2
|
+
|
|
3
|
+
See http://www.iana.org/time-zones/repository/tz-link.html for
|
|
4
|
+
time zone and DST data sources.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import time as _time
|
|
8
|
+
import math as _math
|
|
9
|
+
|
|
10
|
+
def _cmp(x, y):
|
|
11
|
+
return 0 if x == y else 1 if x > y else -1
|
|
12
|
+
|
|
13
|
+
MINYEAR = 1
|
|
14
|
+
MAXYEAR = 9999
|
|
15
|
+
_MAXORDINAL = 3652059 # date.max.toordinal()
|
|
16
|
+
|
|
17
|
+
# Utility functions, adapted from Python's Demo/classes/Dates.py, which
|
|
18
|
+
# also assumes the current Gregorian calendar indefinitely extended in
|
|
19
|
+
# both directions. Difference: Dates.py calls January 1 of year 0 day
|
|
20
|
+
# number 1. The code here calls January 1 of year 1 day number 1. This is
|
|
21
|
+
# to match the definition of the "proleptic Gregorian" calendar in Dershowitz
|
|
22
|
+
# and Reingold's "Calendrical Calculations", where it's the base calendar
|
|
23
|
+
# for all computations. See the book for algorithms for converting between
|
|
24
|
+
# proleptic Gregorian ordinals and many other calendar systems.
|
|
25
|
+
|
|
26
|
+
# -1 is a placeholder for indexing purposes.
|
|
27
|
+
_DAYS_IN_MONTH = [-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
|
28
|
+
|
|
29
|
+
_DAYS_BEFORE_MONTH = [-1] # -1 is a placeholder for indexing purposes.
|
|
30
|
+
dbm = 0
|
|
31
|
+
for dim in _DAYS_IN_MONTH[1:]:
|
|
32
|
+
_DAYS_BEFORE_MONTH.append(dbm)
|
|
33
|
+
dbm += dim
|
|
34
|
+
del dbm, dim
|
|
35
|
+
|
|
36
|
+
def _is_leap(year):
|
|
37
|
+
"year -> 1 if leap year, else 0."
|
|
38
|
+
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
|
|
39
|
+
|
|
40
|
+
def _days_before_year(year):
|
|
41
|
+
"year -> number of days before January 1st of year."
|
|
42
|
+
y = year - 1
|
|
43
|
+
return y*365 + y//4 - y//100 + y//400
|
|
44
|
+
|
|
45
|
+
def _days_in_month(year, month):
|
|
46
|
+
"year, month -> number of days in that month in that year."
|
|
47
|
+
assert 1 <= month <= 12, month
|
|
48
|
+
if month == 2 and _is_leap(year):
|
|
49
|
+
return 29
|
|
50
|
+
return _DAYS_IN_MONTH[month]
|
|
51
|
+
|
|
52
|
+
def _days_before_month(year, month):
|
|
53
|
+
"year, month -> number of days in year preceding first day of month."
|
|
54
|
+
assert 1 <= month <= 12, 'month must be in 1..12'
|
|
55
|
+
return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year))
|
|
56
|
+
|
|
57
|
+
def _ymd2ord(year, month, day):
|
|
58
|
+
"year, month, day -> ordinal, considering 01-Jan-0001 as day 1."
|
|
59
|
+
assert 1 <= month <= 12, 'month must be in 1..12'
|
|
60
|
+
dim = _days_in_month(year, month)
|
|
61
|
+
assert 1 <= day <= dim, ('day must be in 1..%d' % dim)
|
|
62
|
+
return (_days_before_year(year) +
|
|
63
|
+
_days_before_month(year, month) +
|
|
64
|
+
day)
|
|
65
|
+
|
|
66
|
+
_DI400Y = _days_before_year(401) # number of days in 400 years
|
|
67
|
+
_DI100Y = _days_before_year(101) # " " " " 100 "
|
|
68
|
+
_DI4Y = _days_before_year(5) # " " " " 4 "
|
|
69
|
+
|
|
70
|
+
# A 4-year cycle has an extra leap day over what we'd get from pasting
|
|
71
|
+
# together 4 single years.
|
|
72
|
+
assert _DI4Y == 4 * 365 + 1
|
|
73
|
+
|
|
74
|
+
# Similarly, a 400-year cycle has an extra leap day over what we'd get from
|
|
75
|
+
# pasting together 4 100-year cycles.
|
|
76
|
+
assert _DI400Y == 4 * _DI100Y + 1
|
|
77
|
+
|
|
78
|
+
# OTOH, a 100-year cycle has one fewer leap day than we'd get from
|
|
79
|
+
# pasting together 25 4-year cycles.
|
|
80
|
+
assert _DI100Y == 25 * _DI4Y - 1
|
|
81
|
+
|
|
82
|
+
def _ord2ymd(n):
|
|
83
|
+
"ordinal -> (year, month, day), considering 01-Jan-0001 as day 1."
|
|
84
|
+
|
|
85
|
+
# n is a 1-based index, starting at 1-Jan-1. The pattern of leap years
|
|
86
|
+
# repeats exactly every 400 years. The basic strategy is to find the
|
|
87
|
+
# closest 400-year boundary at or before n, then work with the offset
|
|
88
|
+
# from that boundary to n. Life is much clearer if we subtract 1 from
|
|
89
|
+
# n first -- then the values of n at 400-year boundaries are exactly
|
|
90
|
+
# those divisible by _DI400Y:
|
|
91
|
+
#
|
|
92
|
+
# D M Y n n-1
|
|
93
|
+
# -- --- ---- ---------- ----------------
|
|
94
|
+
# 31 Dec -400 -_DI400Y -_DI400Y -1
|
|
95
|
+
# 1 Jan -399 -_DI400Y +1 -_DI400Y 400-year boundary
|
|
96
|
+
# ...
|
|
97
|
+
# 30 Dec 000 -1 -2
|
|
98
|
+
# 31 Dec 000 0 -1
|
|
99
|
+
# 1 Jan 001 1 0 400-year boundary
|
|
100
|
+
# 2 Jan 001 2 1
|
|
101
|
+
# 3 Jan 001 3 2
|
|
102
|
+
# ...
|
|
103
|
+
# 31 Dec 400 _DI400Y _DI400Y -1
|
|
104
|
+
# 1 Jan 401 _DI400Y +1 _DI400Y 400-year boundary
|
|
105
|
+
n -= 1
|
|
106
|
+
n400, n = divmod(n, _DI400Y)
|
|
107
|
+
year = n400 * 400 + 1 # ..., -399, 1, 401, ...
|
|
108
|
+
|
|
109
|
+
# Now n is the (non-negative) offset, in days, from January 1 of year, to
|
|
110
|
+
# the desired date. Now compute how many 100-year cycles precede n.
|
|
111
|
+
# Note that it's possible for n100 to equal 4! In that case 4 full
|
|
112
|
+
# 100-year cycles precede the desired day, which implies the desired
|
|
113
|
+
# day is December 31 at the end of a 400-year cycle.
|
|
114
|
+
n100, n = divmod(n, _DI100Y)
|
|
115
|
+
|
|
116
|
+
# Now compute how many 4-year cycles precede it.
|
|
117
|
+
n4, n = divmod(n, _DI4Y)
|
|
118
|
+
|
|
119
|
+
# And now how many single years. Again n1 can be 4, and again meaning
|
|
120
|
+
# that the desired day is December 31 at the end of the 4-year cycle.
|
|
121
|
+
n1, n = divmod(n, 365)
|
|
122
|
+
|
|
123
|
+
year += n100 * 100 + n4 * 4 + n1
|
|
124
|
+
if n1 == 4 or n100 == 4:
|
|
125
|
+
assert n == 0
|
|
126
|
+
return year-1, 12, 31
|
|
127
|
+
|
|
128
|
+
# Now the year is correct, and n is the offset from January 1. We find
|
|
129
|
+
# the month via an estimate that's either exact or one too large.
|
|
130
|
+
leapyear = n1 == 3 and (n4 != 24 or n100 == 3)
|
|
131
|
+
assert leapyear == _is_leap(year)
|
|
132
|
+
month = (n + 50) >> 5
|
|
133
|
+
preceding = _DAYS_BEFORE_MONTH[month] + (month > 2 and leapyear)
|
|
134
|
+
if preceding > n: # estimate is too large
|
|
135
|
+
month -= 1
|
|
136
|
+
preceding -= _DAYS_IN_MONTH[month] + (month == 2 and leapyear)
|
|
137
|
+
n -= preceding
|
|
138
|
+
assert 0 <= n < _days_in_month(year, month)
|
|
139
|
+
|
|
140
|
+
# Now the year and month are correct, and n is the offset from the
|
|
141
|
+
# start of that month: we're done!
|
|
142
|
+
return year, month, n+1
|
|
143
|
+
|
|
144
|
+
# Month and day names. For localized versions, see the calendar module.
|
|
145
|
+
_MONTHNAMES = [None, "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
|
146
|
+
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
147
|
+
_DAYNAMES = [None, "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def _build_struct_time(y, m, d, hh, mm, ss, dstflag):
|
|
151
|
+
wday = (_ymd2ord(y, m, d) + 6) % 7
|
|
152
|
+
dnum = _days_before_month(y, m) + d
|
|
153
|
+
return _time.struct_time((y, m, d, hh, mm, ss, wday, dnum, dstflag))
|
|
154
|
+
|
|
155
|
+
def _format_time(hh, mm, ss, us):
|
|
156
|
+
# Skip trailing microseconds when us==0.
|
|
157
|
+
result = "%02d:%02d:%02d" % (hh, mm, ss)
|
|
158
|
+
if us:
|
|
159
|
+
result += ".%06d" % us
|
|
160
|
+
return result
|
|
161
|
+
|
|
162
|
+
# Correctly substitute for %z and %Z escapes in strftime formats.
|
|
163
|
+
def _wrap_strftime(object, format, timetuple):
|
|
164
|
+
# Don't call utcoffset() or tzname() unless actually needed.
|
|
165
|
+
freplace = None # the string to use for %f
|
|
166
|
+
zreplace = None # the string to use for %z
|
|
167
|
+
Zreplace = None # the string to use for %Z
|
|
168
|
+
|
|
169
|
+
# Scan format for %z and %Z escapes, replacing as needed.
|
|
170
|
+
newformat = []
|
|
171
|
+
push = newformat.append
|
|
172
|
+
i, n = 0, len(format)
|
|
173
|
+
while i < n:
|
|
174
|
+
ch = format[i]
|
|
175
|
+
i += 1
|
|
176
|
+
if ch == '%':
|
|
177
|
+
if i < n:
|
|
178
|
+
ch = format[i]
|
|
179
|
+
i += 1
|
|
180
|
+
if ch == 'f':
|
|
181
|
+
if freplace is None:
|
|
182
|
+
freplace = '%06d' % getattr(object,
|
|
183
|
+
'microsecond', 0)
|
|
184
|
+
newformat.append(freplace)
|
|
185
|
+
elif ch == 'z':
|
|
186
|
+
if zreplace is None:
|
|
187
|
+
zreplace = ""
|
|
188
|
+
if hasattr(object, "utcoffset"):
|
|
189
|
+
offset = object.utcoffset()
|
|
190
|
+
if offset is not None:
|
|
191
|
+
sign = '+'
|
|
192
|
+
if offset.days < 0:
|
|
193
|
+
offset = -offset
|
|
194
|
+
sign = '-'
|
|
195
|
+
h, m = divmod(offset, timedelta(hours=1))
|
|
196
|
+
assert not m % timedelta(minutes=1), "whole minute"
|
|
197
|
+
m //= timedelta(minutes=1)
|
|
198
|
+
zreplace = '%c%02d%02d' % (sign, h, m)
|
|
199
|
+
assert '%' not in zreplace
|
|
200
|
+
newformat.append(zreplace)
|
|
201
|
+
elif ch == 'Z':
|
|
202
|
+
if Zreplace is None:
|
|
203
|
+
Zreplace = ""
|
|
204
|
+
if hasattr(object, "tzname"):
|
|
205
|
+
s = object.tzname()
|
|
206
|
+
if s is not None:
|
|
207
|
+
# strftime is going to have at this: escape %
|
|
208
|
+
Zreplace = s.replace('%', '%%')
|
|
209
|
+
newformat.append(Zreplace)
|
|
210
|
+
else:
|
|
211
|
+
push('%')
|
|
212
|
+
push(ch)
|
|
213
|
+
else:
|
|
214
|
+
push('%')
|
|
215
|
+
else:
|
|
216
|
+
push(ch)
|
|
217
|
+
newformat = "".join(newformat)
|
|
218
|
+
return _time.strftime(newformat, timetuple)
|
|
219
|
+
|
|
220
|
+
def _call_tzinfo_method(tzinfo, methname, tzinfoarg):
|
|
221
|
+
if tzinfo is None:
|
|
222
|
+
return None
|
|
223
|
+
return getattr(tzinfo, methname)(tzinfoarg)
|
|
224
|
+
|
|
225
|
+
# Just raise TypeError if the arg isn't None or a string.
|
|
226
|
+
def _check_tzname(name):
|
|
227
|
+
if name is not None and not isinstance(name, str):
|
|
228
|
+
raise TypeError("tzinfo.tzname() must return None or string, "
|
|
229
|
+
"not '%s'" % type(name))
|
|
230
|
+
|
|
231
|
+
# name is the offset-producing method, "utcoffset" or "dst".
|
|
232
|
+
# offset is what it returned.
|
|
233
|
+
# If offset isn't None or timedelta, raises TypeError.
|
|
234
|
+
# If offset is None, returns None.
|
|
235
|
+
# Else offset is checked for being in range, and a whole # of minutes.
|
|
236
|
+
# If it is, its integer value is returned. Else ValueError is raised.
|
|
237
|
+
def _check_utc_offset(name, offset):
|
|
238
|
+
assert name in ("utcoffset", "dst")
|
|
239
|
+
if offset is None:
|
|
240
|
+
return
|
|
241
|
+
if not isinstance(offset, timedelta):
|
|
242
|
+
raise TypeError("tzinfo.%s() must return None "
|
|
243
|
+
"or timedelta, not '%s'" % (name, type(offset)))
|
|
244
|
+
if offset % timedelta(minutes=1) or offset.microseconds:
|
|
245
|
+
raise ValueError("tzinfo.%s() must return a whole number "
|
|
246
|
+
"of minutes, got %s" % (name, offset))
|
|
247
|
+
if not -timedelta(1) < offset < timedelta(1):
|
|
248
|
+
raise ValueError("%s()=%s, must be must be strictly between"
|
|
249
|
+
" -timedelta(hours=24) and timedelta(hours=24)"
|
|
250
|
+
% (name, offset))
|
|
251
|
+
|
|
252
|
+
def _check_date_fields(year, month, day):
|
|
253
|
+
if not isinstance(year, int):
|
|
254
|
+
raise TypeError('int expected')
|
|
255
|
+
if not MINYEAR <= year <= MAXYEAR:
|
|
256
|
+
raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
|
|
257
|
+
if not 1 <= month <= 12:
|
|
258
|
+
raise ValueError('month must be in 1..12', month)
|
|
259
|
+
dim = _days_in_month(year, month)
|
|
260
|
+
if not 1 <= day <= dim:
|
|
261
|
+
raise ValueError('day must be in 1..%d' % dim, day)
|
|
262
|
+
|
|
263
|
+
def _check_time_fields(hour, minute, second, microsecond):
|
|
264
|
+
if not isinstance(hour, int):
|
|
265
|
+
raise TypeError('int expected')
|
|
266
|
+
if not 0 <= hour <= 23:
|
|
267
|
+
raise ValueError('hour must be in 0..23', hour)
|
|
268
|
+
if not 0 <= minute <= 59:
|
|
269
|
+
raise ValueError('minute must be in 0..59', minute)
|
|
270
|
+
if not 0 <= second <= 59:
|
|
271
|
+
raise ValueError('second must be in 0..59', second)
|
|
272
|
+
if not 0 <= microsecond <= 999999:
|
|
273
|
+
raise ValueError('microsecond must be in 0..999999', microsecond)
|
|
274
|
+
|
|
275
|
+
def _check_tzinfo_arg(tz):
|
|
276
|
+
if tz is not None and not isinstance(tz, tzinfo):
|
|
277
|
+
raise TypeError("tzinfo argument must be None or of a tzinfo subclass")
|
|
278
|
+
|
|
279
|
+
def _cmperror(x, y):
|
|
280
|
+
raise TypeError("can't compare '%s' to '%s'" % (
|
|
281
|
+
type(x).__name__, type(y).__name__))
|
|
282
|
+
|
|
283
|
+
class timedelta:
|
|
284
|
+
"""Represent the difference between two datetime objects.
|
|
285
|
+
|
|
286
|
+
Supported operators:
|
|
287
|
+
|
|
288
|
+
- add, subtract timedelta
|
|
289
|
+
- unary plus, minus, abs
|
|
290
|
+
- compare to timedelta
|
|
291
|
+
- multiply, divide by int
|
|
292
|
+
|
|
293
|
+
In addition, datetime supports subtraction of two datetime objects
|
|
294
|
+
returning a timedelta, and addition or subtraction of a datetime
|
|
295
|
+
and a timedelta giving a datetime.
|
|
296
|
+
|
|
297
|
+
Representation: (days, seconds, microseconds). Why? Because I
|
|
298
|
+
felt like it.
|
|
299
|
+
"""
|
|
300
|
+
__slots__ = '_days', '_seconds', '_microseconds'
|
|
301
|
+
|
|
302
|
+
def __new__(cls, days=0, seconds=0, microseconds=0,
|
|
303
|
+
milliseconds=0, minutes=0, hours=0, weeks=0):
|
|
304
|
+
# Doing this efficiently and accurately in C is going to be difficult
|
|
305
|
+
# and error-prone, due to ubiquitous overflow possibilities, and that
|
|
306
|
+
# C double doesn't have enough bits of precision to represent
|
|
307
|
+
# microseconds over 10K years faithfully. The code here tries to make
|
|
308
|
+
# explicit where go-fast assumptions can be relied on, in order to
|
|
309
|
+
# guide the C implementation; it's way more convoluted than speed-
|
|
310
|
+
# ignoring auto-overflow-to-long idiomatic Python could be.
|
|
311
|
+
|
|
312
|
+
# XXX Check that all inputs are ints or floats.
|
|
313
|
+
|
|
314
|
+
# Final values, all integer.
|
|
315
|
+
# s and us fit in 32-bit signed ints; d isn't bounded.
|
|
316
|
+
d = s = us = 0
|
|
317
|
+
|
|
318
|
+
# Normalize everything to days, seconds, microseconds.
|
|
319
|
+
days += weeks*7
|
|
320
|
+
seconds += minutes*60 + hours*3600
|
|
321
|
+
microseconds += milliseconds*1000
|
|
322
|
+
|
|
323
|
+
# Get rid of all fractions, and normalize s and us.
|
|
324
|
+
# Take a deep breath <wink>.
|
|
325
|
+
if isinstance(days, float):
|
|
326
|
+
dayfrac, days = _math.modf(days)
|
|
327
|
+
daysecondsfrac, daysecondswhole = _math.modf(dayfrac * (24.*3600.))
|
|
328
|
+
assert daysecondswhole == int(daysecondswhole) # can't overflow
|
|
329
|
+
s = int(daysecondswhole)
|
|
330
|
+
assert days == int(days)
|
|
331
|
+
d = int(days)
|
|
332
|
+
else:
|
|
333
|
+
daysecondsfrac = 0.0
|
|
334
|
+
d = days
|
|
335
|
+
assert isinstance(daysecondsfrac, float)
|
|
336
|
+
assert abs(daysecondsfrac) <= 1.0
|
|
337
|
+
assert isinstance(d, int)
|
|
338
|
+
assert abs(s) <= 24 * 3600
|
|
339
|
+
# days isn't referenced again before redefinition
|
|
340
|
+
|
|
341
|
+
if isinstance(seconds, float):
|
|
342
|
+
secondsfrac, seconds = _math.modf(seconds)
|
|
343
|
+
assert seconds == int(seconds)
|
|
344
|
+
seconds = int(seconds)
|
|
345
|
+
secondsfrac += daysecondsfrac
|
|
346
|
+
assert abs(secondsfrac) <= 2.0
|
|
347
|
+
else:
|
|
348
|
+
secondsfrac = daysecondsfrac
|
|
349
|
+
# daysecondsfrac isn't referenced again
|
|
350
|
+
assert isinstance(secondsfrac, float)
|
|
351
|
+
assert abs(secondsfrac) <= 2.0
|
|
352
|
+
|
|
353
|
+
assert isinstance(seconds, int)
|
|
354
|
+
days, seconds = divmod(seconds, 24*3600)
|
|
355
|
+
d += days
|
|
356
|
+
s += int(seconds) # can't overflow
|
|
357
|
+
assert isinstance(s, int)
|
|
358
|
+
assert abs(s) <= 2 * 24 * 3600
|
|
359
|
+
# seconds isn't referenced again before redefinition
|
|
360
|
+
|
|
361
|
+
usdouble = secondsfrac * 1e6
|
|
362
|
+
assert abs(usdouble) < 2.1e6 # exact value not critical
|
|
363
|
+
# secondsfrac isn't referenced again
|
|
364
|
+
|
|
365
|
+
if isinstance(microseconds, float):
|
|
366
|
+
microseconds += usdouble
|
|
367
|
+
microseconds = round(microseconds, 0)
|
|
368
|
+
seconds, microseconds = divmod(microseconds, 1e6)
|
|
369
|
+
assert microseconds == int(microseconds)
|
|
370
|
+
assert seconds == int(seconds)
|
|
371
|
+
days, seconds = divmod(seconds, 24.*3600.)
|
|
372
|
+
assert days == int(days)
|
|
373
|
+
assert seconds == int(seconds)
|
|
374
|
+
d += int(days)
|
|
375
|
+
s += int(seconds) # can't overflow
|
|
376
|
+
assert isinstance(s, int)
|
|
377
|
+
assert abs(s) <= 3 * 24 * 3600
|
|
378
|
+
else:
|
|
379
|
+
seconds, microseconds = divmod(microseconds, 1000000)
|
|
380
|
+
days, seconds = divmod(seconds, 24*3600)
|
|
381
|
+
d += days
|
|
382
|
+
s += int(seconds) # can't overflow
|
|
383
|
+
assert isinstance(s, int)
|
|
384
|
+
assert abs(s) <= 3 * 24 * 3600
|
|
385
|
+
microseconds = float(microseconds)
|
|
386
|
+
microseconds += usdouble
|
|
387
|
+
microseconds = round(microseconds, 0)
|
|
388
|
+
assert abs(s) <= 3 * 24 * 3600
|
|
389
|
+
assert abs(microseconds) < 3.1e6
|
|
390
|
+
|
|
391
|
+
# Just a little bit of carrying possible for microseconds and seconds.
|
|
392
|
+
assert isinstance(microseconds, float)
|
|
393
|
+
assert int(microseconds) == microseconds
|
|
394
|
+
us = int(microseconds)
|
|
395
|
+
seconds, us = divmod(us, 1000000)
|
|
396
|
+
s += seconds # cant't overflow
|
|
397
|
+
assert isinstance(s, int)
|
|
398
|
+
days, s = divmod(s, 24*3600)
|
|
399
|
+
d += days
|
|
400
|
+
|
|
401
|
+
assert isinstance(d, int)
|
|
402
|
+
assert isinstance(s, int) and 0 <= s < 24*3600
|
|
403
|
+
assert isinstance(us, int) and 0 <= us < 1000000
|
|
404
|
+
|
|
405
|
+
self = object.__new__(cls)
|
|
406
|
+
|
|
407
|
+
self._days = d
|
|
408
|
+
self._seconds = s
|
|
409
|
+
self._microseconds = us
|
|
410
|
+
if abs(d) > 999999999:
|
|
411
|
+
raise OverflowError("timedelta # of days is too large: %d" % d)
|
|
412
|
+
|
|
413
|
+
return self
|
|
414
|
+
|
|
415
|
+
def __repr__(self):
|
|
416
|
+
if self._microseconds:
|
|
417
|
+
return "%s(%d, %d, %d)" % ('datetime.' + self.__class__.__name__,
|
|
418
|
+
self._days,
|
|
419
|
+
self._seconds,
|
|
420
|
+
self._microseconds)
|
|
421
|
+
if self._seconds:
|
|
422
|
+
return "%s(%d, %d)" % ('datetime.' + self.__class__.__name__,
|
|
423
|
+
self._days,
|
|
424
|
+
self._seconds)
|
|
425
|
+
return "%s(%d)" % ('datetime.' + self.__class__.__name__, self._days)
|
|
426
|
+
|
|
427
|
+
def __str__(self):
|
|
428
|
+
mm, ss = divmod(self._seconds, 60)
|
|
429
|
+
hh, mm = divmod(mm, 60)
|
|
430
|
+
s = "%d:%02d:%02d" % (hh, mm, ss)
|
|
431
|
+
if self._days:
|
|
432
|
+
def plural(n):
|
|
433
|
+
return n, abs(n) != 1 and "s" or ""
|
|
434
|
+
s = ("%d day%s, " % plural(self._days)) + s
|
|
435
|
+
if self._microseconds:
|
|
436
|
+
s = s + ".%06d" % self._microseconds
|
|
437
|
+
return s
|
|
438
|
+
|
|
439
|
+
def total_seconds(self):
|
|
440
|
+
"""Total seconds in the duration."""
|
|
441
|
+
return ((self.days * 86400 + self.seconds)*10**6 +
|
|
442
|
+
self.microseconds) / 10**6
|
|
443
|
+
|
|
444
|
+
# Read-only field accessors
|
|
445
|
+
@property
|
|
446
|
+
def days(self):
|
|
447
|
+
"""days"""
|
|
448
|
+
return self._days
|
|
449
|
+
|
|
450
|
+
@property
|
|
451
|
+
def seconds(self):
|
|
452
|
+
"""seconds"""
|
|
453
|
+
return self._seconds
|
|
454
|
+
|
|
455
|
+
@property
|
|
456
|
+
def microseconds(self):
|
|
457
|
+
"""microseconds"""
|
|
458
|
+
return self._microseconds
|
|
459
|
+
|
|
460
|
+
def __add__(self, other):
|
|
461
|
+
if isinstance(other, timedelta):
|
|
462
|
+
# for CPython compatibility, we cannot use
|
|
463
|
+
# our __class__ here, but need a real timedelta
|
|
464
|
+
return timedelta(self._days + other._days,
|
|
465
|
+
self._seconds + other._seconds,
|
|
466
|
+
self._microseconds + other._microseconds)
|
|
467
|
+
return NotImplemented
|
|
468
|
+
|
|
469
|
+
__radd__ = __add__
|
|
470
|
+
|
|
471
|
+
def __sub__(self, other):
|
|
472
|
+
if isinstance(other, timedelta):
|
|
473
|
+
# for CPython compatibility, we cannot use
|
|
474
|
+
# our __class__ here, but need a real timedelta
|
|
475
|
+
return timedelta(self._days - other._days,
|
|
476
|
+
self._seconds - other._seconds,
|
|
477
|
+
self._microseconds - other._microseconds)
|
|
478
|
+
return NotImplemented
|
|
479
|
+
|
|
480
|
+
def __rsub__(self, other):
|
|
481
|
+
if isinstance(other, timedelta):
|
|
482
|
+
return -self + other
|
|
483
|
+
return NotImplemented
|
|
484
|
+
|
|
485
|
+
def __neg__(self):
|
|
486
|
+
# for CPython compatibility, we cannot use
|
|
487
|
+
# our __class__ here, but need a real timedelta
|
|
488
|
+
return timedelta(-self._days,
|
|
489
|
+
-self._seconds,
|
|
490
|
+
-self._microseconds)
|
|
491
|
+
|
|
492
|
+
def __pos__(self):
|
|
493
|
+
return self
|
|
494
|
+
|
|
495
|
+
def __abs__(self):
|
|
496
|
+
if self._days < 0:
|
|
497
|
+
return -self
|
|
498
|
+
else:
|
|
499
|
+
return self
|
|
500
|
+
|
|
501
|
+
def __mul__(self, other):
|
|
502
|
+
if isinstance(other, int):
|
|
503
|
+
# for CPython compatibility, we cannot use
|
|
504
|
+
# our __class__ here, but need a real timedelta
|
|
505
|
+
return timedelta(self._days * other,
|
|
506
|
+
self._seconds * other,
|
|
507
|
+
self._microseconds * other)
|
|
508
|
+
if isinstance(other, float):
|
|
509
|
+
a, b = other.as_integer_ratio()
|
|
510
|
+
return self * a / b
|
|
511
|
+
return NotImplemented
|
|
512
|
+
|
|
513
|
+
__rmul__ = __mul__
|
|
514
|
+
|
|
515
|
+
def _to_microseconds(self):
|
|
516
|
+
return ((self._days * (24*3600) + self._seconds) * 1000000 +
|
|
517
|
+
self._microseconds)
|
|
518
|
+
|
|
519
|
+
def __floordiv__(self, other):
|
|
520
|
+
if not isinstance(other, (int, timedelta)):
|
|
521
|
+
return NotImplemented
|
|
522
|
+
usec = self._to_microseconds()
|
|
523
|
+
if isinstance(other, timedelta):
|
|
524
|
+
return usec // other._to_microseconds()
|
|
525
|
+
if isinstance(other, int):
|
|
526
|
+
return timedelta(0, 0, usec // other)
|
|
527
|
+
|
|
528
|
+
def __truediv__(self, other):
|
|
529
|
+
if not isinstance(other, (int, float, timedelta)):
|
|
530
|
+
return NotImplemented
|
|
531
|
+
usec = self._to_microseconds()
|
|
532
|
+
if isinstance(other, timedelta):
|
|
533
|
+
return usec / other._to_microseconds()
|
|
534
|
+
if isinstance(other, int):
|
|
535
|
+
return timedelta(0, 0, usec / other)
|
|
536
|
+
if isinstance(other, float):
|
|
537
|
+
a, b = other.as_integer_ratio()
|
|
538
|
+
return timedelta(0, 0, b * usec / a)
|
|
539
|
+
|
|
540
|
+
def __mod__(self, other):
|
|
541
|
+
if isinstance(other, timedelta):
|
|
542
|
+
r = self._to_microseconds() % other._to_microseconds()
|
|
543
|
+
return timedelta(0, 0, r)
|
|
544
|
+
return NotImplemented
|
|
545
|
+
|
|
546
|
+
def __divmod__(self, other):
|
|
547
|
+
if isinstance(other, timedelta):
|
|
548
|
+
q, r = divmod(self._to_microseconds(),
|
|
549
|
+
other._to_microseconds())
|
|
550
|
+
return q, timedelta(0, 0, r)
|
|
551
|
+
return NotImplemented
|
|
552
|
+
|
|
553
|
+
# Comparisons of timedelta objects with other.
|
|
554
|
+
|
|
555
|
+
def __eq__(self, other):
|
|
556
|
+
if isinstance(other, timedelta):
|
|
557
|
+
return self._cmp(other) == 0
|
|
558
|
+
else:
|
|
559
|
+
return False
|
|
560
|
+
|
|
561
|
+
def __ne__(self, other):
|
|
562
|
+
if isinstance(other, timedelta):
|
|
563
|
+
return self._cmp(other) != 0
|
|
564
|
+
else:
|
|
565
|
+
return True
|
|
566
|
+
|
|
567
|
+
def __le__(self, other):
|
|
568
|
+
if isinstance(other, timedelta):
|
|
569
|
+
return self._cmp(other) <= 0
|
|
570
|
+
else:
|
|
571
|
+
_cmperror(self, other)
|
|
572
|
+
|
|
573
|
+
def __lt__(self, other):
|
|
574
|
+
if isinstance(other, timedelta):
|
|
575
|
+
return self._cmp(other) < 0
|
|
576
|
+
else:
|
|
577
|
+
_cmperror(self, other)
|
|
578
|
+
|
|
579
|
+
def __ge__(self, other):
|
|
580
|
+
if isinstance(other, timedelta):
|
|
581
|
+
return self._cmp(other) >= 0
|
|
582
|
+
else:
|
|
583
|
+
_cmperror(self, other)
|
|
584
|
+
|
|
585
|
+
def __gt__(self, other):
|
|
586
|
+
if isinstance(other, timedelta):
|
|
587
|
+
return self._cmp(other) > 0
|
|
588
|
+
else:
|
|
589
|
+
_cmperror(self, other)
|
|
590
|
+
|
|
591
|
+
def _cmp(self, other):
|
|
592
|
+
assert isinstance(other, timedelta)
|
|
593
|
+
return _cmp(self._getstate(), other._getstate())
|
|
594
|
+
|
|
595
|
+
def __hash__(self):
|
|
596
|
+
return hash(self._getstate())
|
|
597
|
+
|
|
598
|
+
def __bool__(self):
|
|
599
|
+
return (self._days != 0 or
|
|
600
|
+
self._seconds != 0 or
|
|
601
|
+
self._microseconds != 0)
|
|
602
|
+
|
|
603
|
+
# Pickle support.
|
|
604
|
+
|
|
605
|
+
def _getstate(self):
|
|
606
|
+
return (self._days, self._seconds, self._microseconds)
|
|
607
|
+
|
|
608
|
+
def __reduce__(self):
|
|
609
|
+
return (self.__class__, self._getstate())
|
|
610
|
+
|
|
611
|
+
timedelta.min = timedelta(-999999999)
|
|
612
|
+
timedelta.max = timedelta(days=999999999, hours=23, minutes=59, seconds=59,
|
|
613
|
+
microseconds=999999)
|
|
614
|
+
timedelta.resolution = timedelta(microseconds=1)
|
|
615
|
+
|
|
616
|
+
class date:
|
|
617
|
+
"""Concrete date type.
|
|
618
|
+
|
|
619
|
+
Constructors:
|
|
620
|
+
|
|
621
|
+
__new__()
|
|
622
|
+
fromtimestamp()
|
|
623
|
+
today()
|
|
624
|
+
fromordinal()
|
|
625
|
+
|
|
626
|
+
Operators:
|
|
627
|
+
|
|
628
|
+
__repr__, __str__
|
|
629
|
+
__cmp__, __hash__
|
|
630
|
+
__add__, __radd__, __sub__ (add/radd only with timedelta arg)
|
|
631
|
+
|
|
632
|
+
Methods:
|
|
633
|
+
|
|
634
|
+
timetuple()
|
|
635
|
+
toordinal()
|
|
636
|
+
weekday()
|
|
637
|
+
isoweekday(), isocalendar(), isoformat()
|
|
638
|
+
ctime()
|
|
639
|
+
strftime()
|
|
640
|
+
|
|
641
|
+
Properties (readonly):
|
|
642
|
+
year, month, day
|
|
643
|
+
"""
|
|
644
|
+
__slots__ = '_year', '_month', '_day'
|
|
645
|
+
|
|
646
|
+
def __new__(cls, year, month=None, day=None):
|
|
647
|
+
"""Constructor.
|
|
648
|
+
|
|
649
|
+
Arguments:
|
|
650
|
+
|
|
651
|
+
year, month, day (required, base 1)
|
|
652
|
+
"""
|
|
653
|
+
if (isinstance(year, bytes) and len(year) == 4 and
|
|
654
|
+
1 <= year[2] <= 12 and month is None): # Month is sane
|
|
655
|
+
# Pickle support
|
|
656
|
+
self = object.__new__(cls)
|
|
657
|
+
self.__setstate(year)
|
|
658
|
+
return self
|
|
659
|
+
_check_date_fields(year, month, day)
|
|
660
|
+
self = object.__new__(cls)
|
|
661
|
+
self._year = year
|
|
662
|
+
self._month = month
|
|
663
|
+
self._day = day
|
|
664
|
+
return self
|
|
665
|
+
|
|
666
|
+
# Additional constructors
|
|
667
|
+
|
|
668
|
+
@classmethod
|
|
669
|
+
def fromtimestamp(cls, t):
|
|
670
|
+
"Construct a date from a POSIX timestamp (like time.time())."
|
|
671
|
+
y, m, d, hh, mm, ss, weekday, jday, dst = _time.localtime(t)
|
|
672
|
+
return cls(y, m, d)
|
|
673
|
+
|
|
674
|
+
@classmethod
|
|
675
|
+
def today(cls):
|
|
676
|
+
"Construct a date from time.time()."
|
|
677
|
+
t = _time.time()
|
|
678
|
+
return cls.fromtimestamp(t)
|
|
679
|
+
|
|
680
|
+
@classmethod
|
|
681
|
+
def fromordinal(cls, n):
|
|
682
|
+
"""Contruct a date from a proleptic Gregorian ordinal.
|
|
683
|
+
|
|
684
|
+
January 1 of year 1 is day 1. Only the year, month and day are
|
|
685
|
+
non-zero in the result.
|
|
686
|
+
"""
|
|
687
|
+
y, m, d = _ord2ymd(n)
|
|
688
|
+
return cls(y, m, d)
|
|
689
|
+
|
|
690
|
+
# Conversions to string
|
|
691
|
+
|
|
692
|
+
def __repr__(self):
|
|
693
|
+
"""Convert to formal string, for repr().
|
|
694
|
+
|
|
695
|
+
>>> dt = datetime(2010, 1, 1)
|
|
696
|
+
>>> repr(dt)
|
|
697
|
+
'datetime.datetime(2010, 1, 1, 0, 0)'
|
|
698
|
+
|
|
699
|
+
>>> dt = datetime(2010, 1, 1, tzinfo=timezone.utc)
|
|
700
|
+
>>> repr(dt)
|
|
701
|
+
'datetime.datetime(2010, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)'
|
|
702
|
+
"""
|
|
703
|
+
return "%s(%d, %d, %d)" % ('datetime.' + self.__class__.__name__,
|
|
704
|
+
self._year,
|
|
705
|
+
self._month,
|
|
706
|
+
self._day)
|
|
707
|
+
# XXX These shouldn't depend on time.localtime(), because that
|
|
708
|
+
# clips the usable dates to [1970 .. 2038). At least ctime() is
|
|
709
|
+
# easily done without using strftime() -- that's better too because
|
|
710
|
+
# strftime("%c", ...) is locale specific.
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
def ctime(self):
|
|
714
|
+
"Return ctime() style string."
|
|
715
|
+
weekday = self.toordinal() % 7 or 7
|
|
716
|
+
return "%s %s %2d 00:00:00 %04d" % (
|
|
717
|
+
_DAYNAMES[weekday],
|
|
718
|
+
_MONTHNAMES[self._month],
|
|
719
|
+
self._day, self._year)
|
|
720
|
+
|
|
721
|
+
def strftime(self, fmt):
|
|
722
|
+
"Format using strftime()."
|
|
723
|
+
return _wrap_strftime(self, fmt, self.timetuple())
|
|
724
|
+
|
|
725
|
+
def __format__(self, fmt):
|
|
726
|
+
if len(fmt) != 0:
|
|
727
|
+
return self.strftime(fmt)
|
|
728
|
+
return str(self)
|
|
729
|
+
|
|
730
|
+
def isoformat(self):
|
|
731
|
+
"""Return the date formatted according to ISO.
|
|
732
|
+
|
|
733
|
+
This is 'YYYY-MM-DD'.
|
|
734
|
+
|
|
735
|
+
References:
|
|
736
|
+
- http://www.w3.org/TR/NOTE-datetime
|
|
737
|
+
- http://www.cl.cam.ac.uk/~mgk25/iso-time.html
|
|
738
|
+
"""
|
|
739
|
+
return "%04d-%02d-%02d" % (self._year, self._month, self._day)
|
|
740
|
+
|
|
741
|
+
__str__ = isoformat
|
|
742
|
+
|
|
743
|
+
# Read-only field accessors
|
|
744
|
+
@property
|
|
745
|
+
def year(self):
|
|
746
|
+
"""year (1-9999)"""
|
|
747
|
+
return self._year
|
|
748
|
+
|
|
749
|
+
@property
|
|
750
|
+
def month(self):
|
|
751
|
+
"""month (1-12)"""
|
|
752
|
+
return self._month
|
|
753
|
+
|
|
754
|
+
@property
|
|
755
|
+
def day(self):
|
|
756
|
+
"""day (1-31)"""
|
|
757
|
+
return self._day
|
|
758
|
+
|
|
759
|
+
# Standard conversions, __cmp__, __hash__ (and helpers)
|
|
760
|
+
|
|
761
|
+
def timetuple(self):
|
|
762
|
+
"Return local time tuple compatible with time.localtime()."
|
|
763
|
+
return _build_struct_time(self._year, self._month, self._day,
|
|
764
|
+
0, 0, 0, -1)
|
|
765
|
+
|
|
766
|
+
def toordinal(self):
|
|
767
|
+
"""Return proleptic Gregorian ordinal for the year, month and day.
|
|
768
|
+
|
|
769
|
+
January 1 of year 1 is day 1. Only the year, month and day values
|
|
770
|
+
contribute to the result.
|
|
771
|
+
"""
|
|
772
|
+
return _ymd2ord(self._year, self._month, self._day)
|
|
773
|
+
|
|
774
|
+
def replace(self, year=None, month=None, day=None):
|
|
775
|
+
"""Return a new date with new values for the specified fields."""
|
|
776
|
+
if year is None:
|
|
777
|
+
year = self._year
|
|
778
|
+
if month is None:
|
|
779
|
+
month = self._month
|
|
780
|
+
if day is None:
|
|
781
|
+
day = self._day
|
|
782
|
+
_check_date_fields(year, month, day)
|
|
783
|
+
return date(year, month, day)
|
|
784
|
+
|
|
785
|
+
# Comparisons of date objects with other.
|
|
786
|
+
|
|
787
|
+
def __eq__(self, other):
|
|
788
|
+
if isinstance(other, date):
|
|
789
|
+
return self._cmp(other) == 0
|
|
790
|
+
return NotImplemented
|
|
791
|
+
|
|
792
|
+
def __ne__(self, other):
|
|
793
|
+
if isinstance(other, date):
|
|
794
|
+
return self._cmp(other) != 0
|
|
795
|
+
return NotImplemented
|
|
796
|
+
|
|
797
|
+
def __le__(self, other):
|
|
798
|
+
if isinstance(other, date):
|
|
799
|
+
return self._cmp(other) <= 0
|
|
800
|
+
return NotImplemented
|
|
801
|
+
|
|
802
|
+
def __lt__(self, other):
|
|
803
|
+
if isinstance(other, date):
|
|
804
|
+
return self._cmp(other) < 0
|
|
805
|
+
return NotImplemented
|
|
806
|
+
|
|
807
|
+
def __ge__(self, other):
|
|
808
|
+
if isinstance(other, date):
|
|
809
|
+
return self._cmp(other) >= 0
|
|
810
|
+
return NotImplemented
|
|
811
|
+
|
|
812
|
+
def __gt__(self, other):
|
|
813
|
+
if isinstance(other, date):
|
|
814
|
+
return self._cmp(other) > 0
|
|
815
|
+
return NotImplemented
|
|
816
|
+
|
|
817
|
+
def _cmp(self, other):
|
|
818
|
+
assert isinstance(other, date)
|
|
819
|
+
y, m, d = self._year, self._month, self._day
|
|
820
|
+
y2, m2, d2 = other._year, other._month, other._day
|
|
821
|
+
return _cmp((y, m, d), (y2, m2, d2))
|
|
822
|
+
|
|
823
|
+
def __hash__(self):
|
|
824
|
+
"Hash."
|
|
825
|
+
return hash(self._getstate())
|
|
826
|
+
|
|
827
|
+
# Computations
|
|
828
|
+
|
|
829
|
+
def __add__(self, other):
|
|
830
|
+
"Add a date to a timedelta."
|
|
831
|
+
if isinstance(other, timedelta):
|
|
832
|
+
o = self.toordinal() + other.days
|
|
833
|
+
if 0 < o <= _MAXORDINAL:
|
|
834
|
+
return date.fromordinal(o)
|
|
835
|
+
raise OverflowError("result out of range")
|
|
836
|
+
return NotImplemented
|
|
837
|
+
|
|
838
|
+
__radd__ = __add__
|
|
839
|
+
|
|
840
|
+
def __sub__(self, other):
|
|
841
|
+
"""Subtract two dates, or a date and a timedelta."""
|
|
842
|
+
if isinstance(other, timedelta):
|
|
843
|
+
return self + timedelta(-other.days)
|
|
844
|
+
if isinstance(other, date):
|
|
845
|
+
days1 = self.toordinal()
|
|
846
|
+
days2 = other.toordinal()
|
|
847
|
+
return timedelta(days1 - days2)
|
|
848
|
+
return NotImplemented
|
|
849
|
+
|
|
850
|
+
def weekday(self):
|
|
851
|
+
"Return day of the week, where Monday == 0 ... Sunday == 6."
|
|
852
|
+
return (self.toordinal() + 6) % 7
|
|
853
|
+
|
|
854
|
+
# Day-of-the-week and week-of-the-year, according to ISO
|
|
855
|
+
|
|
856
|
+
def isoweekday(self):
|
|
857
|
+
"Return day of the week, where Monday == 1 ... Sunday == 7."
|
|
858
|
+
# 1-Jan-0001 is a Monday
|
|
859
|
+
return self.toordinal() % 7 or 7
|
|
860
|
+
|
|
861
|
+
def isocalendar(self):
|
|
862
|
+
"""Return a 3-tuple containing ISO year, week number, and weekday.
|
|
863
|
+
|
|
864
|
+
The first ISO week of the year is the (Mon-Sun) week
|
|
865
|
+
containing the year's first Thursday; everything else derives
|
|
866
|
+
from that.
|
|
867
|
+
|
|
868
|
+
The first week is 1; Monday is 1 ... Sunday is 7.
|
|
869
|
+
|
|
870
|
+
ISO calendar algorithm taken from
|
|
871
|
+
http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm
|
|
872
|
+
"""
|
|
873
|
+
year = self._year
|
|
874
|
+
week1monday = _isoweek1monday(year)
|
|
875
|
+
today = _ymd2ord(self._year, self._month, self._day)
|
|
876
|
+
# Internally, week and day have origin 0
|
|
877
|
+
week, day = divmod(today - week1monday, 7)
|
|
878
|
+
if week < 0:
|
|
879
|
+
year -= 1
|
|
880
|
+
week1monday = _isoweek1monday(year)
|
|
881
|
+
week, day = divmod(today - week1monday, 7)
|
|
882
|
+
elif week >= 52:
|
|
883
|
+
if today >= _isoweek1monday(year+1):
|
|
884
|
+
year += 1
|
|
885
|
+
week = 0
|
|
886
|
+
return year, week+1, day+1
|
|
887
|
+
|
|
888
|
+
# Pickle support.
|
|
889
|
+
|
|
890
|
+
def _getstate(self):
|
|
891
|
+
yhi, ylo = divmod(self._year, 256)
|
|
892
|
+
return bytes([yhi, ylo, self._month, self._day]),
|
|
893
|
+
|
|
894
|
+
def __setstate(self, string):
|
|
895
|
+
if len(string) != 4 or not (1 <= string[2] <= 12):
|
|
896
|
+
raise TypeError("not enough arguments")
|
|
897
|
+
yhi, ylo, self._month, self._day = string
|
|
898
|
+
self._year = yhi * 256 + ylo
|
|
899
|
+
|
|
900
|
+
def __reduce__(self):
|
|
901
|
+
return (self.__class__, self._getstate())
|
|
902
|
+
|
|
903
|
+
_date_class = date # so functions w/ args named "date" can get at the class
|
|
904
|
+
|
|
905
|
+
date.min = date(1, 1, 1)
|
|
906
|
+
date.max = date(9999, 12, 31)
|
|
907
|
+
date.resolution = timedelta(days=1)
|
|
908
|
+
|
|
909
|
+
class tzinfo:
|
|
910
|
+
"""Abstract base class for time zone info classes.
|
|
911
|
+
|
|
912
|
+
Subclasses must override the name(), utcoffset() and dst() methods.
|
|
913
|
+
"""
|
|
914
|
+
__slots__ = ()
|
|
915
|
+
def tzname(self, dt):
|
|
916
|
+
"datetime -> string name of time zone."
|
|
917
|
+
raise NotImplementedError("tzinfo subclass must override tzname()")
|
|
918
|
+
|
|
919
|
+
def utcoffset(self, dt):
|
|
920
|
+
"datetime -> minutes east of UTC (negative for west of UTC)"
|
|
921
|
+
raise NotImplementedError("tzinfo subclass must override utcoffset()")
|
|
922
|
+
|
|
923
|
+
def dst(self, dt):
|
|
924
|
+
"""datetime -> DST offset in minutes east of UTC.
|
|
925
|
+
|
|
926
|
+
Return 0 if DST not in effect. utcoffset() must include the DST
|
|
927
|
+
offset.
|
|
928
|
+
"""
|
|
929
|
+
raise NotImplementedError("tzinfo subclass must override dst()")
|
|
930
|
+
|
|
931
|
+
def fromutc(self, dt):
|
|
932
|
+
"datetime in UTC -> datetime in local time."
|
|
933
|
+
|
|
934
|
+
if not isinstance(dt, datetime):
|
|
935
|
+
raise TypeError("fromutc() requires a datetime argument")
|
|
936
|
+
if dt.tzinfo is not self:
|
|
937
|
+
raise ValueError("dt.tzinfo is not self")
|
|
938
|
+
|
|
939
|
+
dtoff = dt.utcoffset()
|
|
940
|
+
if dtoff is None:
|
|
941
|
+
raise ValueError("fromutc() requires a non-None utcoffset() "
|
|
942
|
+
"result")
|
|
943
|
+
|
|
944
|
+
# See the long comment block at the end of this file for an
|
|
945
|
+
# explanation of this algorithm.
|
|
946
|
+
dtdst = dt.dst()
|
|
947
|
+
if dtdst is None:
|
|
948
|
+
raise ValueError("fromutc() requires a non-None dst() result")
|
|
949
|
+
delta = dtoff - dtdst
|
|
950
|
+
if delta:
|
|
951
|
+
dt += delta
|
|
952
|
+
dtdst = dt.dst()
|
|
953
|
+
if dtdst is None:
|
|
954
|
+
raise ValueError("fromutc(): dt.dst gave inconsistent "
|
|
955
|
+
"results; cannot convert")
|
|
956
|
+
return dt + dtdst
|
|
957
|
+
|
|
958
|
+
# Pickle support.
|
|
959
|
+
|
|
960
|
+
def __reduce__(self):
|
|
961
|
+
getinitargs = getattr(self, "__getinitargs__", None)
|
|
962
|
+
if getinitargs:
|
|
963
|
+
args = getinitargs()
|
|
964
|
+
else:
|
|
965
|
+
args = ()
|
|
966
|
+
getstate = getattr(self, "__getstate__", None)
|
|
967
|
+
if getstate:
|
|
968
|
+
state = getstate()
|
|
969
|
+
else:
|
|
970
|
+
state = getattr(self, "__dict__", None) or None
|
|
971
|
+
if state is None:
|
|
972
|
+
return (self.__class__, args)
|
|
973
|
+
else:
|
|
974
|
+
return (self.__class__, args, state)
|
|
975
|
+
|
|
976
|
+
_tzinfo_class = tzinfo
|
|
977
|
+
|
|
978
|
+
class time:
|
|
979
|
+
"""Time with time zone.
|
|
980
|
+
|
|
981
|
+
Constructors:
|
|
982
|
+
|
|
983
|
+
__new__()
|
|
984
|
+
|
|
985
|
+
Operators:
|
|
986
|
+
|
|
987
|
+
__repr__, __str__
|
|
988
|
+
__cmp__, __hash__
|
|
989
|
+
|
|
990
|
+
Methods:
|
|
991
|
+
|
|
992
|
+
strftime()
|
|
993
|
+
isoformat()
|
|
994
|
+
utcoffset()
|
|
995
|
+
tzname()
|
|
996
|
+
dst()
|
|
997
|
+
|
|
998
|
+
Properties (readonly):
|
|
999
|
+
hour, minute, second, microsecond, tzinfo
|
|
1000
|
+
"""
|
|
1001
|
+
|
|
1002
|
+
def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None):
|
|
1003
|
+
"""Constructor.
|
|
1004
|
+
|
|
1005
|
+
Arguments:
|
|
1006
|
+
|
|
1007
|
+
hour, minute (required)
|
|
1008
|
+
second, microsecond (default to zero)
|
|
1009
|
+
tzinfo (default to None)
|
|
1010
|
+
"""
|
|
1011
|
+
self = object.__new__(cls)
|
|
1012
|
+
if isinstance(hour, bytes) and len(hour) == 6:
|
|
1013
|
+
# Pickle support
|
|
1014
|
+
self.__setstate(hour, minute or None)
|
|
1015
|
+
return self
|
|
1016
|
+
_check_tzinfo_arg(tzinfo)
|
|
1017
|
+
_check_time_fields(hour, minute, second, microsecond)
|
|
1018
|
+
self._hour = hour
|
|
1019
|
+
self._minute = minute
|
|
1020
|
+
self._second = second
|
|
1021
|
+
self._microsecond = microsecond
|
|
1022
|
+
self._tzinfo = tzinfo
|
|
1023
|
+
return self
|
|
1024
|
+
|
|
1025
|
+
# Read-only field accessors
|
|
1026
|
+
@property
|
|
1027
|
+
def hour(self):
|
|
1028
|
+
"""hour (0-23)"""
|
|
1029
|
+
return self._hour
|
|
1030
|
+
|
|
1031
|
+
@property
|
|
1032
|
+
def minute(self):
|
|
1033
|
+
"""minute (0-59)"""
|
|
1034
|
+
return self._minute
|
|
1035
|
+
|
|
1036
|
+
@property
|
|
1037
|
+
def second(self):
|
|
1038
|
+
"""second (0-59)"""
|
|
1039
|
+
return self._second
|
|
1040
|
+
|
|
1041
|
+
@property
|
|
1042
|
+
def microsecond(self):
|
|
1043
|
+
"""microsecond (0-999999)"""
|
|
1044
|
+
return self._microsecond
|
|
1045
|
+
|
|
1046
|
+
@property
|
|
1047
|
+
def tzinfo(self):
|
|
1048
|
+
"""timezone info object"""
|
|
1049
|
+
return self._tzinfo
|
|
1050
|
+
|
|
1051
|
+
# Standard conversions, __hash__ (and helpers)
|
|
1052
|
+
|
|
1053
|
+
# Comparisons of time objects with other.
|
|
1054
|
+
|
|
1055
|
+
def __eq__(self, other):
|
|
1056
|
+
if isinstance(other, time):
|
|
1057
|
+
return self._cmp(other, allow_mixed=True) == 0
|
|
1058
|
+
else:
|
|
1059
|
+
return False
|
|
1060
|
+
|
|
1061
|
+
def __ne__(self, other):
|
|
1062
|
+
if isinstance(other, time):
|
|
1063
|
+
return self._cmp(other, allow_mixed=True) != 0
|
|
1064
|
+
else:
|
|
1065
|
+
return True
|
|
1066
|
+
|
|
1067
|
+
def __le__(self, other):
|
|
1068
|
+
if isinstance(other, time):
|
|
1069
|
+
return self._cmp(other) <= 0
|
|
1070
|
+
else:
|
|
1071
|
+
_cmperror(self, other)
|
|
1072
|
+
|
|
1073
|
+
def __lt__(self, other):
|
|
1074
|
+
if isinstance(other, time):
|
|
1075
|
+
return self._cmp(other) < 0
|
|
1076
|
+
else:
|
|
1077
|
+
_cmperror(self, other)
|
|
1078
|
+
|
|
1079
|
+
def __ge__(self, other):
|
|
1080
|
+
if isinstance(other, time):
|
|
1081
|
+
return self._cmp(other) >= 0
|
|
1082
|
+
else:
|
|
1083
|
+
_cmperror(self, other)
|
|
1084
|
+
|
|
1085
|
+
def __gt__(self, other):
|
|
1086
|
+
if isinstance(other, time):
|
|
1087
|
+
return self._cmp(other) > 0
|
|
1088
|
+
else:
|
|
1089
|
+
_cmperror(self, other)
|
|
1090
|
+
|
|
1091
|
+
def _cmp(self, other, allow_mixed=False):
|
|
1092
|
+
assert isinstance(other, time)
|
|
1093
|
+
mytz = self._tzinfo
|
|
1094
|
+
ottz = other._tzinfo
|
|
1095
|
+
myoff = otoff = None
|
|
1096
|
+
|
|
1097
|
+
if mytz is ottz:
|
|
1098
|
+
base_compare = True
|
|
1099
|
+
else:
|
|
1100
|
+
myoff = self.utcoffset()
|
|
1101
|
+
otoff = other.utcoffset()
|
|
1102
|
+
base_compare = myoff == otoff
|
|
1103
|
+
|
|
1104
|
+
if base_compare:
|
|
1105
|
+
return _cmp((self._hour, self._minute, self._second,
|
|
1106
|
+
self._microsecond),
|
|
1107
|
+
(other._hour, other._minute, other._second,
|
|
1108
|
+
other._microsecond))
|
|
1109
|
+
if myoff is None or otoff is None:
|
|
1110
|
+
if allow_mixed:
|
|
1111
|
+
return 2 # arbitrary non-zero value
|
|
1112
|
+
else:
|
|
1113
|
+
raise TypeError("cannot compare naive and aware times")
|
|
1114
|
+
myhhmm = self._hour * 60 + self._minute - myoff//timedelta(minutes=1)
|
|
1115
|
+
othhmm = other._hour * 60 + other._minute - otoff//timedelta(minutes=1)
|
|
1116
|
+
return _cmp((myhhmm, self._second, self._microsecond),
|
|
1117
|
+
(othhmm, other._second, other._microsecond))
|
|
1118
|
+
|
|
1119
|
+
def __hash__(self):
|
|
1120
|
+
"""Hash."""
|
|
1121
|
+
tzoff = self.utcoffset()
|
|
1122
|
+
if not tzoff: # zero or None
|
|
1123
|
+
return hash(self._getstate()[0])
|
|
1124
|
+
h, m = divmod(timedelta(hours=self.hour, minutes=self.minute) - tzoff,
|
|
1125
|
+
timedelta(hours=1))
|
|
1126
|
+
assert not m % timedelta(minutes=1), "whole minute"
|
|
1127
|
+
m //= timedelta(minutes=1)
|
|
1128
|
+
if 0 <= h < 24:
|
|
1129
|
+
return hash(time(h, m, self.second, self.microsecond))
|
|
1130
|
+
return hash((h, m, self.second, self.microsecond))
|
|
1131
|
+
|
|
1132
|
+
# Conversion to string
|
|
1133
|
+
|
|
1134
|
+
def _tzstr(self, sep=":"):
|
|
1135
|
+
"""Return formatted timezone offset (+xx:xx) or None."""
|
|
1136
|
+
off = self.utcoffset()
|
|
1137
|
+
if off is not None:
|
|
1138
|
+
if off.days < 0:
|
|
1139
|
+
sign = "-"
|
|
1140
|
+
off = -off
|
|
1141
|
+
else:
|
|
1142
|
+
sign = "+"
|
|
1143
|
+
hh, mm = divmod(off, timedelta(hours=1))
|
|
1144
|
+
assert not mm % timedelta(minutes=1), "whole minute"
|
|
1145
|
+
mm //= timedelta(minutes=1)
|
|
1146
|
+
assert 0 <= hh < 24
|
|
1147
|
+
off = "%s%02d%s%02d" % (sign, hh, sep, mm)
|
|
1148
|
+
return off
|
|
1149
|
+
|
|
1150
|
+
def __repr__(self):
|
|
1151
|
+
"""Convert to formal string, for repr()."""
|
|
1152
|
+
if self._microsecond != 0:
|
|
1153
|
+
s = ", %d, %d" % (self._second, self._microsecond)
|
|
1154
|
+
elif self._second != 0:
|
|
1155
|
+
s = ", %d" % self._second
|
|
1156
|
+
else:
|
|
1157
|
+
s = ""
|
|
1158
|
+
s= "%s(%d, %d%s)" % ('datetime.' + self.__class__.__name__,
|
|
1159
|
+
self._hour, self._minute, s)
|
|
1160
|
+
if self._tzinfo is not None:
|
|
1161
|
+
assert s[-1:] == ")"
|
|
1162
|
+
s = s[:-1] + ", tzinfo=%r" % self._tzinfo + ")"
|
|
1163
|
+
return s
|
|
1164
|
+
|
|
1165
|
+
def isoformat(self):
|
|
1166
|
+
"""Return the time formatted according to ISO.
|
|
1167
|
+
|
|
1168
|
+
This is 'HH:MM:SS.mmmmmm+zz:zz', or 'HH:MM:SS+zz:zz' if
|
|
1169
|
+
self.microsecond == 0.
|
|
1170
|
+
"""
|
|
1171
|
+
s = _format_time(self._hour, self._minute, self._second,
|
|
1172
|
+
self._microsecond)
|
|
1173
|
+
tz = self._tzstr()
|
|
1174
|
+
if tz:
|
|
1175
|
+
s += tz
|
|
1176
|
+
return s
|
|
1177
|
+
|
|
1178
|
+
__str__ = isoformat
|
|
1179
|
+
|
|
1180
|
+
def strftime(self, fmt):
|
|
1181
|
+
"""Format using strftime(). The date part of the timestamp passed
|
|
1182
|
+
to underlying strftime should not be used.
|
|
1183
|
+
"""
|
|
1184
|
+
# The year must be >= 1000 else Python's strftime implementation
|
|
1185
|
+
# can raise a bogus exception.
|
|
1186
|
+
timetuple = (1900, 1, 1,
|
|
1187
|
+
self._hour, self._minute, self._second,
|
|
1188
|
+
0, 1, -1)
|
|
1189
|
+
return _wrap_strftime(self, fmt, timetuple)
|
|
1190
|
+
|
|
1191
|
+
def __format__(self, fmt):
|
|
1192
|
+
if len(fmt) != 0:
|
|
1193
|
+
return self.strftime(fmt)
|
|
1194
|
+
return str(self)
|
|
1195
|
+
|
|
1196
|
+
# Timezone functions
|
|
1197
|
+
|
|
1198
|
+
def utcoffset(self):
|
|
1199
|
+
"""Return the timezone offset in minutes east of UTC (negative west of
|
|
1200
|
+
UTC)."""
|
|
1201
|
+
if self._tzinfo is None:
|
|
1202
|
+
return None
|
|
1203
|
+
offset = self._tzinfo.utcoffset(None)
|
|
1204
|
+
_check_utc_offset("utcoffset", offset)
|
|
1205
|
+
return offset
|
|
1206
|
+
|
|
1207
|
+
def tzname(self):
|
|
1208
|
+
"""Return the timezone name.
|
|
1209
|
+
|
|
1210
|
+
Note that the name is 100% informational -- there's no requirement that
|
|
1211
|
+
it mean anything in particular. For example, "GMT", "UTC", "-500",
|
|
1212
|
+
"-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.
|
|
1213
|
+
"""
|
|
1214
|
+
if self._tzinfo is None:
|
|
1215
|
+
return None
|
|
1216
|
+
name = self._tzinfo.tzname(None)
|
|
1217
|
+
_check_tzname(name)
|
|
1218
|
+
return name
|
|
1219
|
+
|
|
1220
|
+
def dst(self):
|
|
1221
|
+
"""Return 0 if DST is not in effect, or the DST offset (in minutes
|
|
1222
|
+
eastward) if DST is in effect.
|
|
1223
|
+
|
|
1224
|
+
This is purely informational; the DST offset has already been added to
|
|
1225
|
+
the UTC offset returned by utcoffset() if applicable, so there's no
|
|
1226
|
+
need to consult dst() unless you're interested in displaying the DST
|
|
1227
|
+
info.
|
|
1228
|
+
"""
|
|
1229
|
+
if self._tzinfo is None:
|
|
1230
|
+
return None
|
|
1231
|
+
offset = self._tzinfo.dst(None)
|
|
1232
|
+
_check_utc_offset("dst", offset)
|
|
1233
|
+
return offset
|
|
1234
|
+
|
|
1235
|
+
def replace(self, hour=None, minute=None, second=None, microsecond=None,
|
|
1236
|
+
tzinfo=True):
|
|
1237
|
+
"""Return a new time with new values for the specified fields."""
|
|
1238
|
+
if hour is None:
|
|
1239
|
+
hour = self.hour
|
|
1240
|
+
if minute is None:
|
|
1241
|
+
minute = self.minute
|
|
1242
|
+
if second is None:
|
|
1243
|
+
second = self.second
|
|
1244
|
+
if microsecond is None:
|
|
1245
|
+
microsecond = self.microsecond
|
|
1246
|
+
if tzinfo is True:
|
|
1247
|
+
tzinfo = self.tzinfo
|
|
1248
|
+
_check_time_fields(hour, minute, second, microsecond)
|
|
1249
|
+
_check_tzinfo_arg(tzinfo)
|
|
1250
|
+
return time(hour, minute, second, microsecond, tzinfo)
|
|
1251
|
+
|
|
1252
|
+
def __bool__(self):
|
|
1253
|
+
if self.second or self.microsecond:
|
|
1254
|
+
return True
|
|
1255
|
+
offset = self.utcoffset() or timedelta(0)
|
|
1256
|
+
return timedelta(hours=self.hour, minutes=self.minute) != offset
|
|
1257
|
+
|
|
1258
|
+
# Pickle support.
|
|
1259
|
+
|
|
1260
|
+
def _getstate(self):
|
|
1261
|
+
us2, us3 = divmod(self._microsecond, 256)
|
|
1262
|
+
us1, us2 = divmod(us2, 256)
|
|
1263
|
+
basestate = bytes([self._hour, self._minute, self._second,
|
|
1264
|
+
us1, us2, us3])
|
|
1265
|
+
if self._tzinfo is None:
|
|
1266
|
+
return (basestate,)
|
|
1267
|
+
else:
|
|
1268
|
+
return (basestate, self._tzinfo)
|
|
1269
|
+
|
|
1270
|
+
def __setstate(self, string, tzinfo):
|
|
1271
|
+
if len(string) != 6 or string[0] >= 24:
|
|
1272
|
+
raise TypeError("an integer is required")
|
|
1273
|
+
(self._hour, self._minute, self._second,
|
|
1274
|
+
us1, us2, us3) = string
|
|
1275
|
+
self._microsecond = (((us1 << 8) | us2) << 8) | us3
|
|
1276
|
+
if tzinfo is None or isinstance(tzinfo, _tzinfo_class):
|
|
1277
|
+
self._tzinfo = tzinfo
|
|
1278
|
+
else:
|
|
1279
|
+
raise TypeError("bad tzinfo state arg %r" % tzinfo)
|
|
1280
|
+
|
|
1281
|
+
def __reduce__(self):
|
|
1282
|
+
return (time, self._getstate())
|
|
1283
|
+
|
|
1284
|
+
_time_class = time # so functions w/ args named "time" can get at the class
|
|
1285
|
+
|
|
1286
|
+
time.min = time(0, 0, 0)
|
|
1287
|
+
time.max = time(23, 59, 59, 999999)
|
|
1288
|
+
time.resolution = timedelta(microseconds=1)
|
|
1289
|
+
|
|
1290
|
+
class datetime(date):
|
|
1291
|
+
"""datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
|
|
1292
|
+
|
|
1293
|
+
The year, month and day arguments are required. tzinfo may be None, or an
|
|
1294
|
+
instance of a tzinfo subclass. The remaining arguments may be ints.
|
|
1295
|
+
"""
|
|
1296
|
+
|
|
1297
|
+
__slots__ = date.__slots__ + (
|
|
1298
|
+
'_hour', '_minute', '_second',
|
|
1299
|
+
'_microsecond', '_tzinfo')
|
|
1300
|
+
def __new__(cls, year, month=None, day=None, hour=0, minute=0, second=0,
|
|
1301
|
+
microsecond=0, tzinfo=None):
|
|
1302
|
+
if isinstance(year, bytes) and len(year) == 10:
|
|
1303
|
+
# Pickle support
|
|
1304
|
+
self = date.__new__(cls, year[:4])
|
|
1305
|
+
self.__setstate(year, month)
|
|
1306
|
+
return self
|
|
1307
|
+
_check_tzinfo_arg(tzinfo)
|
|
1308
|
+
_check_time_fields(hour, minute, second, microsecond)
|
|
1309
|
+
self = date.__new__(cls, year, month, day)
|
|
1310
|
+
self._hour = hour
|
|
1311
|
+
self._minute = minute
|
|
1312
|
+
self._second = second
|
|
1313
|
+
self._microsecond = microsecond
|
|
1314
|
+
self._tzinfo = tzinfo
|
|
1315
|
+
return self
|
|
1316
|
+
|
|
1317
|
+
# Read-only field accessors
|
|
1318
|
+
@property
|
|
1319
|
+
def hour(self):
|
|
1320
|
+
"""hour (0-23)"""
|
|
1321
|
+
return self._hour
|
|
1322
|
+
|
|
1323
|
+
@property
|
|
1324
|
+
def minute(self):
|
|
1325
|
+
"""minute (0-59)"""
|
|
1326
|
+
return self._minute
|
|
1327
|
+
|
|
1328
|
+
@property
|
|
1329
|
+
def second(self):
|
|
1330
|
+
"""second (0-59)"""
|
|
1331
|
+
return self._second
|
|
1332
|
+
|
|
1333
|
+
@property
|
|
1334
|
+
def microsecond(self):
|
|
1335
|
+
"""microsecond (0-999999)"""
|
|
1336
|
+
return self._microsecond
|
|
1337
|
+
|
|
1338
|
+
@property
|
|
1339
|
+
def tzinfo(self):
|
|
1340
|
+
"""timezone info object"""
|
|
1341
|
+
return self._tzinfo
|
|
1342
|
+
|
|
1343
|
+
@classmethod
|
|
1344
|
+
def fromtimestamp(cls, t, tz=None):
|
|
1345
|
+
"""Construct a datetime from a POSIX timestamp (like time.time()).
|
|
1346
|
+
|
|
1347
|
+
A timezone info object may be passed in as well.
|
|
1348
|
+
"""
|
|
1349
|
+
|
|
1350
|
+
_check_tzinfo_arg(tz)
|
|
1351
|
+
|
|
1352
|
+
converter = _time.localtime if tz is None else _time.gmtime
|
|
1353
|
+
|
|
1354
|
+
t, frac = divmod(t, 1.0)
|
|
1355
|
+
us = int(frac * 1e6)
|
|
1356
|
+
|
|
1357
|
+
# If timestamp is less than one microsecond smaller than a
|
|
1358
|
+
# full second, us can be rounded up to 1000000. In this case,
|
|
1359
|
+
# roll over to seconds, otherwise, ValueError is raised
|
|
1360
|
+
# by the constructor.
|
|
1361
|
+
if us == 1000000:
|
|
1362
|
+
t += 1
|
|
1363
|
+
us = 0
|
|
1364
|
+
y, m, d, hh, mm, ss, weekday, jday, dst = converter(t)
|
|
1365
|
+
ss = min(ss, 59) # clamp out leap seconds if the platform has them
|
|
1366
|
+
result = cls(y, m, d, hh, mm, ss, us, tz)
|
|
1367
|
+
if tz is not None:
|
|
1368
|
+
result = tz.fromutc(result)
|
|
1369
|
+
return result
|
|
1370
|
+
|
|
1371
|
+
@classmethod
|
|
1372
|
+
def utcfromtimestamp(cls, t):
|
|
1373
|
+
"Construct a UTC datetime from a POSIX timestamp (like time.time())."
|
|
1374
|
+
t, frac = divmod(t, 1.0)
|
|
1375
|
+
us = int(frac * 1e6)
|
|
1376
|
+
|
|
1377
|
+
# If timestamp is less than one microsecond smaller than a
|
|
1378
|
+
# full second, us can be rounded up to 1000000. In this case,
|
|
1379
|
+
# roll over to seconds, otherwise, ValueError is raised
|
|
1380
|
+
# by the constructor.
|
|
1381
|
+
if us == 1000000:
|
|
1382
|
+
t += 1
|
|
1383
|
+
us = 0
|
|
1384
|
+
y, m, d, hh, mm, ss, weekday, jday, dst = _time.gmtime(t)
|
|
1385
|
+
ss = min(ss, 59) # clamp out leap seconds if the platform has them
|
|
1386
|
+
return cls(y, m, d, hh, mm, ss, us)
|
|
1387
|
+
|
|
1388
|
+
# XXX This is supposed to do better than we *can* do by using time.time(),
|
|
1389
|
+
# XXX if the platform supports a more accurate way. The C implementation
|
|
1390
|
+
# XXX uses gettimeofday on platforms that have it, but that isn't
|
|
1391
|
+
# XXX available from Python. So now() may return different results
|
|
1392
|
+
# XXX across the implementations.
|
|
1393
|
+
@classmethod
|
|
1394
|
+
def now(cls, tz=None):
|
|
1395
|
+
"Construct a datetime from time.time() and optional time zone info."
|
|
1396
|
+
t = _time.time()
|
|
1397
|
+
return cls.fromtimestamp(t, tz)
|
|
1398
|
+
|
|
1399
|
+
@classmethod
|
|
1400
|
+
def utcnow(cls):
|
|
1401
|
+
"Construct a UTC datetime from time.time()."
|
|
1402
|
+
t = _time.time()
|
|
1403
|
+
return cls.utcfromtimestamp(t)
|
|
1404
|
+
|
|
1405
|
+
@classmethod
|
|
1406
|
+
def combine(cls, date, time):
|
|
1407
|
+
"Construct a datetime from a given date and a given time."
|
|
1408
|
+
if not isinstance(date, _date_class):
|
|
1409
|
+
raise TypeError("date argument must be a date instance")
|
|
1410
|
+
if not isinstance(time, _time_class):
|
|
1411
|
+
raise TypeError("time argument must be a time instance")
|
|
1412
|
+
return cls(date.year, date.month, date.day,
|
|
1413
|
+
time.hour, time.minute, time.second, time.microsecond,
|
|
1414
|
+
time.tzinfo)
|
|
1415
|
+
|
|
1416
|
+
def timetuple(self):
|
|
1417
|
+
"Return local time tuple compatible with time.localtime()."
|
|
1418
|
+
dst = self.dst()
|
|
1419
|
+
if dst is None:
|
|
1420
|
+
dst = -1
|
|
1421
|
+
elif dst:
|
|
1422
|
+
dst = 1
|
|
1423
|
+
else:
|
|
1424
|
+
dst = 0
|
|
1425
|
+
return _build_struct_time(self.year, self.month, self.day,
|
|
1426
|
+
self.hour, self.minute, self.second,
|
|
1427
|
+
dst)
|
|
1428
|
+
|
|
1429
|
+
def timestamp(self):
|
|
1430
|
+
"Return POSIX timestamp as float"
|
|
1431
|
+
if self._tzinfo is None:
|
|
1432
|
+
return _time.mktime((self.year, self.month, self.day,
|
|
1433
|
+
self.hour, self.minute, self.second,
|
|
1434
|
+
-1, -1, -1)) + self.microsecond / 1e6
|
|
1435
|
+
else:
|
|
1436
|
+
return (self - _EPOCH).total_seconds()
|
|
1437
|
+
|
|
1438
|
+
def utctimetuple(self):
|
|
1439
|
+
"Return UTC time tuple compatible with time.gmtime()."
|
|
1440
|
+
offset = self.utcoffset()
|
|
1441
|
+
if offset:
|
|
1442
|
+
self -= offset
|
|
1443
|
+
y, m, d = self.year, self.month, self.day
|
|
1444
|
+
hh, mm, ss = self.hour, self.minute, self.second
|
|
1445
|
+
return _build_struct_time(y, m, d, hh, mm, ss, 0)
|
|
1446
|
+
|
|
1447
|
+
def date(self):
|
|
1448
|
+
"Return the date part."
|
|
1449
|
+
return date(self._year, self._month, self._day)
|
|
1450
|
+
|
|
1451
|
+
def time(self):
|
|
1452
|
+
"Return the time part, with tzinfo None."
|
|
1453
|
+
return time(self.hour, self.minute, self.second, self.microsecond)
|
|
1454
|
+
|
|
1455
|
+
def timetz(self):
|
|
1456
|
+
"Return the time part, with same tzinfo."
|
|
1457
|
+
return time(self.hour, self.minute, self.second, self.microsecond,
|
|
1458
|
+
self._tzinfo)
|
|
1459
|
+
|
|
1460
|
+
def replace(self, year=None, month=None, day=None, hour=None,
|
|
1461
|
+
minute=None, second=None, microsecond=None, tzinfo=True):
|
|
1462
|
+
"""Return a new datetime with new values for the specified fields."""
|
|
1463
|
+
if year is None:
|
|
1464
|
+
year = self.year
|
|
1465
|
+
if month is None:
|
|
1466
|
+
month = self.month
|
|
1467
|
+
if day is None:
|
|
1468
|
+
day = self.day
|
|
1469
|
+
if hour is None:
|
|
1470
|
+
hour = self.hour
|
|
1471
|
+
if minute is None:
|
|
1472
|
+
minute = self.minute
|
|
1473
|
+
if second is None:
|
|
1474
|
+
second = self.second
|
|
1475
|
+
if microsecond is None:
|
|
1476
|
+
microsecond = self.microsecond
|
|
1477
|
+
if tzinfo is True:
|
|
1478
|
+
tzinfo = self.tzinfo
|
|
1479
|
+
_check_date_fields(year, month, day)
|
|
1480
|
+
_check_time_fields(hour, minute, second, microsecond)
|
|
1481
|
+
_check_tzinfo_arg(tzinfo)
|
|
1482
|
+
return datetime(year, month, day, hour, minute, second,
|
|
1483
|
+
microsecond, tzinfo)
|
|
1484
|
+
|
|
1485
|
+
def astimezone(self, tz=None):
|
|
1486
|
+
if tz is None:
|
|
1487
|
+
if self.tzinfo is None:
|
|
1488
|
+
raise ValueError("astimezone() requires an aware datetime")
|
|
1489
|
+
ts = (self - _EPOCH) // timedelta(seconds=1)
|
|
1490
|
+
localtm = _time.localtime(ts)
|
|
1491
|
+
local = datetime(*localtm[:6])
|
|
1492
|
+
try:
|
|
1493
|
+
# Extract TZ data if available
|
|
1494
|
+
gmtoff = localtm.tm_gmtoff
|
|
1495
|
+
zone = localtm.tm_zone
|
|
1496
|
+
except AttributeError:
|
|
1497
|
+
# Compute UTC offset and compare with the value implied
|
|
1498
|
+
# by tm_isdst. If the values match, use the zone name
|
|
1499
|
+
# implied by tm_isdst.
|
|
1500
|
+
delta = local - datetime(*_time.gmtime(ts)[:6])
|
|
1501
|
+
dst = _time.daylight and localtm.tm_isdst > 0
|
|
1502
|
+
gmtoff = -(_time.altzone if dst else _time.timezone)
|
|
1503
|
+
if delta == timedelta(seconds=gmtoff):
|
|
1504
|
+
tz = timezone(delta, _time.tzname[dst])
|
|
1505
|
+
else:
|
|
1506
|
+
tz = timezone(delta)
|
|
1507
|
+
else:
|
|
1508
|
+
tz = timezone(timedelta(seconds=gmtoff), zone)
|
|
1509
|
+
|
|
1510
|
+
elif not isinstance(tz, tzinfo):
|
|
1511
|
+
raise TypeError("tz argument must be an instance of tzinfo")
|
|
1512
|
+
|
|
1513
|
+
mytz = self.tzinfo
|
|
1514
|
+
if mytz is None:
|
|
1515
|
+
raise ValueError("astimezone() requires an aware datetime")
|
|
1516
|
+
|
|
1517
|
+
if tz is mytz:
|
|
1518
|
+
return self
|
|
1519
|
+
|
|
1520
|
+
# Convert self to UTC, and attach the new time zone object.
|
|
1521
|
+
myoffset = self.utcoffset()
|
|
1522
|
+
if myoffset is None:
|
|
1523
|
+
raise ValueError("astimezone() requires an aware datetime")
|
|
1524
|
+
utc = (self - myoffset).replace(tzinfo=tz)
|
|
1525
|
+
|
|
1526
|
+
# Convert from UTC to tz's local time.
|
|
1527
|
+
return tz.fromutc(utc)
|
|
1528
|
+
|
|
1529
|
+
# Ways to produce a string.
|
|
1530
|
+
|
|
1531
|
+
def ctime(self):
|
|
1532
|
+
"Return ctime() style string."
|
|
1533
|
+
weekday = self.toordinal() % 7 or 7
|
|
1534
|
+
return "%s %s %2d %02d:%02d:%02d %04d" % (
|
|
1535
|
+
_DAYNAMES[weekday],
|
|
1536
|
+
_MONTHNAMES[self._month],
|
|
1537
|
+
self._day,
|
|
1538
|
+
self._hour, self._minute, self._second,
|
|
1539
|
+
self._year)
|
|
1540
|
+
|
|
1541
|
+
def isoformat(self, sep='T'):
|
|
1542
|
+
"""Return the time formatted according to ISO.
|
|
1543
|
+
|
|
1544
|
+
This is 'YYYY-MM-DD HH:MM:SS.mmmmmm', or 'YYYY-MM-DD HH:MM:SS' if
|
|
1545
|
+
self.microsecond == 0.
|
|
1546
|
+
|
|
1547
|
+
If self.tzinfo is not None, the UTC offset is also attached, giving
|
|
1548
|
+
'YYYY-MM-DD HH:MM:SS.mmmmmm+HH:MM' or 'YYYY-MM-DD HH:MM:SS+HH:MM'.
|
|
1549
|
+
|
|
1550
|
+
Optional argument sep specifies the separator between date and
|
|
1551
|
+
time, default 'T'.
|
|
1552
|
+
"""
|
|
1553
|
+
s = ("%04d-%02d-%02d%c" % (self._year, self._month, self._day,
|
|
1554
|
+
sep) +
|
|
1555
|
+
_format_time(self._hour, self._minute, self._second,
|
|
1556
|
+
self._microsecond))
|
|
1557
|
+
off = self.utcoffset()
|
|
1558
|
+
if off is not None:
|
|
1559
|
+
if off.days < 0:
|
|
1560
|
+
sign = "-"
|
|
1561
|
+
off = -off
|
|
1562
|
+
else:
|
|
1563
|
+
sign = "+"
|
|
1564
|
+
hh, mm = divmod(off, timedelta(hours=1))
|
|
1565
|
+
assert not mm % timedelta(minutes=1), "whole minute"
|
|
1566
|
+
mm //= timedelta(minutes=1)
|
|
1567
|
+
s += "%s%02d:%02d" % (sign, hh, mm)
|
|
1568
|
+
return s
|
|
1569
|
+
|
|
1570
|
+
def __repr__(self):
|
|
1571
|
+
"""Convert to formal string, for repr()."""
|
|
1572
|
+
L = [self._year, self._month, self._day, # These are never zero
|
|
1573
|
+
self._hour, self._minute, self._second, self._microsecond]
|
|
1574
|
+
if L[-1] == 0:
|
|
1575
|
+
del L[-1]
|
|
1576
|
+
if L[-1] == 0:
|
|
1577
|
+
del L[-1]
|
|
1578
|
+
s = ", ".join(map(str, L))
|
|
1579
|
+
s = "%s(%s)" % ('datetime.' + self.__class__.__name__, s)
|
|
1580
|
+
if self._tzinfo is not None:
|
|
1581
|
+
assert s[-1:] == ")"
|
|
1582
|
+
s = s[:-1] + ", tzinfo=%r" % self._tzinfo + ")"
|
|
1583
|
+
return s
|
|
1584
|
+
|
|
1585
|
+
def __str__(self):
|
|
1586
|
+
"Convert to string, for str()."
|
|
1587
|
+
return self.isoformat(sep=' ')
|
|
1588
|
+
|
|
1589
|
+
@classmethod
|
|
1590
|
+
def strptime(cls, date_string, format):
|
|
1591
|
+
'string, format -> new datetime parsed from a string (like time.strptime()).'
|
|
1592
|
+
import _strptime
|
|
1593
|
+
return _strptime._strptime_datetime(cls, date_string, format)
|
|
1594
|
+
|
|
1595
|
+
def utcoffset(self):
|
|
1596
|
+
"""Return the timezone offset in minutes east of UTC (negative west of
|
|
1597
|
+
UTC)."""
|
|
1598
|
+
if self._tzinfo is None:
|
|
1599
|
+
return None
|
|
1600
|
+
offset = self._tzinfo.utcoffset(self)
|
|
1601
|
+
_check_utc_offset("utcoffset", offset)
|
|
1602
|
+
return offset
|
|
1603
|
+
|
|
1604
|
+
def tzname(self):
|
|
1605
|
+
"""Return the timezone name.
|
|
1606
|
+
|
|
1607
|
+
Note that the name is 100% informational -- there's no requirement that
|
|
1608
|
+
it mean anything in particular. For example, "GMT", "UTC", "-500",
|
|
1609
|
+
"-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.
|
|
1610
|
+
"""
|
|
1611
|
+
name = _call_tzinfo_method(self._tzinfo, "tzname", self)
|
|
1612
|
+
_check_tzname(name)
|
|
1613
|
+
return name
|
|
1614
|
+
|
|
1615
|
+
def dst(self):
|
|
1616
|
+
"""Return 0 if DST is not in effect, or the DST offset (in minutes
|
|
1617
|
+
eastward) if DST is in effect.
|
|
1618
|
+
|
|
1619
|
+
This is purely informational; the DST offset has already been added to
|
|
1620
|
+
the UTC offset returned by utcoffset() if applicable, so there's no
|
|
1621
|
+
need to consult dst() unless you're interested in displaying the DST
|
|
1622
|
+
info.
|
|
1623
|
+
"""
|
|
1624
|
+
if self._tzinfo is None:
|
|
1625
|
+
return None
|
|
1626
|
+
offset = self._tzinfo.dst(self)
|
|
1627
|
+
_check_utc_offset("dst", offset)
|
|
1628
|
+
return offset
|
|
1629
|
+
|
|
1630
|
+
# Comparisons of datetime objects with other.
|
|
1631
|
+
|
|
1632
|
+
def __eq__(self, other):
|
|
1633
|
+
if isinstance(other, datetime):
|
|
1634
|
+
return self._cmp(other, allow_mixed=True) == 0
|
|
1635
|
+
elif not isinstance(other, date):
|
|
1636
|
+
return NotImplemented
|
|
1637
|
+
else:
|
|
1638
|
+
return False
|
|
1639
|
+
|
|
1640
|
+
def __ne__(self, other):
|
|
1641
|
+
if isinstance(other, datetime):
|
|
1642
|
+
return self._cmp(other, allow_mixed=True) != 0
|
|
1643
|
+
elif not isinstance(other, date):
|
|
1644
|
+
return NotImplemented
|
|
1645
|
+
else:
|
|
1646
|
+
return True
|
|
1647
|
+
|
|
1648
|
+
def __le__(self, other):
|
|
1649
|
+
if isinstance(other, datetime):
|
|
1650
|
+
return self._cmp(other) <= 0
|
|
1651
|
+
elif not isinstance(other, date):
|
|
1652
|
+
return NotImplemented
|
|
1653
|
+
else:
|
|
1654
|
+
_cmperror(self, other)
|
|
1655
|
+
|
|
1656
|
+
def __lt__(self, other):
|
|
1657
|
+
if isinstance(other, datetime):
|
|
1658
|
+
return self._cmp(other) < 0
|
|
1659
|
+
elif not isinstance(other, date):
|
|
1660
|
+
return NotImplemented
|
|
1661
|
+
else:
|
|
1662
|
+
_cmperror(self, other)
|
|
1663
|
+
|
|
1664
|
+
def __ge__(self, other):
|
|
1665
|
+
if isinstance(other, datetime):
|
|
1666
|
+
return self._cmp(other) >= 0
|
|
1667
|
+
elif not isinstance(other, date):
|
|
1668
|
+
return NotImplemented
|
|
1669
|
+
else:
|
|
1670
|
+
_cmperror(self, other)
|
|
1671
|
+
|
|
1672
|
+
def __gt__(self, other):
|
|
1673
|
+
if isinstance(other, datetime):
|
|
1674
|
+
return self._cmp(other) > 0
|
|
1675
|
+
elif not isinstance(other, date):
|
|
1676
|
+
return NotImplemented
|
|
1677
|
+
else:
|
|
1678
|
+
_cmperror(self, other)
|
|
1679
|
+
|
|
1680
|
+
def _cmp(self, other, allow_mixed=False):
|
|
1681
|
+
assert isinstance(other, datetime)
|
|
1682
|
+
mytz = self._tzinfo
|
|
1683
|
+
ottz = other._tzinfo
|
|
1684
|
+
myoff = otoff = None
|
|
1685
|
+
|
|
1686
|
+
if mytz is ottz:
|
|
1687
|
+
base_compare = True
|
|
1688
|
+
else:
|
|
1689
|
+
myoff = self.utcoffset()
|
|
1690
|
+
otoff = other.utcoffset()
|
|
1691
|
+
base_compare = myoff == otoff
|
|
1692
|
+
|
|
1693
|
+
if base_compare:
|
|
1694
|
+
return _cmp((self._year, self._month, self._day,
|
|
1695
|
+
self._hour, self._minute, self._second,
|
|
1696
|
+
self._microsecond),
|
|
1697
|
+
(other._year, other._month, other._day,
|
|
1698
|
+
other._hour, other._minute, other._second,
|
|
1699
|
+
other._microsecond))
|
|
1700
|
+
if myoff is None or otoff is None:
|
|
1701
|
+
if allow_mixed:
|
|
1702
|
+
return 2 # arbitrary non-zero value
|
|
1703
|
+
else:
|
|
1704
|
+
raise TypeError("cannot compare naive and aware datetimes")
|
|
1705
|
+
# XXX What follows could be done more efficiently...
|
|
1706
|
+
diff = self - other # this will take offsets into account
|
|
1707
|
+
if diff.days < 0:
|
|
1708
|
+
return -1
|
|
1709
|
+
return diff and 1 or 0
|
|
1710
|
+
|
|
1711
|
+
def __add__(self, other):
|
|
1712
|
+
"Add a datetime and a timedelta."
|
|
1713
|
+
if not isinstance(other, timedelta):
|
|
1714
|
+
return NotImplemented
|
|
1715
|
+
delta = timedelta(self.toordinal(),
|
|
1716
|
+
hours=self._hour,
|
|
1717
|
+
minutes=self._minute,
|
|
1718
|
+
seconds=self._second,
|
|
1719
|
+
microseconds=self._microsecond)
|
|
1720
|
+
delta += other
|
|
1721
|
+
hour, rem = divmod(delta.seconds, 3600)
|
|
1722
|
+
minute, second = divmod(rem, 60)
|
|
1723
|
+
if 0 < delta.days <= _MAXORDINAL:
|
|
1724
|
+
return datetime.combine(date.fromordinal(delta.days),
|
|
1725
|
+
time(hour, minute, second,
|
|
1726
|
+
delta.microseconds,
|
|
1727
|
+
tzinfo=self._tzinfo))
|
|
1728
|
+
raise OverflowError("result out of range")
|
|
1729
|
+
|
|
1730
|
+
__radd__ = __add__
|
|
1731
|
+
|
|
1732
|
+
def __sub__(self, other):
|
|
1733
|
+
"Subtract two datetimes, or a datetime and a timedelta."
|
|
1734
|
+
if not isinstance(other, datetime):
|
|
1735
|
+
if isinstance(other, timedelta):
|
|
1736
|
+
return self + -other
|
|
1737
|
+
return NotImplemented
|
|
1738
|
+
|
|
1739
|
+
days1 = self.toordinal()
|
|
1740
|
+
days2 = other.toordinal()
|
|
1741
|
+
secs1 = self._second + self._minute * 60 + self._hour * 3600
|
|
1742
|
+
secs2 = other._second + other._minute * 60 + other._hour * 3600
|
|
1743
|
+
base = timedelta(days1 - days2,
|
|
1744
|
+
secs1 - secs2,
|
|
1745
|
+
self._microsecond - other._microsecond)
|
|
1746
|
+
if self._tzinfo is other._tzinfo:
|
|
1747
|
+
return base
|
|
1748
|
+
myoff = self.utcoffset()
|
|
1749
|
+
otoff = other.utcoffset()
|
|
1750
|
+
if myoff == otoff:
|
|
1751
|
+
return base
|
|
1752
|
+
if myoff is None or otoff is None:
|
|
1753
|
+
raise TypeError("cannot mix naive and timezone-aware time")
|
|
1754
|
+
return base + otoff - myoff
|
|
1755
|
+
|
|
1756
|
+
def __hash__(self):
|
|
1757
|
+
tzoff = self.utcoffset()
|
|
1758
|
+
if tzoff is None:
|
|
1759
|
+
return hash(self._getstate()[0])
|
|
1760
|
+
days = _ymd2ord(self.year, self.month, self.day)
|
|
1761
|
+
seconds = self.hour * 3600 + self.minute * 60 + self.second
|
|
1762
|
+
return hash(timedelta(days, seconds, self.microsecond) - tzoff)
|
|
1763
|
+
|
|
1764
|
+
# Pickle support.
|
|
1765
|
+
|
|
1766
|
+
def _getstate(self):
|
|
1767
|
+
yhi, ylo = divmod(self._year, 256)
|
|
1768
|
+
us2, us3 = divmod(self._microsecond, 256)
|
|
1769
|
+
us1, us2 = divmod(us2, 256)
|
|
1770
|
+
basestate = bytes([yhi, ylo, self._month, self._day,
|
|
1771
|
+
self._hour, self._minute, self._second,
|
|
1772
|
+
us1, us2, us3])
|
|
1773
|
+
if self._tzinfo is None:
|
|
1774
|
+
return (basestate,)
|
|
1775
|
+
else:
|
|
1776
|
+
return (basestate, self._tzinfo)
|
|
1777
|
+
|
|
1778
|
+
def __setstate(self, string, tzinfo):
|
|
1779
|
+
(yhi, ylo, self._month, self._day, self._hour,
|
|
1780
|
+
self._minute, self._second, us1, us2, us3) = string
|
|
1781
|
+
self._year = yhi * 256 + ylo
|
|
1782
|
+
self._microsecond = (((us1 << 8) | us2) << 8) | us3
|
|
1783
|
+
if tzinfo is None or isinstance(tzinfo, _tzinfo_class):
|
|
1784
|
+
self._tzinfo = tzinfo
|
|
1785
|
+
else:
|
|
1786
|
+
raise TypeError("bad tzinfo state arg %r" % tzinfo)
|
|
1787
|
+
|
|
1788
|
+
def __reduce__(self):
|
|
1789
|
+
return (self.__class__, self._getstate())
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
datetime.min = datetime(1, 1, 1)
|
|
1793
|
+
datetime.max = datetime(9999, 12, 31, 23, 59, 59, 999999)
|
|
1794
|
+
datetime.resolution = timedelta(microseconds=1)
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
def _isoweek1monday(year):
|
|
1798
|
+
# Helper to calculate the day number of the Monday starting week 1
|
|
1799
|
+
# XXX This could be done more efficiently
|
|
1800
|
+
THURSDAY = 3
|
|
1801
|
+
firstday = _ymd2ord(year, 1, 1)
|
|
1802
|
+
firstweekday = (firstday + 6) % 7 # See weekday() above
|
|
1803
|
+
week1monday = firstday - firstweekday
|
|
1804
|
+
if firstweekday > THURSDAY:
|
|
1805
|
+
week1monday += 7
|
|
1806
|
+
return week1monday
|
|
1807
|
+
|
|
1808
|
+
class timezone(tzinfo):
|
|
1809
|
+
__slots__ = '_offset', '_name'
|
|
1810
|
+
|
|
1811
|
+
# Sentinel value to disallow None
|
|
1812
|
+
_Omitted = object()
|
|
1813
|
+
def __new__(cls, offset, name=_Omitted):
|
|
1814
|
+
if not isinstance(offset, timedelta):
|
|
1815
|
+
raise TypeError("offset must be a timedelta")
|
|
1816
|
+
if name is cls._Omitted:
|
|
1817
|
+
if not offset:
|
|
1818
|
+
return cls.utc
|
|
1819
|
+
name = None
|
|
1820
|
+
elif not isinstance(name, str):
|
|
1821
|
+
raise TypeError("name must be a string")
|
|
1822
|
+
if not cls._minoffset <= offset <= cls._maxoffset:
|
|
1823
|
+
raise ValueError("offset must be a timedelta"
|
|
1824
|
+
" strictly between -timedelta(hours=24) and"
|
|
1825
|
+
" timedelta(hours=24).")
|
|
1826
|
+
if (offset.microseconds != 0 or
|
|
1827
|
+
offset.seconds % 60 != 0):
|
|
1828
|
+
raise ValueError("offset must be a timedelta"
|
|
1829
|
+
" representing a whole number of minutes")
|
|
1830
|
+
return cls._create(offset, name)
|
|
1831
|
+
|
|
1832
|
+
@classmethod
|
|
1833
|
+
def _create(cls, offset, name=None):
|
|
1834
|
+
self = tzinfo.__new__(cls)
|
|
1835
|
+
self._offset = offset
|
|
1836
|
+
self._name = name
|
|
1837
|
+
return self
|
|
1838
|
+
|
|
1839
|
+
def __getinitargs__(self):
|
|
1840
|
+
"""pickle support"""
|
|
1841
|
+
if self._name is None:
|
|
1842
|
+
return (self._offset,)
|
|
1843
|
+
return (self._offset, self._name)
|
|
1844
|
+
|
|
1845
|
+
def __eq__(self, other):
|
|
1846
|
+
if type(other) != timezone:
|
|
1847
|
+
return False
|
|
1848
|
+
return self._offset == other._offset
|
|
1849
|
+
|
|
1850
|
+
def __hash__(self):
|
|
1851
|
+
return hash(self._offset)
|
|
1852
|
+
|
|
1853
|
+
def __repr__(self):
|
|
1854
|
+
"""Convert to formal string, for repr().
|
|
1855
|
+
|
|
1856
|
+
>>> tz = timezone.utc
|
|
1857
|
+
>>> repr(tz)
|
|
1858
|
+
'datetime.timezone.utc'
|
|
1859
|
+
>>> tz = timezone(timedelta(hours=-5), 'EST')
|
|
1860
|
+
>>> repr(tz)
|
|
1861
|
+
"datetime.timezone(datetime.timedelta(-1, 68400), 'EST')"
|
|
1862
|
+
"""
|
|
1863
|
+
if self is self.utc:
|
|
1864
|
+
return 'datetime.timezone.utc'
|
|
1865
|
+
if self._name is None:
|
|
1866
|
+
return "%s(%r)" % ('datetime.' + self.__class__.__name__,
|
|
1867
|
+
self._offset)
|
|
1868
|
+
return "%s(%r, %r)" % ('datetime.' + self.__class__.__name__,
|
|
1869
|
+
self._offset, self._name)
|
|
1870
|
+
|
|
1871
|
+
def __str__(self):
|
|
1872
|
+
return self.tzname(None)
|
|
1873
|
+
|
|
1874
|
+
def utcoffset(self, dt):
|
|
1875
|
+
if isinstance(dt, datetime) or dt is None:
|
|
1876
|
+
return self._offset
|
|
1877
|
+
raise TypeError("utcoffset() argument must be a datetime instance"
|
|
1878
|
+
" or None")
|
|
1879
|
+
|
|
1880
|
+
def tzname(self, dt):
|
|
1881
|
+
if isinstance(dt, datetime) or dt is None:
|
|
1882
|
+
if self._name is None:
|
|
1883
|
+
return self._name_from_offset(self._offset)
|
|
1884
|
+
return self._name
|
|
1885
|
+
raise TypeError("tzname() argument must be a datetime instance"
|
|
1886
|
+
" or None")
|
|
1887
|
+
|
|
1888
|
+
def dst(self, dt):
|
|
1889
|
+
if isinstance(dt, datetime) or dt is None:
|
|
1890
|
+
return None
|
|
1891
|
+
raise TypeError("dst() argument must be a datetime instance"
|
|
1892
|
+
" or None")
|
|
1893
|
+
|
|
1894
|
+
def fromutc(self, dt):
|
|
1895
|
+
if isinstance(dt, datetime):
|
|
1896
|
+
if dt.tzinfo is not self:
|
|
1897
|
+
raise ValueError("fromutc: dt.tzinfo "
|
|
1898
|
+
"is not self")
|
|
1899
|
+
return dt + self._offset
|
|
1900
|
+
raise TypeError("fromutc() argument must be a datetime instance"
|
|
1901
|
+
" or None")
|
|
1902
|
+
|
|
1903
|
+
_maxoffset = timedelta(hours=23, minutes=59)
|
|
1904
|
+
_minoffset = -_maxoffset
|
|
1905
|
+
|
|
1906
|
+
@staticmethod
|
|
1907
|
+
def _name_from_offset(delta):
|
|
1908
|
+
if delta < timedelta(0):
|
|
1909
|
+
sign = '-'
|
|
1910
|
+
delta = -delta
|
|
1911
|
+
else:
|
|
1912
|
+
sign = '+'
|
|
1913
|
+
hours, rest = divmod(delta, timedelta(hours=1))
|
|
1914
|
+
minutes = rest // timedelta(minutes=1)
|
|
1915
|
+
return 'UTC{}{:02d}:{:02d}'.format(sign, hours, minutes)
|
|
1916
|
+
|
|
1917
|
+
timezone.utc = timezone._create(timedelta(0))
|
|
1918
|
+
timezone.min = timezone._create(timezone._minoffset)
|
|
1919
|
+
timezone.max = timezone._create(timezone._maxoffset)
|
|
1920
|
+
_EPOCH = datetime(1970, 1, 1, tzinfo=timezone.utc)
|
|
1921
|
+
|
|
1922
|
+
# Some time zone algebra. For a datetime x, let
|
|
1923
|
+
# x.n = x stripped of its timezone -- its naive time.
|
|
1924
|
+
# x.o = x.utcoffset(), and assuming that doesn't raise an exception or
|
|
1925
|
+
# return None
|
|
1926
|
+
# x.d = x.dst(), and assuming that doesn't raise an exception or
|
|
1927
|
+
# return None
|
|
1928
|
+
# x.s = x's standard offset, x.o - x.d
|
|
1929
|
+
#
|
|
1930
|
+
# Now some derived rules, where k is a duration (timedelta).
|
|
1931
|
+
#
|
|
1932
|
+
# 1. x.o = x.s + x.d
|
|
1933
|
+
# This follows from the definition of x.s.
|
|
1934
|
+
#
|
|
1935
|
+
# 2. If x and y have the same tzinfo member, x.s = y.s.
|
|
1936
|
+
# This is actually a requirement, an assumption we need to make about
|
|
1937
|
+
# sane tzinfo classes.
|
|
1938
|
+
#
|
|
1939
|
+
# 3. The naive UTC time corresponding to x is x.n - x.o.
|
|
1940
|
+
# This is again a requirement for a sane tzinfo class.
|
|
1941
|
+
#
|
|
1942
|
+
# 4. (x+k).s = x.s
|
|
1943
|
+
# This follows from #2, and that datimetimetz+timedelta preserves tzinfo.
|
|
1944
|
+
#
|
|
1945
|
+
# 5. (x+k).n = x.n + k
|
|
1946
|
+
# Again follows from how arithmetic is defined.
|
|
1947
|
+
#
|
|
1948
|
+
# Now we can explain tz.fromutc(x). Let's assume it's an interesting case
|
|
1949
|
+
# (meaning that the various tzinfo methods exist, and don't blow up or return
|
|
1950
|
+
# None when called).
|
|
1951
|
+
#
|
|
1952
|
+
# The function wants to return a datetime y with timezone tz, equivalent to x.
|
|
1953
|
+
# x is already in UTC.
|
|
1954
|
+
#
|
|
1955
|
+
# By #3, we want
|
|
1956
|
+
#
|
|
1957
|
+
# y.n - y.o = x.n [1]
|
|
1958
|
+
#
|
|
1959
|
+
# The algorithm starts by attaching tz to x.n, and calling that y. So
|
|
1960
|
+
# x.n = y.n at the start. Then it wants to add a duration k to y, so that [1]
|
|
1961
|
+
# becomes true; in effect, we want to solve [2] for k:
|
|
1962
|
+
#
|
|
1963
|
+
# (y+k).n - (y+k).o = x.n [2]
|
|
1964
|
+
#
|
|
1965
|
+
# By #1, this is the same as
|
|
1966
|
+
#
|
|
1967
|
+
# (y+k).n - ((y+k).s + (y+k).d) = x.n [3]
|
|
1968
|
+
#
|
|
1969
|
+
# By #5, (y+k).n = y.n + k, which equals x.n + k because x.n=y.n at the start.
|
|
1970
|
+
# Substituting that into [3],
|
|
1971
|
+
#
|
|
1972
|
+
# x.n + k - (y+k).s - (y+k).d = x.n; the x.n terms cancel, leaving
|
|
1973
|
+
# k - (y+k).s - (y+k).d = 0; rearranging,
|
|
1974
|
+
# k = (y+k).s - (y+k).d; by #4, (y+k).s == y.s, so
|
|
1975
|
+
# k = y.s - (y+k).d
|
|
1976
|
+
#
|
|
1977
|
+
# On the RHS, (y+k).d can't be computed directly, but y.s can be, and we
|
|
1978
|
+
# approximate k by ignoring the (y+k).d term at first. Note that k can't be
|
|
1979
|
+
# very large, since all offset-returning methods return a duration of magnitude
|
|
1980
|
+
# less than 24 hours. For that reason, if y is firmly in std time, (y+k).d must
|
|
1981
|
+
# be 0, so ignoring it has no consequence then.
|
|
1982
|
+
#
|
|
1983
|
+
# In any case, the new value is
|
|
1984
|
+
#
|
|
1985
|
+
# z = y + y.s [4]
|
|
1986
|
+
#
|
|
1987
|
+
# It's helpful to step back at look at [4] from a higher level: it's simply
|
|
1988
|
+
# mapping from UTC to tz's standard time.
|
|
1989
|
+
#
|
|
1990
|
+
# At this point, if
|
|
1991
|
+
#
|
|
1992
|
+
# z.n - z.o = x.n [5]
|
|
1993
|
+
#
|
|
1994
|
+
# we have an equivalent time, and are almost done. The insecurity here is
|
|
1995
|
+
# at the start of daylight time. Picture US Eastern for concreteness. The wall
|
|
1996
|
+
# time jumps from 1:59 to 3:00, and wall hours of the form 2:MM don't make good
|
|
1997
|
+
# sense then. The docs ask that an Eastern tzinfo class consider such a time to
|
|
1998
|
+
# be EDT (because it's "after 2"), which is a redundant spelling of 1:MM EST
|
|
1999
|
+
# on the day DST starts. We want to return the 1:MM EST spelling because that's
|
|
2000
|
+
# the only spelling that makes sense on the local wall clock.
|
|
2001
|
+
#
|
|
2002
|
+
# In fact, if [5] holds at this point, we do have the standard-time spelling,
|
|
2003
|
+
# but that takes a bit of proof. We first prove a stronger result. What's the
|
|
2004
|
+
# difference between the LHS and RHS of [5]? Let
|
|
2005
|
+
#
|
|
2006
|
+
# diff = x.n - (z.n - z.o) [6]
|
|
2007
|
+
#
|
|
2008
|
+
# Now
|
|
2009
|
+
# z.n = by [4]
|
|
2010
|
+
# (y + y.s).n = by #5
|
|
2011
|
+
# y.n + y.s = since y.n = x.n
|
|
2012
|
+
# x.n + y.s = since z and y are have the same tzinfo member,
|
|
2013
|
+
# y.s = z.s by #2
|
|
2014
|
+
# x.n + z.s
|
|
2015
|
+
#
|
|
2016
|
+
# Plugging that back into [6] gives
|
|
2017
|
+
#
|
|
2018
|
+
# diff =
|
|
2019
|
+
# x.n - ((x.n + z.s) - z.o) = expanding
|
|
2020
|
+
# x.n - x.n - z.s + z.o = cancelling
|
|
2021
|
+
# - z.s + z.o = by #2
|
|
2022
|
+
# z.d
|
|
2023
|
+
#
|
|
2024
|
+
# So diff = z.d.
|
|
2025
|
+
#
|
|
2026
|
+
# If [5] is true now, diff = 0, so z.d = 0 too, and we have the standard-time
|
|
2027
|
+
# spelling we wanted in the endcase described above. We're done. Contrarily,
|
|
2028
|
+
# if z.d = 0, then we have a UTC equivalent, and are also done.
|
|
2029
|
+
#
|
|
2030
|
+
# If [5] is not true now, diff = z.d != 0, and z.d is the offset we need to
|
|
2031
|
+
# add to z (in effect, z is in tz's standard time, and we need to shift the
|
|
2032
|
+
# local clock into tz's daylight time).
|
|
2033
|
+
#
|
|
2034
|
+
# Let
|
|
2035
|
+
#
|
|
2036
|
+
# z' = z + z.d = z + diff [7]
|
|
2037
|
+
#
|
|
2038
|
+
# and we can again ask whether
|
|
2039
|
+
#
|
|
2040
|
+
# z'.n - z'.o = x.n [8]
|
|
2041
|
+
#
|
|
2042
|
+
# If so, we're done. If not, the tzinfo class is insane, according to the
|
|
2043
|
+
# assumptions we've made. This also requires a bit of proof. As before, let's
|
|
2044
|
+
# compute the difference between the LHS and RHS of [8] (and skipping some of
|
|
2045
|
+
# the justifications for the kinds of substitutions we've done several times
|
|
2046
|
+
# already):
|
|
2047
|
+
#
|
|
2048
|
+
# diff' = x.n - (z'.n - z'.o) = replacing z'.n via [7]
|
|
2049
|
+
# x.n - (z.n + diff - z'.o) = replacing diff via [6]
|
|
2050
|
+
# x.n - (z.n + x.n - (z.n - z.o) - z'.o) =
|
|
2051
|
+
# x.n - z.n - x.n + z.n - z.o + z'.o = cancel x.n
|
|
2052
|
+
# - z.n + z.n - z.o + z'.o = cancel z.n
|
|
2053
|
+
# - z.o + z'.o = #1 twice
|
|
2054
|
+
# -z.s - z.d + z'.s + z'.d = z and z' have same tzinfo
|
|
2055
|
+
# z'.d - z.d
|
|
2056
|
+
#
|
|
2057
|
+
# So z' is UTC-equivalent to x iff z'.d = z.d at this point. If they are equal,
|
|
2058
|
+
# we've found the UTC-equivalent so are done. In fact, we stop with [7] and
|
|
2059
|
+
# return z', not bothering to compute z'.d.
|
|
2060
|
+
#
|
|
2061
|
+
# How could z.d and z'd differ? z' = z + z.d [7], so merely moving z' by
|
|
2062
|
+
# a dst() offset, and starting *from* a time already in DST (we know z.d != 0),
|
|
2063
|
+
# would have to change the result dst() returns: we start in DST, and moving
|
|
2064
|
+
# a little further into it takes us out of DST.
|
|
2065
|
+
#
|
|
2066
|
+
# There isn't a sane case where this can happen. The closest it gets is at
|
|
2067
|
+
# the end of DST, where there's an hour in UTC with no spelling in a hybrid
|
|
2068
|
+
# tzinfo class. In US Eastern, that's 5:MM UTC = 0:MM EST = 1:MM EDT. During
|
|
2069
|
+
# that hour, on an Eastern clock 1:MM is taken as being in standard time (6:MM
|
|
2070
|
+
# UTC) because the docs insist on that, but 0:MM is taken as being in daylight
|
|
2071
|
+
# time (4:MM UTC). There is no local time mapping to 5:MM UTC. The local
|
|
2072
|
+
# clock jumps from 1:59 back to 1:00 again, and repeats the 1:MM hour in
|
|
2073
|
+
# standard time. Since that's what the local clock *does*, we want to map both
|
|
2074
|
+
# UTC hours 5:MM and 6:MM to 1:MM Eastern. The result is ambiguous
|
|
2075
|
+
# in local time, but so it goes -- it's the way the local clock works.
|
|
2076
|
+
#
|
|
2077
|
+
# When x = 5:MM UTC is the input to this algorithm, x.o=0, y.o=-5 and y.d=0,
|
|
2078
|
+
# so z=0:MM. z.d=60 (minutes) then, so [5] doesn't hold and we keep going.
|
|
2079
|
+
# z' = z + z.d = 1:MM then, and z'.d=0, and z'.d - z.d = -60 != 0 so [8]
|
|
2080
|
+
# (correctly) concludes that z' is not UTC-equivalent to x.
|
|
2081
|
+
#
|
|
2082
|
+
# Because we know z.d said z was in daylight time (else [5] would have held and
|
|
2083
|
+
# we would have stopped then), and we know z.d != z'.d (else [8] would have held
|
|
2084
|
+
# and we have stopped then), and there are only 2 possible values dst() can
|
|
2085
|
+
# return in Eastern, it follows that z'.d must be 0 (which it is in the example,
|
|
2086
|
+
# but the reasoning doesn't depend on the example -- it depends on there being
|
|
2087
|
+
# two possible dst() outcomes, one zero and the other non-zero). Therefore
|
|
2088
|
+
# z' must be in standard time, and is the spelling we want in this case.
|
|
2089
|
+
#
|
|
2090
|
+
# Note again that z' is not UTC-equivalent as far as the hybrid tzinfo class is
|
|
2091
|
+
# concerned (because it takes z' as being in standard time rather than the
|
|
2092
|
+
# daylight time we intend here), but returning it gives the real-life "local
|
|
2093
|
+
# clock repeats an hour" behavior when mapping the "unspellable" UTC hour into
|
|
2094
|
+
# tz.
|
|
2095
|
+
#
|
|
2096
|
+
# When the input is 6:MM, z=1:MM and z.d=0, and we stop at once, again with
|
|
2097
|
+
# the 1:MM standard time spelling we want.
|
|
2098
|
+
#
|
|
2099
|
+
# So how can this break? One of the assumptions must be violated. Two
|
|
2100
|
+
# possibilities:
|
|
2101
|
+
#
|
|
2102
|
+
# 1) [2] effectively says that y.s is invariant across all y belong to a given
|
|
2103
|
+
# time zone. This isn't true if, for political reasons or continental drift,
|
|
2104
|
+
# a region decides to change its base offset from UTC.
|
|
2105
|
+
#
|
|
2106
|
+
# 2) There may be versions of "double daylight" time where the tail end of
|
|
2107
|
+
# the analysis gives up a step too early. I haven't thought about that
|
|
2108
|
+
# enough to say.
|
|
2109
|
+
#
|
|
2110
|
+
# In any case, it's clear that the default fromutc() is strong enough to handle
|
|
2111
|
+
# "almost all" time zones: so long as the standard offset is invariant, it
|
|
2112
|
+
# doesn't matter if daylight time transition points change from year to year, or
|
|
2113
|
+
# if daylight time is skipped in some years; it doesn't matter how large or
|
|
2114
|
+
# small dst() may get within its bounds; and it doesn't even matter if some
|
|
2115
|
+
# perverse time zone returns a negative dst()). So a breaking case must be
|
|
2116
|
+
# pretty bizarre, and a tzinfo subclass can override fromutc() if it is.
|
|
2117
|
+
|
|
2118
|
+
try:
|
|
2119
|
+
from _datetime import *
|
|
2120
|
+
except ImportError:
|
|
2121
|
+
pass
|
|
2122
|
+
else:
|
|
2123
|
+
# Clean up unused names
|
|
2124
|
+
del (_DAYNAMES, _DAYS_BEFORE_MONTH, _DAYS_IN_MONTH,
|
|
2125
|
+
_DI100Y, _DI400Y, _DI4Y, _MAXORDINAL, _MONTHNAMES,
|
|
2126
|
+
_build_struct_time, _call_tzinfo_method, _check_date_fields,
|
|
2127
|
+
_check_time_fields, _check_tzinfo_arg, _check_tzname,
|
|
2128
|
+
_check_utc_offset, _cmp, _cmperror, _date_class, _days_before_month,
|
|
2129
|
+
_days_before_year, _days_in_month, _format_time, _is_leap,
|
|
2130
|
+
_isoweek1monday, _math, _ord2ymd, _time, _time_class, _tzinfo_class,
|
|
2131
|
+
_wrap_strftime, _ymd2ord)
|
|
2132
|
+
# XXX Since import * above excludes names that start with _,
|
|
2133
|
+
# docstring does not get overwritten. In the future, it may be
|
|
2134
|
+
# appropriate to maintain a single module level docstring and
|
|
2135
|
+
# remove the following line.
|
|
2136
|
+
from _datetime import __doc__
|