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,2287 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
import time
|
|
4
|
+
import stat
|
|
5
|
+
import socket
|
|
6
|
+
import email
|
|
7
|
+
import email.message
|
|
8
|
+
import re
|
|
9
|
+
import io
|
|
10
|
+
import shutil
|
|
11
|
+
import tempfile
|
|
12
|
+
from test import support
|
|
13
|
+
import unittest
|
|
14
|
+
import textwrap
|
|
15
|
+
import mailbox
|
|
16
|
+
import glob
|
|
17
|
+
try:
|
|
18
|
+
import fcntl
|
|
19
|
+
except ImportError:
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TestBase:
|
|
24
|
+
|
|
25
|
+
all_mailbox_types = (mailbox.Message, mailbox.MaildirMessage,
|
|
26
|
+
mailbox.mboxMessage, mailbox.MHMessage,
|
|
27
|
+
mailbox.BabylMessage, mailbox.MMDFMessage)
|
|
28
|
+
|
|
29
|
+
def _check_sample(self, msg):
|
|
30
|
+
# Inspect a mailbox.Message representation of the sample message
|
|
31
|
+
self.assertIsInstance(msg, email.message.Message)
|
|
32
|
+
self.assertIsInstance(msg, mailbox.Message)
|
|
33
|
+
for key, value in _sample_headers.items():
|
|
34
|
+
self.assertIn(value, msg.get_all(key))
|
|
35
|
+
self.assertTrue(msg.is_multipart())
|
|
36
|
+
self.assertEqual(len(msg.get_payload()), len(_sample_payloads))
|
|
37
|
+
for i, payload in enumerate(_sample_payloads):
|
|
38
|
+
part = msg.get_payload(i)
|
|
39
|
+
self.assertIsInstance(part, email.message.Message)
|
|
40
|
+
self.assertNotIsInstance(part, mailbox.Message)
|
|
41
|
+
self.assertEqual(part.get_payload(), payload)
|
|
42
|
+
|
|
43
|
+
def _delete_recursively(self, target):
|
|
44
|
+
# Delete a file or delete a directory recursively
|
|
45
|
+
if os.path.isdir(target):
|
|
46
|
+
support.rmtree(target)
|
|
47
|
+
elif os.path.exists(target):
|
|
48
|
+
support.unlink(target)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class TestMailbox(TestBase):
|
|
52
|
+
|
|
53
|
+
maxDiff = None
|
|
54
|
+
|
|
55
|
+
_factory = None # Overridden by subclasses to reuse tests
|
|
56
|
+
_template = 'From: foo\n\n%s\n'
|
|
57
|
+
|
|
58
|
+
def setUp(self):
|
|
59
|
+
self._path = support.TESTFN
|
|
60
|
+
self._delete_recursively(self._path)
|
|
61
|
+
self._box = self._factory(self._path)
|
|
62
|
+
|
|
63
|
+
def tearDown(self):
|
|
64
|
+
self._box.close()
|
|
65
|
+
self._delete_recursively(self._path)
|
|
66
|
+
|
|
67
|
+
def test_add(self):
|
|
68
|
+
# Add copies of a sample message
|
|
69
|
+
keys = []
|
|
70
|
+
keys.append(self._box.add(self._template % 0))
|
|
71
|
+
self.assertEqual(len(self._box), 1)
|
|
72
|
+
keys.append(self._box.add(mailbox.Message(_sample_message)))
|
|
73
|
+
self.assertEqual(len(self._box), 2)
|
|
74
|
+
keys.append(self._box.add(email.message_from_string(_sample_message)))
|
|
75
|
+
self.assertEqual(len(self._box), 3)
|
|
76
|
+
keys.append(self._box.add(io.BytesIO(_bytes_sample_message)))
|
|
77
|
+
self.assertEqual(len(self._box), 4)
|
|
78
|
+
keys.append(self._box.add(_sample_message))
|
|
79
|
+
self.assertEqual(len(self._box), 5)
|
|
80
|
+
keys.append(self._box.add(_bytes_sample_message))
|
|
81
|
+
self.assertEqual(len(self._box), 6)
|
|
82
|
+
with self.assertWarns(DeprecationWarning):
|
|
83
|
+
keys.append(self._box.add(
|
|
84
|
+
io.TextIOWrapper(io.BytesIO(_bytes_sample_message))))
|
|
85
|
+
self.assertEqual(len(self._box), 7)
|
|
86
|
+
self.assertEqual(self._box.get_string(keys[0]), self._template % 0)
|
|
87
|
+
for i in (1, 2, 3, 4, 5, 6):
|
|
88
|
+
self._check_sample(self._box[keys[i]])
|
|
89
|
+
|
|
90
|
+
_nonascii_msg = textwrap.dedent("""\
|
|
91
|
+
From: foo
|
|
92
|
+
Subject: Falinaptár házhozszállítással. Már rendeltél?
|
|
93
|
+
|
|
94
|
+
0
|
|
95
|
+
""")
|
|
96
|
+
|
|
97
|
+
def test_add_invalid_8bit_bytes_header(self):
|
|
98
|
+
key = self._box.add(self._nonascii_msg.encode('latin-1'))
|
|
99
|
+
self.assertEqual(len(self._box), 1)
|
|
100
|
+
self.assertEqual(self._box.get_bytes(key),
|
|
101
|
+
self._nonascii_msg.encode('latin-1'))
|
|
102
|
+
|
|
103
|
+
def test_invalid_nonascii_header_as_string(self):
|
|
104
|
+
subj = self._nonascii_msg.splitlines()[1]
|
|
105
|
+
key = self._box.add(subj.encode('latin-1'))
|
|
106
|
+
self.assertEqual(self._box.get_string(key),
|
|
107
|
+
'Subject: =?unknown-8bit?b?RmFsaW5hcHThciBo4Xpob3pzeuFsbO104XNz'
|
|
108
|
+
'YWwuIE3hciByZW5kZWx06Ww/?=\n\n')
|
|
109
|
+
|
|
110
|
+
def test_add_nonascii_string_header_raises(self):
|
|
111
|
+
with self.assertRaisesRegex(ValueError, "ASCII-only"):
|
|
112
|
+
self._box.add(self._nonascii_msg)
|
|
113
|
+
self._box.flush()
|
|
114
|
+
self.assertEqual(len(self._box), 0)
|
|
115
|
+
self.assertMailboxEmpty()
|
|
116
|
+
|
|
117
|
+
def test_add_that_raises_leaves_mailbox_empty(self):
|
|
118
|
+
def raiser(*args, **kw):
|
|
119
|
+
raise Exception("a fake error")
|
|
120
|
+
support.patch(self, email.generator.BytesGenerator, 'flatten', raiser)
|
|
121
|
+
with self.assertRaises(Exception):
|
|
122
|
+
self._box.add(email.message_from_string("From: Alphöso"))
|
|
123
|
+
self.assertEqual(len(self._box), 0)
|
|
124
|
+
self._box.close()
|
|
125
|
+
self.assertMailboxEmpty()
|
|
126
|
+
|
|
127
|
+
_non_latin_bin_msg = textwrap.dedent("""\
|
|
128
|
+
From: foo@bar.com
|
|
129
|
+
To: báz
|
|
130
|
+
Subject: Maintenant je vous présente mon collègue, le pouf célèbre
|
|
131
|
+
\tJean de Baddie
|
|
132
|
+
Mime-Version: 1.0
|
|
133
|
+
Content-Type: text/plain; charset="utf-8"
|
|
134
|
+
Content-Transfer-Encoding: 8bit
|
|
135
|
+
|
|
136
|
+
Да, они летят.
|
|
137
|
+
""").encode('utf-8')
|
|
138
|
+
|
|
139
|
+
def test_add_8bit_body(self):
|
|
140
|
+
key = self._box.add(self._non_latin_bin_msg)
|
|
141
|
+
self.assertEqual(self._box.get_bytes(key),
|
|
142
|
+
self._non_latin_bin_msg)
|
|
143
|
+
with self._box.get_file(key) as f:
|
|
144
|
+
self.assertEqual(f.read(),
|
|
145
|
+
self._non_latin_bin_msg.replace(b'\n',
|
|
146
|
+
os.linesep.encode()))
|
|
147
|
+
self.assertEqual(self._box[key].get_payload(),
|
|
148
|
+
"Да, они летят.\n")
|
|
149
|
+
|
|
150
|
+
def test_add_binary_file(self):
|
|
151
|
+
with tempfile.TemporaryFile('wb+') as f:
|
|
152
|
+
f.write(_bytes_sample_message)
|
|
153
|
+
f.seek(0)
|
|
154
|
+
key = self._box.add(f)
|
|
155
|
+
self.assertEqual(self._box.get_bytes(key).split(b'\n'),
|
|
156
|
+
_bytes_sample_message.split(b'\n'))
|
|
157
|
+
|
|
158
|
+
def test_add_binary_nonascii_file(self):
|
|
159
|
+
with tempfile.TemporaryFile('wb+') as f:
|
|
160
|
+
f.write(self._non_latin_bin_msg)
|
|
161
|
+
f.seek(0)
|
|
162
|
+
key = self._box.add(f)
|
|
163
|
+
self.assertEqual(self._box.get_bytes(key).split(b'\n'),
|
|
164
|
+
self._non_latin_bin_msg.split(b'\n'))
|
|
165
|
+
|
|
166
|
+
def test_add_text_file_warns(self):
|
|
167
|
+
with tempfile.TemporaryFile('w+') as f:
|
|
168
|
+
f.write(_sample_message)
|
|
169
|
+
f.seek(0)
|
|
170
|
+
with self.assertWarns(DeprecationWarning):
|
|
171
|
+
key = self._box.add(f)
|
|
172
|
+
self.assertEqual(self._box.get_bytes(key).split(b'\n'),
|
|
173
|
+
_bytes_sample_message.split(b'\n'))
|
|
174
|
+
|
|
175
|
+
def test_add_StringIO_warns(self):
|
|
176
|
+
with self.assertWarns(DeprecationWarning):
|
|
177
|
+
key = self._box.add(io.StringIO(self._template % "0"))
|
|
178
|
+
self.assertEqual(self._box.get_string(key), self._template % "0")
|
|
179
|
+
|
|
180
|
+
def test_add_nonascii_StringIO_raises(self):
|
|
181
|
+
with self.assertWarns(DeprecationWarning):
|
|
182
|
+
with self.assertRaisesRegex(ValueError, "ASCII-only"):
|
|
183
|
+
self._box.add(io.StringIO(self._nonascii_msg))
|
|
184
|
+
self.assertEqual(len(self._box), 0)
|
|
185
|
+
self._box.close()
|
|
186
|
+
self.assertMailboxEmpty()
|
|
187
|
+
|
|
188
|
+
def test_remove(self):
|
|
189
|
+
# Remove messages using remove()
|
|
190
|
+
self._test_remove_or_delitem(self._box.remove)
|
|
191
|
+
|
|
192
|
+
def test_delitem(self):
|
|
193
|
+
# Remove messages using __delitem__()
|
|
194
|
+
self._test_remove_or_delitem(self._box.__delitem__)
|
|
195
|
+
|
|
196
|
+
def _test_remove_or_delitem(self, method):
|
|
197
|
+
# (Used by test_remove() and test_delitem().)
|
|
198
|
+
key0 = self._box.add(self._template % 0)
|
|
199
|
+
key1 = self._box.add(self._template % 1)
|
|
200
|
+
self.assertEqual(len(self._box), 2)
|
|
201
|
+
method(key0)
|
|
202
|
+
self.assertEqual(len(self._box), 1)
|
|
203
|
+
self.assertRaises(KeyError, lambda: self._box[key0])
|
|
204
|
+
self.assertRaises(KeyError, lambda: method(key0))
|
|
205
|
+
self.assertEqual(self._box.get_string(key1), self._template % 1)
|
|
206
|
+
key2 = self._box.add(self._template % 2)
|
|
207
|
+
self.assertEqual(len(self._box), 2)
|
|
208
|
+
method(key2)
|
|
209
|
+
self.assertEqual(len(self._box), 1)
|
|
210
|
+
self.assertRaises(KeyError, lambda: self._box[key2])
|
|
211
|
+
self.assertRaises(KeyError, lambda: method(key2))
|
|
212
|
+
self.assertEqual(self._box.get_string(key1), self._template % 1)
|
|
213
|
+
method(key1)
|
|
214
|
+
self.assertEqual(len(self._box), 0)
|
|
215
|
+
self.assertRaises(KeyError, lambda: self._box[key1])
|
|
216
|
+
self.assertRaises(KeyError, lambda: method(key1))
|
|
217
|
+
|
|
218
|
+
def test_discard(self, repetitions=10):
|
|
219
|
+
# Discard messages
|
|
220
|
+
key0 = self._box.add(self._template % 0)
|
|
221
|
+
key1 = self._box.add(self._template % 1)
|
|
222
|
+
self.assertEqual(len(self._box), 2)
|
|
223
|
+
self._box.discard(key0)
|
|
224
|
+
self.assertEqual(len(self._box), 1)
|
|
225
|
+
self.assertRaises(KeyError, lambda: self._box[key0])
|
|
226
|
+
self._box.discard(key0)
|
|
227
|
+
self.assertEqual(len(self._box), 1)
|
|
228
|
+
self.assertRaises(KeyError, lambda: self._box[key0])
|
|
229
|
+
|
|
230
|
+
def test_get(self):
|
|
231
|
+
# Retrieve messages using get()
|
|
232
|
+
key0 = self._box.add(self._template % 0)
|
|
233
|
+
msg = self._box.get(key0)
|
|
234
|
+
self.assertEqual(msg['from'], 'foo')
|
|
235
|
+
self.assertEqual(msg.get_payload(), '0\n')
|
|
236
|
+
self.assertIsNone(self._box.get('foo'))
|
|
237
|
+
self.assertIs(self._box.get('foo', False), False)
|
|
238
|
+
self._box.close()
|
|
239
|
+
self._box = self._factory(self._path)
|
|
240
|
+
key1 = self._box.add(self._template % 1)
|
|
241
|
+
msg = self._box.get(key1)
|
|
242
|
+
self.assertEqual(msg['from'], 'foo')
|
|
243
|
+
self.assertEqual(msg.get_payload(), '1\n')
|
|
244
|
+
|
|
245
|
+
def test_getitem(self):
|
|
246
|
+
# Retrieve message using __getitem__()
|
|
247
|
+
key0 = self._box.add(self._template % 0)
|
|
248
|
+
msg = self._box[key0]
|
|
249
|
+
self.assertEqual(msg['from'], 'foo')
|
|
250
|
+
self.assertEqual(msg.get_payload(), '0\n')
|
|
251
|
+
self.assertRaises(KeyError, lambda: self._box['foo'])
|
|
252
|
+
self._box.discard(key0)
|
|
253
|
+
self.assertRaises(KeyError, lambda: self._box[key0])
|
|
254
|
+
|
|
255
|
+
def test_get_message(self):
|
|
256
|
+
# Get Message representations of messages
|
|
257
|
+
key0 = self._box.add(self._template % 0)
|
|
258
|
+
key1 = self._box.add(_sample_message)
|
|
259
|
+
msg0 = self._box.get_message(key0)
|
|
260
|
+
self.assertIsInstance(msg0, mailbox.Message)
|
|
261
|
+
self.assertEqual(msg0['from'], 'foo')
|
|
262
|
+
self.assertEqual(msg0.get_payload(), '0\n')
|
|
263
|
+
self._check_sample(self._box.get_message(key1))
|
|
264
|
+
|
|
265
|
+
def test_get_bytes(self):
|
|
266
|
+
# Get bytes representations of messages
|
|
267
|
+
key0 = self._box.add(self._template % 0)
|
|
268
|
+
key1 = self._box.add(_sample_message)
|
|
269
|
+
self.assertEqual(self._box.get_bytes(key0),
|
|
270
|
+
(self._template % 0).encode('ascii'))
|
|
271
|
+
self.assertEqual(self._box.get_bytes(key1), _bytes_sample_message)
|
|
272
|
+
|
|
273
|
+
def test_get_string(self):
|
|
274
|
+
# Get string representations of messages
|
|
275
|
+
key0 = self._box.add(self._template % 0)
|
|
276
|
+
key1 = self._box.add(_sample_message)
|
|
277
|
+
self.assertEqual(self._box.get_string(key0), self._template % 0)
|
|
278
|
+
self.assertEqual(self._box.get_string(key1).split('\n'),
|
|
279
|
+
_sample_message.split('\n'))
|
|
280
|
+
|
|
281
|
+
def test_get_file(self):
|
|
282
|
+
# Get file representations of messages
|
|
283
|
+
key0 = self._box.add(self._template % 0)
|
|
284
|
+
key1 = self._box.add(_sample_message)
|
|
285
|
+
with self._box.get_file(key0) as file:
|
|
286
|
+
data0 = file.read()
|
|
287
|
+
with self._box.get_file(key1) as file:
|
|
288
|
+
data1 = file.read()
|
|
289
|
+
self.assertEqual(data0.decode('ascii').replace(os.linesep, '\n'),
|
|
290
|
+
self._template % 0)
|
|
291
|
+
self.assertEqual(data1.decode('ascii').replace(os.linesep, '\n'),
|
|
292
|
+
_sample_message)
|
|
293
|
+
|
|
294
|
+
def test_get_file_can_be_closed_twice(self):
|
|
295
|
+
# Issue 11700
|
|
296
|
+
key = self._box.add(_sample_message)
|
|
297
|
+
f = self._box.get_file(key)
|
|
298
|
+
f.close()
|
|
299
|
+
f.close()
|
|
300
|
+
|
|
301
|
+
def test_iterkeys(self):
|
|
302
|
+
# Get keys using iterkeys()
|
|
303
|
+
self._check_iteration(self._box.iterkeys, do_keys=True, do_values=False)
|
|
304
|
+
|
|
305
|
+
def test_keys(self):
|
|
306
|
+
# Get keys using keys()
|
|
307
|
+
self._check_iteration(self._box.keys, do_keys=True, do_values=False)
|
|
308
|
+
|
|
309
|
+
def test_itervalues(self):
|
|
310
|
+
# Get values using itervalues()
|
|
311
|
+
self._check_iteration(self._box.itervalues, do_keys=False,
|
|
312
|
+
do_values=True)
|
|
313
|
+
|
|
314
|
+
def test_iter(self):
|
|
315
|
+
# Get values using __iter__()
|
|
316
|
+
self._check_iteration(self._box.__iter__, do_keys=False,
|
|
317
|
+
do_values=True)
|
|
318
|
+
|
|
319
|
+
def test_values(self):
|
|
320
|
+
# Get values using values()
|
|
321
|
+
self._check_iteration(self._box.values, do_keys=False, do_values=True)
|
|
322
|
+
|
|
323
|
+
def test_iteritems(self):
|
|
324
|
+
# Get keys and values using iteritems()
|
|
325
|
+
self._check_iteration(self._box.iteritems, do_keys=True,
|
|
326
|
+
do_values=True)
|
|
327
|
+
|
|
328
|
+
def test_items(self):
|
|
329
|
+
# Get keys and values using items()
|
|
330
|
+
self._check_iteration(self._box.items, do_keys=True, do_values=True)
|
|
331
|
+
|
|
332
|
+
def _check_iteration(self, method, do_keys, do_values, repetitions=10):
|
|
333
|
+
for value in method():
|
|
334
|
+
self.fail("Not empty")
|
|
335
|
+
keys, values = [], []
|
|
336
|
+
for i in range(repetitions):
|
|
337
|
+
keys.append(self._box.add(self._template % i))
|
|
338
|
+
values.append(self._template % i)
|
|
339
|
+
if do_keys and not do_values:
|
|
340
|
+
returned_keys = list(method())
|
|
341
|
+
elif do_values and not do_keys:
|
|
342
|
+
returned_values = list(method())
|
|
343
|
+
else:
|
|
344
|
+
returned_keys, returned_values = [], []
|
|
345
|
+
for key, value in method():
|
|
346
|
+
returned_keys.append(key)
|
|
347
|
+
returned_values.append(value)
|
|
348
|
+
if do_keys:
|
|
349
|
+
self.assertEqual(len(keys), len(returned_keys))
|
|
350
|
+
self.assertEqual(set(keys), set(returned_keys))
|
|
351
|
+
if do_values:
|
|
352
|
+
count = 0
|
|
353
|
+
for value in returned_values:
|
|
354
|
+
self.assertEqual(value['from'], 'foo')
|
|
355
|
+
self.assertLess(int(value.get_payload()), repetitions)
|
|
356
|
+
count += 1
|
|
357
|
+
self.assertEqual(len(values), count)
|
|
358
|
+
|
|
359
|
+
def test_contains(self):
|
|
360
|
+
# Check existence of keys using __contains__()
|
|
361
|
+
self.assertNotIn('foo', self._box)
|
|
362
|
+
key0 = self._box.add(self._template % 0)
|
|
363
|
+
self.assertIn(key0, self._box)
|
|
364
|
+
self.assertNotIn('foo', self._box)
|
|
365
|
+
key1 = self._box.add(self._template % 1)
|
|
366
|
+
self.assertIn(key1, self._box)
|
|
367
|
+
self.assertIn(key0, self._box)
|
|
368
|
+
self.assertNotIn('foo', self._box)
|
|
369
|
+
self._box.remove(key0)
|
|
370
|
+
self.assertNotIn(key0, self._box)
|
|
371
|
+
self.assertIn(key1, self._box)
|
|
372
|
+
self.assertNotIn('foo', self._box)
|
|
373
|
+
self._box.remove(key1)
|
|
374
|
+
self.assertNotIn(key1, self._box)
|
|
375
|
+
self.assertNotIn(key0, self._box)
|
|
376
|
+
self.assertNotIn('foo', self._box)
|
|
377
|
+
|
|
378
|
+
def test_len(self, repetitions=10):
|
|
379
|
+
# Get message count
|
|
380
|
+
keys = []
|
|
381
|
+
for i in range(repetitions):
|
|
382
|
+
self.assertEqual(len(self._box), i)
|
|
383
|
+
keys.append(self._box.add(self._template % i))
|
|
384
|
+
self.assertEqual(len(self._box), i + 1)
|
|
385
|
+
for i in range(repetitions):
|
|
386
|
+
self.assertEqual(len(self._box), repetitions - i)
|
|
387
|
+
self._box.remove(keys[i])
|
|
388
|
+
self.assertEqual(len(self._box), repetitions - i - 1)
|
|
389
|
+
|
|
390
|
+
def test_set_item(self):
|
|
391
|
+
# Modify messages using __setitem__()
|
|
392
|
+
key0 = self._box.add(self._template % 'original 0')
|
|
393
|
+
self.assertEqual(self._box.get_string(key0),
|
|
394
|
+
self._template % 'original 0')
|
|
395
|
+
key1 = self._box.add(self._template % 'original 1')
|
|
396
|
+
self.assertEqual(self._box.get_string(key1),
|
|
397
|
+
self._template % 'original 1')
|
|
398
|
+
self._box[key0] = self._template % 'changed 0'
|
|
399
|
+
self.assertEqual(self._box.get_string(key0),
|
|
400
|
+
self._template % 'changed 0')
|
|
401
|
+
self._box[key1] = self._template % 'changed 1'
|
|
402
|
+
self.assertEqual(self._box.get_string(key1),
|
|
403
|
+
self._template % 'changed 1')
|
|
404
|
+
self._box[key0] = _sample_message
|
|
405
|
+
self._check_sample(self._box[key0])
|
|
406
|
+
self._box[key1] = self._box[key0]
|
|
407
|
+
self._check_sample(self._box[key1])
|
|
408
|
+
self._box[key0] = self._template % 'original 0'
|
|
409
|
+
self.assertEqual(self._box.get_string(key0),
|
|
410
|
+
self._template % 'original 0')
|
|
411
|
+
self._check_sample(self._box[key1])
|
|
412
|
+
self.assertRaises(KeyError,
|
|
413
|
+
lambda: self._box.__setitem__('foo', 'bar'))
|
|
414
|
+
self.assertRaises(KeyError, lambda: self._box['foo'])
|
|
415
|
+
self.assertEqual(len(self._box), 2)
|
|
416
|
+
|
|
417
|
+
def test_clear(self, iterations=10):
|
|
418
|
+
# Remove all messages using clear()
|
|
419
|
+
keys = []
|
|
420
|
+
for i in range(iterations):
|
|
421
|
+
self._box.add(self._template % i)
|
|
422
|
+
for i, key in enumerate(keys):
|
|
423
|
+
self.assertEqual(self._box.get_string(key), self._template % i)
|
|
424
|
+
self._box.clear()
|
|
425
|
+
self.assertEqual(len(self._box), 0)
|
|
426
|
+
for i, key in enumerate(keys):
|
|
427
|
+
self.assertRaises(KeyError, lambda: self._box.get_string(key))
|
|
428
|
+
|
|
429
|
+
def test_pop(self):
|
|
430
|
+
# Get and remove a message using pop()
|
|
431
|
+
key0 = self._box.add(self._template % 0)
|
|
432
|
+
self.assertIn(key0, self._box)
|
|
433
|
+
key1 = self._box.add(self._template % 1)
|
|
434
|
+
self.assertIn(key1, self._box)
|
|
435
|
+
self.assertEqual(self._box.pop(key0).get_payload(), '0\n')
|
|
436
|
+
self.assertNotIn(key0, self._box)
|
|
437
|
+
self.assertIn(key1, self._box)
|
|
438
|
+
key2 = self._box.add(self._template % 2)
|
|
439
|
+
self.assertIn(key2, self._box)
|
|
440
|
+
self.assertEqual(self._box.pop(key2).get_payload(), '2\n')
|
|
441
|
+
self.assertNotIn(key2, self._box)
|
|
442
|
+
self.assertIn(key1, self._box)
|
|
443
|
+
self.assertEqual(self._box.pop(key1).get_payload(), '1\n')
|
|
444
|
+
self.assertNotIn(key1, self._box)
|
|
445
|
+
self.assertEqual(len(self._box), 0)
|
|
446
|
+
|
|
447
|
+
def test_popitem(self, iterations=10):
|
|
448
|
+
# Get and remove an arbitrary (key, message) using popitem()
|
|
449
|
+
keys = []
|
|
450
|
+
for i in range(10):
|
|
451
|
+
keys.append(self._box.add(self._template % i))
|
|
452
|
+
seen = []
|
|
453
|
+
for i in range(10):
|
|
454
|
+
key, msg = self._box.popitem()
|
|
455
|
+
self.assertIn(key, keys)
|
|
456
|
+
self.assertNotIn(key, seen)
|
|
457
|
+
seen.append(key)
|
|
458
|
+
self.assertEqual(int(msg.get_payload()), keys.index(key))
|
|
459
|
+
self.assertEqual(len(self._box), 0)
|
|
460
|
+
for key in keys:
|
|
461
|
+
self.assertRaises(KeyError, lambda: self._box[key])
|
|
462
|
+
|
|
463
|
+
def test_update(self):
|
|
464
|
+
# Modify multiple messages using update()
|
|
465
|
+
key0 = self._box.add(self._template % 'original 0')
|
|
466
|
+
key1 = self._box.add(self._template % 'original 1')
|
|
467
|
+
key2 = self._box.add(self._template % 'original 2')
|
|
468
|
+
self._box.update({key0: self._template % 'changed 0',
|
|
469
|
+
key2: _sample_message})
|
|
470
|
+
self.assertEqual(len(self._box), 3)
|
|
471
|
+
self.assertEqual(self._box.get_string(key0),
|
|
472
|
+
self._template % 'changed 0')
|
|
473
|
+
self.assertEqual(self._box.get_string(key1),
|
|
474
|
+
self._template % 'original 1')
|
|
475
|
+
self._check_sample(self._box[key2])
|
|
476
|
+
self._box.update([(key2, self._template % 'changed 2'),
|
|
477
|
+
(key1, self._template % 'changed 1'),
|
|
478
|
+
(key0, self._template % 'original 0')])
|
|
479
|
+
self.assertEqual(len(self._box), 3)
|
|
480
|
+
self.assertEqual(self._box.get_string(key0),
|
|
481
|
+
self._template % 'original 0')
|
|
482
|
+
self.assertEqual(self._box.get_string(key1),
|
|
483
|
+
self._template % 'changed 1')
|
|
484
|
+
self.assertEqual(self._box.get_string(key2),
|
|
485
|
+
self._template % 'changed 2')
|
|
486
|
+
self.assertRaises(KeyError,
|
|
487
|
+
lambda: self._box.update({'foo': 'bar',
|
|
488
|
+
key0: self._template % "changed 0"}))
|
|
489
|
+
self.assertEqual(len(self._box), 3)
|
|
490
|
+
self.assertEqual(self._box.get_string(key0),
|
|
491
|
+
self._template % "changed 0")
|
|
492
|
+
self.assertEqual(self._box.get_string(key1),
|
|
493
|
+
self._template % "changed 1")
|
|
494
|
+
self.assertEqual(self._box.get_string(key2),
|
|
495
|
+
self._template % "changed 2")
|
|
496
|
+
|
|
497
|
+
def test_flush(self):
|
|
498
|
+
# Write changes to disk
|
|
499
|
+
self._test_flush_or_close(self._box.flush, True)
|
|
500
|
+
|
|
501
|
+
def test_popitem_and_flush_twice(self):
|
|
502
|
+
# See #15036.
|
|
503
|
+
self._box.add(self._template % 0)
|
|
504
|
+
self._box.add(self._template % 1)
|
|
505
|
+
self._box.flush()
|
|
506
|
+
|
|
507
|
+
self._box.popitem()
|
|
508
|
+
self._box.flush()
|
|
509
|
+
self._box.popitem()
|
|
510
|
+
self._box.flush()
|
|
511
|
+
|
|
512
|
+
def test_lock_unlock(self):
|
|
513
|
+
# Lock and unlock the mailbox
|
|
514
|
+
self.assertFalse(os.path.exists(self._get_lock_path()))
|
|
515
|
+
self._box.lock()
|
|
516
|
+
self.assertTrue(os.path.exists(self._get_lock_path()))
|
|
517
|
+
self._box.unlock()
|
|
518
|
+
self.assertFalse(os.path.exists(self._get_lock_path()))
|
|
519
|
+
|
|
520
|
+
def test_close(self):
|
|
521
|
+
# Close mailbox and flush changes to disk
|
|
522
|
+
self._test_flush_or_close(self._box.close, False)
|
|
523
|
+
|
|
524
|
+
def _test_flush_or_close(self, method, should_call_close):
|
|
525
|
+
contents = [self._template % i for i in range(3)]
|
|
526
|
+
self._box.add(contents[0])
|
|
527
|
+
self._box.add(contents[1])
|
|
528
|
+
self._box.add(contents[2])
|
|
529
|
+
oldbox = self._box
|
|
530
|
+
method()
|
|
531
|
+
if should_call_close:
|
|
532
|
+
self._box.close()
|
|
533
|
+
self._box = self._factory(self._path)
|
|
534
|
+
keys = self._box.keys()
|
|
535
|
+
self.assertEqual(len(keys), 3)
|
|
536
|
+
for key in keys:
|
|
537
|
+
self.assertIn(self._box.get_string(key), contents)
|
|
538
|
+
oldbox.close()
|
|
539
|
+
|
|
540
|
+
def test_dump_message(self):
|
|
541
|
+
# Write message representations to disk
|
|
542
|
+
for input in (email.message_from_string(_sample_message),
|
|
543
|
+
_sample_message, io.BytesIO(_bytes_sample_message)):
|
|
544
|
+
output = io.BytesIO()
|
|
545
|
+
self._box._dump_message(input, output)
|
|
546
|
+
self.assertEqual(output.getvalue(),
|
|
547
|
+
_bytes_sample_message.replace(b'\n', os.linesep.encode()))
|
|
548
|
+
output = io.BytesIO()
|
|
549
|
+
self.assertRaises(TypeError,
|
|
550
|
+
lambda: self._box._dump_message(None, output))
|
|
551
|
+
|
|
552
|
+
def _get_lock_path(self):
|
|
553
|
+
# Return the path of the dot lock file. May be overridden.
|
|
554
|
+
return self._path + '.lock'
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
class TestMailboxSuperclass(TestBase, unittest.TestCase):
|
|
558
|
+
|
|
559
|
+
def test_notimplemented(self):
|
|
560
|
+
# Test that all Mailbox methods raise NotImplementedException.
|
|
561
|
+
box = mailbox.Mailbox('path')
|
|
562
|
+
self.assertRaises(NotImplementedError, lambda: box.add(''))
|
|
563
|
+
self.assertRaises(NotImplementedError, lambda: box.remove(''))
|
|
564
|
+
self.assertRaises(NotImplementedError, lambda: box.__delitem__(''))
|
|
565
|
+
self.assertRaises(NotImplementedError, lambda: box.discard(''))
|
|
566
|
+
self.assertRaises(NotImplementedError, lambda: box.__setitem__('', ''))
|
|
567
|
+
self.assertRaises(NotImplementedError, lambda: box.iterkeys())
|
|
568
|
+
self.assertRaises(NotImplementedError, lambda: box.keys())
|
|
569
|
+
self.assertRaises(NotImplementedError, lambda: box.itervalues().__next__())
|
|
570
|
+
self.assertRaises(NotImplementedError, lambda: box.__iter__().__next__())
|
|
571
|
+
self.assertRaises(NotImplementedError, lambda: box.values())
|
|
572
|
+
self.assertRaises(NotImplementedError, lambda: box.iteritems().__next__())
|
|
573
|
+
self.assertRaises(NotImplementedError, lambda: box.items())
|
|
574
|
+
self.assertRaises(NotImplementedError, lambda: box.get(''))
|
|
575
|
+
self.assertRaises(NotImplementedError, lambda: box.__getitem__(''))
|
|
576
|
+
self.assertRaises(NotImplementedError, lambda: box.get_message(''))
|
|
577
|
+
self.assertRaises(NotImplementedError, lambda: box.get_string(''))
|
|
578
|
+
self.assertRaises(NotImplementedError, lambda: box.get_bytes(''))
|
|
579
|
+
self.assertRaises(NotImplementedError, lambda: box.get_file(''))
|
|
580
|
+
self.assertRaises(NotImplementedError, lambda: '' in box)
|
|
581
|
+
self.assertRaises(NotImplementedError, lambda: box.__contains__(''))
|
|
582
|
+
self.assertRaises(NotImplementedError, lambda: box.__len__())
|
|
583
|
+
self.assertRaises(NotImplementedError, lambda: box.clear())
|
|
584
|
+
self.assertRaises(NotImplementedError, lambda: box.pop(''))
|
|
585
|
+
self.assertRaises(NotImplementedError, lambda: box.popitem())
|
|
586
|
+
self.assertRaises(NotImplementedError, lambda: box.update((('', ''),)))
|
|
587
|
+
self.assertRaises(NotImplementedError, lambda: box.flush())
|
|
588
|
+
self.assertRaises(NotImplementedError, lambda: box.lock())
|
|
589
|
+
self.assertRaises(NotImplementedError, lambda: box.unlock())
|
|
590
|
+
self.assertRaises(NotImplementedError, lambda: box.close())
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
class TestMaildir(TestMailbox, unittest.TestCase):
|
|
594
|
+
|
|
595
|
+
_factory = lambda self, path, factory=None: mailbox.Maildir(path, factory)
|
|
596
|
+
|
|
597
|
+
def setUp(self):
|
|
598
|
+
TestMailbox.setUp(self)
|
|
599
|
+
if (os.name == 'nt') or (sys.platform == 'cygwin'):
|
|
600
|
+
self._box.colon = '!'
|
|
601
|
+
|
|
602
|
+
def assertMailboxEmpty(self):
|
|
603
|
+
self.assertEqual(os.listdir(os.path.join(self._path, 'tmp')), [])
|
|
604
|
+
|
|
605
|
+
def test_add_MM(self):
|
|
606
|
+
# Add a MaildirMessage instance
|
|
607
|
+
msg = mailbox.MaildirMessage(self._template % 0)
|
|
608
|
+
msg.set_subdir('cur')
|
|
609
|
+
msg.set_info('foo')
|
|
610
|
+
key = self._box.add(msg)
|
|
611
|
+
self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
|
|
612
|
+
(key, self._box.colon))))
|
|
613
|
+
|
|
614
|
+
def test_get_MM(self):
|
|
615
|
+
# Get a MaildirMessage instance
|
|
616
|
+
msg = mailbox.MaildirMessage(self._template % 0)
|
|
617
|
+
msg.set_subdir('cur')
|
|
618
|
+
msg.set_flags('RF')
|
|
619
|
+
key = self._box.add(msg)
|
|
620
|
+
msg_returned = self._box.get_message(key)
|
|
621
|
+
self.assertIsInstance(msg_returned, mailbox.MaildirMessage)
|
|
622
|
+
self.assertEqual(msg_returned.get_subdir(), 'cur')
|
|
623
|
+
self.assertEqual(msg_returned.get_flags(), 'FR')
|
|
624
|
+
|
|
625
|
+
def test_set_MM(self):
|
|
626
|
+
# Set with a MaildirMessage instance
|
|
627
|
+
msg0 = mailbox.MaildirMessage(self._template % 0)
|
|
628
|
+
msg0.set_flags('TP')
|
|
629
|
+
key = self._box.add(msg0)
|
|
630
|
+
msg_returned = self._box.get_message(key)
|
|
631
|
+
self.assertEqual(msg_returned.get_subdir(), 'new')
|
|
632
|
+
self.assertEqual(msg_returned.get_flags(), 'PT')
|
|
633
|
+
msg1 = mailbox.MaildirMessage(self._template % 1)
|
|
634
|
+
self._box[key] = msg1
|
|
635
|
+
msg_returned = self._box.get_message(key)
|
|
636
|
+
self.assertEqual(msg_returned.get_subdir(), 'new')
|
|
637
|
+
self.assertEqual(msg_returned.get_flags(), '')
|
|
638
|
+
self.assertEqual(msg_returned.get_payload(), '1\n')
|
|
639
|
+
msg2 = mailbox.MaildirMessage(self._template % 2)
|
|
640
|
+
msg2.set_info('2,S')
|
|
641
|
+
self._box[key] = msg2
|
|
642
|
+
self._box[key] = self._template % 3
|
|
643
|
+
msg_returned = self._box.get_message(key)
|
|
644
|
+
self.assertEqual(msg_returned.get_subdir(), 'new')
|
|
645
|
+
self.assertEqual(msg_returned.get_flags(), 'S')
|
|
646
|
+
self.assertEqual(msg_returned.get_payload(), '3\n')
|
|
647
|
+
|
|
648
|
+
def test_consistent_factory(self):
|
|
649
|
+
# Add a message.
|
|
650
|
+
msg = mailbox.MaildirMessage(self._template % 0)
|
|
651
|
+
msg.set_subdir('cur')
|
|
652
|
+
msg.set_flags('RF')
|
|
653
|
+
key = self._box.add(msg)
|
|
654
|
+
|
|
655
|
+
# Create new mailbox with
|
|
656
|
+
class FakeMessage(mailbox.MaildirMessage):
|
|
657
|
+
pass
|
|
658
|
+
box = mailbox.Maildir(self._path, factory=FakeMessage)
|
|
659
|
+
box.colon = self._box.colon
|
|
660
|
+
msg2 = box.get_message(key)
|
|
661
|
+
self.assertIsInstance(msg2, FakeMessage)
|
|
662
|
+
|
|
663
|
+
def test_initialize_new(self):
|
|
664
|
+
# Initialize a non-existent mailbox
|
|
665
|
+
self.tearDown()
|
|
666
|
+
self._box = mailbox.Maildir(self._path)
|
|
667
|
+
self._check_basics()
|
|
668
|
+
self._delete_recursively(self._path)
|
|
669
|
+
self._box = self._factory(self._path, factory=None)
|
|
670
|
+
self._check_basics()
|
|
671
|
+
|
|
672
|
+
def test_initialize_existing(self):
|
|
673
|
+
# Initialize an existing mailbox
|
|
674
|
+
self.tearDown()
|
|
675
|
+
for subdir in '', 'tmp', 'new', 'cur':
|
|
676
|
+
os.mkdir(os.path.normpath(os.path.join(self._path, subdir)))
|
|
677
|
+
self._box = mailbox.Maildir(self._path)
|
|
678
|
+
self._check_basics()
|
|
679
|
+
|
|
680
|
+
def _check_basics(self, factory=None):
|
|
681
|
+
# (Used by test_open_new() and test_open_existing().)
|
|
682
|
+
self.assertEqual(self._box._path, os.path.abspath(self._path))
|
|
683
|
+
self.assertEqual(self._box._factory, factory)
|
|
684
|
+
for subdir in '', 'tmp', 'new', 'cur':
|
|
685
|
+
path = os.path.join(self._path, subdir)
|
|
686
|
+
mode = os.stat(path)[stat.ST_MODE]
|
|
687
|
+
self.assertTrue(stat.S_ISDIR(mode), "Not a directory: '%s'" % path)
|
|
688
|
+
|
|
689
|
+
def test_list_folders(self):
|
|
690
|
+
# List folders
|
|
691
|
+
self._box.add_folder('one')
|
|
692
|
+
self._box.add_folder('two')
|
|
693
|
+
self._box.add_folder('three')
|
|
694
|
+
self.assertEqual(len(self._box.list_folders()), 3)
|
|
695
|
+
self.assertEqual(set(self._box.list_folders()),
|
|
696
|
+
set(('one', 'two', 'three')))
|
|
697
|
+
|
|
698
|
+
def test_get_folder(self):
|
|
699
|
+
# Open folders
|
|
700
|
+
self._box.add_folder('foo.bar')
|
|
701
|
+
folder0 = self._box.get_folder('foo.bar')
|
|
702
|
+
folder0.add(self._template % 'bar')
|
|
703
|
+
self.assertTrue(os.path.isdir(os.path.join(self._path, '.foo.bar')))
|
|
704
|
+
folder1 = self._box.get_folder('foo.bar')
|
|
705
|
+
self.assertEqual(folder1.get_string(folder1.keys()[0]),
|
|
706
|
+
self._template % 'bar')
|
|
707
|
+
|
|
708
|
+
def test_add_and_remove_folders(self):
|
|
709
|
+
# Delete folders
|
|
710
|
+
self._box.add_folder('one')
|
|
711
|
+
self._box.add_folder('two')
|
|
712
|
+
self.assertEqual(len(self._box.list_folders()), 2)
|
|
713
|
+
self.assertEqual(set(self._box.list_folders()), set(('one', 'two')))
|
|
714
|
+
self._box.remove_folder('one')
|
|
715
|
+
self.assertEqual(len(self._box.list_folders()), 1)
|
|
716
|
+
self.assertEqual(set(self._box.list_folders()), set(('two',)))
|
|
717
|
+
self._box.add_folder('three')
|
|
718
|
+
self.assertEqual(len(self._box.list_folders()), 2)
|
|
719
|
+
self.assertEqual(set(self._box.list_folders()), set(('two', 'three')))
|
|
720
|
+
self._box.remove_folder('three')
|
|
721
|
+
self.assertEqual(len(self._box.list_folders()), 1)
|
|
722
|
+
self.assertEqual(set(self._box.list_folders()), set(('two',)))
|
|
723
|
+
self._box.remove_folder('two')
|
|
724
|
+
self.assertEqual(len(self._box.list_folders()), 0)
|
|
725
|
+
self.assertEqual(self._box.list_folders(), [])
|
|
726
|
+
|
|
727
|
+
def test_clean(self):
|
|
728
|
+
# Remove old files from 'tmp'
|
|
729
|
+
foo_path = os.path.join(self._path, 'tmp', 'foo')
|
|
730
|
+
bar_path = os.path.join(self._path, 'tmp', 'bar')
|
|
731
|
+
with open(foo_path, 'w') as f:
|
|
732
|
+
f.write("@")
|
|
733
|
+
with open(bar_path, 'w') as f:
|
|
734
|
+
f.write("@")
|
|
735
|
+
self._box.clean()
|
|
736
|
+
self.assertTrue(os.path.exists(foo_path))
|
|
737
|
+
self.assertTrue(os.path.exists(bar_path))
|
|
738
|
+
foo_stat = os.stat(foo_path)
|
|
739
|
+
os.utime(foo_path, (time.time() - 129600 - 2,
|
|
740
|
+
foo_stat.st_mtime))
|
|
741
|
+
self._box.clean()
|
|
742
|
+
self.assertFalse(os.path.exists(foo_path))
|
|
743
|
+
self.assertTrue(os.path.exists(bar_path))
|
|
744
|
+
|
|
745
|
+
def test_create_tmp(self, repetitions=10):
|
|
746
|
+
# Create files in tmp directory
|
|
747
|
+
hostname = socket.gethostname()
|
|
748
|
+
if '/' in hostname:
|
|
749
|
+
hostname = hostname.replace('/', r'\057')
|
|
750
|
+
if ':' in hostname:
|
|
751
|
+
hostname = hostname.replace(':', r'\072')
|
|
752
|
+
pid = os.getpid()
|
|
753
|
+
pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)"
|
|
754
|
+
r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)")
|
|
755
|
+
previous_groups = None
|
|
756
|
+
for x in range(repetitions):
|
|
757
|
+
tmp_file = self._box._create_tmp()
|
|
758
|
+
head, tail = os.path.split(tmp_file.name)
|
|
759
|
+
self.assertEqual(head, os.path.abspath(os.path.join(self._path,
|
|
760
|
+
"tmp")),
|
|
761
|
+
"File in wrong location: '%s'" % head)
|
|
762
|
+
match = pattern.match(tail)
|
|
763
|
+
self.assertIsNotNone(match, "Invalid file name: '%s'" % tail)
|
|
764
|
+
groups = match.groups()
|
|
765
|
+
if previous_groups is not None:
|
|
766
|
+
self.assertGreaterEqual(int(groups[0]), int(previous_groups[0]),
|
|
767
|
+
"Non-monotonic seconds: '%s' before '%s'" %
|
|
768
|
+
(previous_groups[0], groups[0]))
|
|
769
|
+
if int(groups[0]) == int(previous_groups[0]):
|
|
770
|
+
self.assertGreaterEqual(int(groups[1]), int(previous_groups[1]),
|
|
771
|
+
"Non-monotonic milliseconds: '%s' before '%s'" %
|
|
772
|
+
(previous_groups[1], groups[1]))
|
|
773
|
+
self.assertEqual(int(groups[2]), pid,
|
|
774
|
+
"Process ID mismatch: '%s' should be '%s'" %
|
|
775
|
+
(groups[2], pid))
|
|
776
|
+
self.assertEqual(int(groups[3]), int(previous_groups[3]) + 1,
|
|
777
|
+
"Non-sequential counter: '%s' before '%s'" %
|
|
778
|
+
(previous_groups[3], groups[3]))
|
|
779
|
+
self.assertEqual(groups[4], hostname,
|
|
780
|
+
"Host name mismatch: '%s' should be '%s'" %
|
|
781
|
+
(groups[4], hostname))
|
|
782
|
+
previous_groups = groups
|
|
783
|
+
tmp_file.write(_bytes_sample_message)
|
|
784
|
+
tmp_file.seek(0)
|
|
785
|
+
self.assertEqual(tmp_file.read(), _bytes_sample_message)
|
|
786
|
+
tmp_file.close()
|
|
787
|
+
file_count = len(os.listdir(os.path.join(self._path, "tmp")))
|
|
788
|
+
self.assertEqual(file_count, repetitions,
|
|
789
|
+
"Wrong file count: '%s' should be '%s'" %
|
|
790
|
+
(file_count, repetitions))
|
|
791
|
+
|
|
792
|
+
def test_refresh(self):
|
|
793
|
+
# Update the table of contents
|
|
794
|
+
self.assertEqual(self._box._toc, {})
|
|
795
|
+
key0 = self._box.add(self._template % 0)
|
|
796
|
+
key1 = self._box.add(self._template % 1)
|
|
797
|
+
self.assertEqual(self._box._toc, {})
|
|
798
|
+
self._box._refresh()
|
|
799
|
+
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0),
|
|
800
|
+
key1: os.path.join('new', key1)})
|
|
801
|
+
key2 = self._box.add(self._template % 2)
|
|
802
|
+
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0),
|
|
803
|
+
key1: os.path.join('new', key1)})
|
|
804
|
+
self._box._refresh()
|
|
805
|
+
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0),
|
|
806
|
+
key1: os.path.join('new', key1),
|
|
807
|
+
key2: os.path.join('new', key2)})
|
|
808
|
+
|
|
809
|
+
def test_refresh_after_safety_period(self):
|
|
810
|
+
# Issue #13254: Call _refresh after the "file system safety
|
|
811
|
+
# period" of 2 seconds has passed; _toc should still be
|
|
812
|
+
# updated because this is the first call to _refresh.
|
|
813
|
+
key0 = self._box.add(self._template % 0)
|
|
814
|
+
key1 = self._box.add(self._template % 1)
|
|
815
|
+
|
|
816
|
+
self._box = self._factory(self._path)
|
|
817
|
+
self.assertEqual(self._box._toc, {})
|
|
818
|
+
|
|
819
|
+
# Emulate sleeping. Instead of sleeping for 2 seconds, use the
|
|
820
|
+
# skew factor to make _refresh think that the filesystem
|
|
821
|
+
# safety period has passed and re-reading the _toc is only
|
|
822
|
+
# required if mtimes differ.
|
|
823
|
+
self._box._skewfactor = -3
|
|
824
|
+
|
|
825
|
+
self._box._refresh()
|
|
826
|
+
self.assertEqual(sorted(self._box._toc.keys()), sorted([key0, key1]))
|
|
827
|
+
|
|
828
|
+
def test_lookup(self):
|
|
829
|
+
# Look up message subpaths in the TOC
|
|
830
|
+
self.assertRaises(KeyError, lambda: self._box._lookup('foo'))
|
|
831
|
+
key0 = self._box.add(self._template % 0)
|
|
832
|
+
self.assertEqual(self._box._lookup(key0), os.path.join('new', key0))
|
|
833
|
+
os.remove(os.path.join(self._path, 'new', key0))
|
|
834
|
+
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0)})
|
|
835
|
+
# Be sure that the TOC is read back from disk (see issue #6896
|
|
836
|
+
# about bad mtime behaviour on some systems).
|
|
837
|
+
self._box.flush()
|
|
838
|
+
self.assertRaises(KeyError, lambda: self._box._lookup(key0))
|
|
839
|
+
self.assertEqual(self._box._toc, {})
|
|
840
|
+
|
|
841
|
+
def test_lock_unlock(self):
|
|
842
|
+
# Lock and unlock the mailbox. For Maildir, this does nothing.
|
|
843
|
+
self._box.lock()
|
|
844
|
+
self._box.unlock()
|
|
845
|
+
|
|
846
|
+
def test_folder (self):
|
|
847
|
+
# Test for bug #1569790: verify that folders returned by .get_folder()
|
|
848
|
+
# use the same factory function.
|
|
849
|
+
def dummy_factory (s):
|
|
850
|
+
return None
|
|
851
|
+
box = self._factory(self._path, factory=dummy_factory)
|
|
852
|
+
folder = box.add_folder('folder1')
|
|
853
|
+
self.assertIs(folder._factory, dummy_factory)
|
|
854
|
+
|
|
855
|
+
folder1_alias = box.get_folder('folder1')
|
|
856
|
+
self.assertIs(folder1_alias._factory, dummy_factory)
|
|
857
|
+
|
|
858
|
+
def test_directory_in_folder (self):
|
|
859
|
+
# Test that mailboxes still work if there's a stray extra directory
|
|
860
|
+
# in a folder.
|
|
861
|
+
for i in range(10):
|
|
862
|
+
self._box.add(mailbox.Message(_sample_message))
|
|
863
|
+
|
|
864
|
+
# Create a stray directory
|
|
865
|
+
os.mkdir(os.path.join(self._path, 'cur', 'stray-dir'))
|
|
866
|
+
|
|
867
|
+
# Check that looping still works with the directory present.
|
|
868
|
+
for msg in self._box:
|
|
869
|
+
pass
|
|
870
|
+
|
|
871
|
+
@unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()')
|
|
872
|
+
@unittest.skipUnless(hasattr(os, 'stat'), 'test needs os.stat()')
|
|
873
|
+
def test_file_permissions(self):
|
|
874
|
+
# Verify that message files are created without execute permissions
|
|
875
|
+
msg = mailbox.MaildirMessage(self._template % 0)
|
|
876
|
+
orig_umask = os.umask(0)
|
|
877
|
+
try:
|
|
878
|
+
key = self._box.add(msg)
|
|
879
|
+
finally:
|
|
880
|
+
os.umask(orig_umask)
|
|
881
|
+
path = os.path.join(self._path, self._box._lookup(key))
|
|
882
|
+
mode = os.stat(path).st_mode
|
|
883
|
+
self.assertFalse(mode & 0o111)
|
|
884
|
+
|
|
885
|
+
@unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()')
|
|
886
|
+
@unittest.skipUnless(hasattr(os, 'stat'), 'test needs os.stat()')
|
|
887
|
+
def test_folder_file_perms(self):
|
|
888
|
+
# From bug #3228, we want to verify that the file created inside a Maildir
|
|
889
|
+
# subfolder isn't marked as executable.
|
|
890
|
+
orig_umask = os.umask(0)
|
|
891
|
+
try:
|
|
892
|
+
subfolder = self._box.add_folder('subfolder')
|
|
893
|
+
finally:
|
|
894
|
+
os.umask(orig_umask)
|
|
895
|
+
|
|
896
|
+
path = os.path.join(subfolder._path, 'maildirfolder')
|
|
897
|
+
st = os.stat(path)
|
|
898
|
+
perms = st.st_mode
|
|
899
|
+
self.assertFalse((perms & 0o111)) # Execute bits should all be off.
|
|
900
|
+
|
|
901
|
+
def test_reread(self):
|
|
902
|
+
# Do an initial unconditional refresh
|
|
903
|
+
self._box._refresh()
|
|
904
|
+
|
|
905
|
+
# Put the last modified times more than two seconds into the past
|
|
906
|
+
# (because mtime may have a two second granularity)
|
|
907
|
+
for subdir in ('cur', 'new'):
|
|
908
|
+
os.utime(os.path.join(self._box._path, subdir),
|
|
909
|
+
(time.time()-5,)*2)
|
|
910
|
+
|
|
911
|
+
# Because mtime has a two second granularity in worst case (FAT), a
|
|
912
|
+
# refresh is done unconditionally if called for within
|
|
913
|
+
# two-second-plus-a-bit of the last one, just in case the mbox has
|
|
914
|
+
# changed; so now we have to wait for that interval to expire.
|
|
915
|
+
#
|
|
916
|
+
# Because this is a test, emulate sleeping. Instead of
|
|
917
|
+
# sleeping for 2 seconds, use the skew factor to make _refresh
|
|
918
|
+
# think that 2 seconds have passed and re-reading the _toc is
|
|
919
|
+
# only required if mtimes differ.
|
|
920
|
+
self._box._skewfactor = -3
|
|
921
|
+
|
|
922
|
+
# Re-reading causes the ._toc attribute to be assigned a new dictionary
|
|
923
|
+
# object, so we'll check that the ._toc attribute isn't a different
|
|
924
|
+
# object.
|
|
925
|
+
orig_toc = self._box._toc
|
|
926
|
+
def refreshed():
|
|
927
|
+
return self._box._toc is not orig_toc
|
|
928
|
+
|
|
929
|
+
self._box._refresh()
|
|
930
|
+
self.assertFalse(refreshed())
|
|
931
|
+
|
|
932
|
+
# Now, write something into cur and remove it. This changes
|
|
933
|
+
# the mtime and should cause a re-read. Note that "sleep
|
|
934
|
+
# emulation" is still in effect, as skewfactor is -3.
|
|
935
|
+
filename = os.path.join(self._path, 'cur', 'stray-file')
|
|
936
|
+
support.create_empty_file(filename)
|
|
937
|
+
os.unlink(filename)
|
|
938
|
+
self._box._refresh()
|
|
939
|
+
self.assertTrue(refreshed())
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
class _TestSingleFile(TestMailbox):
|
|
943
|
+
'''Common tests for single-file mailboxes'''
|
|
944
|
+
|
|
945
|
+
def test_add_doesnt_rewrite(self):
|
|
946
|
+
# When only adding messages, flush() should not rewrite the
|
|
947
|
+
# mailbox file. See issue #9559.
|
|
948
|
+
|
|
949
|
+
# Inode number changes if the contents are written to another
|
|
950
|
+
# file which is then renamed over the original file. So we
|
|
951
|
+
# must check that the inode number doesn't change.
|
|
952
|
+
inode_before = os.stat(self._path).st_ino
|
|
953
|
+
|
|
954
|
+
self._box.add(self._template % 0)
|
|
955
|
+
self._box.flush()
|
|
956
|
+
|
|
957
|
+
inode_after = os.stat(self._path).st_ino
|
|
958
|
+
self.assertEqual(inode_before, inode_after)
|
|
959
|
+
|
|
960
|
+
# Make sure the message was really added
|
|
961
|
+
self._box.close()
|
|
962
|
+
self._box = self._factory(self._path)
|
|
963
|
+
self.assertEqual(len(self._box), 1)
|
|
964
|
+
|
|
965
|
+
def test_permissions_after_flush(self):
|
|
966
|
+
# See issue #5346
|
|
967
|
+
|
|
968
|
+
# Make the mailbox world writable. It's unlikely that the new
|
|
969
|
+
# mailbox file would have these permissions after flush(),
|
|
970
|
+
# because umask usually prevents it.
|
|
971
|
+
mode = os.stat(self._path).st_mode | 0o666
|
|
972
|
+
os.chmod(self._path, mode)
|
|
973
|
+
|
|
974
|
+
self._box.add(self._template % 0)
|
|
975
|
+
i = self._box.add(self._template % 1)
|
|
976
|
+
# Need to remove one message to make flush() create a new file
|
|
977
|
+
self._box.remove(i)
|
|
978
|
+
self._box.flush()
|
|
979
|
+
|
|
980
|
+
self.assertEqual(os.stat(self._path).st_mode, mode)
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
class _TestMboxMMDF(_TestSingleFile):
|
|
984
|
+
|
|
985
|
+
def tearDown(self):
|
|
986
|
+
super().tearDown()
|
|
987
|
+
self._box.close()
|
|
988
|
+
self._delete_recursively(self._path)
|
|
989
|
+
for lock_remnant in glob.glob(self._path + '.*'):
|
|
990
|
+
support.unlink(lock_remnant)
|
|
991
|
+
|
|
992
|
+
def assertMailboxEmpty(self):
|
|
993
|
+
with open(self._path) as f:
|
|
994
|
+
self.assertEqual(f.readlines(), [])
|
|
995
|
+
|
|
996
|
+
def test_add_from_string(self):
|
|
997
|
+
# Add a string starting with 'From ' to the mailbox
|
|
998
|
+
key = self._box.add('From foo@bar blah\nFrom: foo\n\n0\n')
|
|
999
|
+
self.assertEqual(self._box[key].get_from(), 'foo@bar blah')
|
|
1000
|
+
self.assertEqual(self._box[key].get_payload(), '0\n')
|
|
1001
|
+
|
|
1002
|
+
def test_add_from_bytes(self):
|
|
1003
|
+
# Add a byte string starting with 'From ' to the mailbox
|
|
1004
|
+
key = self._box.add(b'From foo@bar blah\nFrom: foo\n\n0\n')
|
|
1005
|
+
self.assertEqual(self._box[key].get_from(), 'foo@bar blah')
|
|
1006
|
+
self.assertEqual(self._box[key].get_payload(), '0\n')
|
|
1007
|
+
|
|
1008
|
+
def test_add_mbox_or_mmdf_message(self):
|
|
1009
|
+
# Add an mboxMessage or MMDFMessage
|
|
1010
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1011
|
+
msg = class_('From foo@bar blah\nFrom: foo\n\n0\n')
|
|
1012
|
+
key = self._box.add(msg)
|
|
1013
|
+
|
|
1014
|
+
def test_open_close_open(self):
|
|
1015
|
+
# Open and inspect previously-created mailbox
|
|
1016
|
+
values = [self._template % i for i in range(3)]
|
|
1017
|
+
for value in values:
|
|
1018
|
+
self._box.add(value)
|
|
1019
|
+
self._box.close()
|
|
1020
|
+
mtime = os.path.getmtime(self._path)
|
|
1021
|
+
self._box = self._factory(self._path)
|
|
1022
|
+
self.assertEqual(len(self._box), 3)
|
|
1023
|
+
for key in self._box.iterkeys():
|
|
1024
|
+
self.assertIn(self._box.get_string(key), values)
|
|
1025
|
+
self._box.close()
|
|
1026
|
+
self.assertEqual(mtime, os.path.getmtime(self._path))
|
|
1027
|
+
|
|
1028
|
+
def test_add_and_close(self):
|
|
1029
|
+
# Verifying that closing a mailbox doesn't change added items
|
|
1030
|
+
self._box.add(_sample_message)
|
|
1031
|
+
for i in range(3):
|
|
1032
|
+
self._box.add(self._template % i)
|
|
1033
|
+
self._box.add(_sample_message)
|
|
1034
|
+
self._box._file.flush()
|
|
1035
|
+
self._box._file.seek(0)
|
|
1036
|
+
contents = self._box._file.read()
|
|
1037
|
+
self._box.close()
|
|
1038
|
+
with open(self._path, 'rb') as f:
|
|
1039
|
+
self.assertEqual(contents, f.read())
|
|
1040
|
+
self._box = self._factory(self._path)
|
|
1041
|
+
|
|
1042
|
+
@unittest.skipUnless(hasattr(os, 'fork'), "Test needs fork().")
|
|
1043
|
+
@unittest.skipUnless(hasattr(socket, 'socketpair'), "Test needs socketpair().")
|
|
1044
|
+
def test_lock_conflict(self):
|
|
1045
|
+
# Fork off a child process that will lock the mailbox temporarily,
|
|
1046
|
+
# unlock it and exit.
|
|
1047
|
+
c, p = socket.socketpair()
|
|
1048
|
+
self.addCleanup(c.close)
|
|
1049
|
+
self.addCleanup(p.close)
|
|
1050
|
+
|
|
1051
|
+
pid = os.fork()
|
|
1052
|
+
if pid == 0:
|
|
1053
|
+
# child
|
|
1054
|
+
try:
|
|
1055
|
+
# lock the mailbox, and signal the parent it can proceed
|
|
1056
|
+
self._box.lock()
|
|
1057
|
+
c.send(b'c')
|
|
1058
|
+
|
|
1059
|
+
# wait until the parent is done, and unlock the mailbox
|
|
1060
|
+
c.recv(1)
|
|
1061
|
+
self._box.unlock()
|
|
1062
|
+
finally:
|
|
1063
|
+
os._exit(0)
|
|
1064
|
+
|
|
1065
|
+
# In the parent, wait until the child signals it locked the mailbox.
|
|
1066
|
+
p.recv(1)
|
|
1067
|
+
try:
|
|
1068
|
+
self.assertRaises(mailbox.ExternalClashError,
|
|
1069
|
+
self._box.lock)
|
|
1070
|
+
finally:
|
|
1071
|
+
# Signal the child it can now release the lock and exit.
|
|
1072
|
+
p.send(b'p')
|
|
1073
|
+
# Wait for child to exit. Locking should now succeed.
|
|
1074
|
+
exited_pid, status = os.waitpid(pid, 0)
|
|
1075
|
+
|
|
1076
|
+
self._box.lock()
|
|
1077
|
+
self._box.unlock()
|
|
1078
|
+
|
|
1079
|
+
def test_relock(self):
|
|
1080
|
+
# Test case for bug #1575506: the mailbox class was locking the
|
|
1081
|
+
# wrong file object in its flush() method.
|
|
1082
|
+
msg = "Subject: sub\n\nbody\n"
|
|
1083
|
+
key1 = self._box.add(msg)
|
|
1084
|
+
self._box.flush()
|
|
1085
|
+
self._box.close()
|
|
1086
|
+
|
|
1087
|
+
self._box = self._factory(self._path)
|
|
1088
|
+
self._box.lock()
|
|
1089
|
+
key2 = self._box.add(msg)
|
|
1090
|
+
self._box.flush()
|
|
1091
|
+
self.assertTrue(self._box._locked)
|
|
1092
|
+
self._box.close()
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
class TestMbox(_TestMboxMMDF, unittest.TestCase):
|
|
1096
|
+
|
|
1097
|
+
_factory = lambda self, path, factory=None: mailbox.mbox(path, factory)
|
|
1098
|
+
|
|
1099
|
+
@unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()')
|
|
1100
|
+
@unittest.skipUnless(hasattr(os, 'stat'), 'test needs os.stat()')
|
|
1101
|
+
def test_file_perms(self):
|
|
1102
|
+
# From bug #3228, we want to verify that the mailbox file isn't executable,
|
|
1103
|
+
# even if the umask is set to something that would leave executable bits set.
|
|
1104
|
+
# We only run this test on platforms that support umask.
|
|
1105
|
+
try:
|
|
1106
|
+
old_umask = os.umask(0o077)
|
|
1107
|
+
self._box.close()
|
|
1108
|
+
os.unlink(self._path)
|
|
1109
|
+
self._box = mailbox.mbox(self._path, create=True)
|
|
1110
|
+
self._box.add('')
|
|
1111
|
+
self._box.close()
|
|
1112
|
+
finally:
|
|
1113
|
+
os.umask(old_umask)
|
|
1114
|
+
|
|
1115
|
+
st = os.stat(self._path)
|
|
1116
|
+
perms = st.st_mode
|
|
1117
|
+
self.assertFalse((perms & 0o111)) # Execute bits should all be off.
|
|
1118
|
+
|
|
1119
|
+
def test_terminating_newline(self):
|
|
1120
|
+
message = email.message.Message()
|
|
1121
|
+
message['From'] = 'john@example.com'
|
|
1122
|
+
message.set_payload('No newline at the end')
|
|
1123
|
+
i = self._box.add(message)
|
|
1124
|
+
|
|
1125
|
+
# A newline should have been appended to the payload
|
|
1126
|
+
message = self._box.get(i)
|
|
1127
|
+
self.assertEqual(message.get_payload(), 'No newline at the end\n')
|
|
1128
|
+
|
|
1129
|
+
def test_message_separator(self):
|
|
1130
|
+
# Check there's always a single blank line after each message
|
|
1131
|
+
self._box.add('From: foo\n\n0') # No newline at the end
|
|
1132
|
+
with open(self._path) as f:
|
|
1133
|
+
data = f.read()
|
|
1134
|
+
self.assertEqual(data[-3:], '0\n\n')
|
|
1135
|
+
|
|
1136
|
+
self._box.add('From: foo\n\n0\n') # Newline at the end
|
|
1137
|
+
with open(self._path) as f:
|
|
1138
|
+
data = f.read()
|
|
1139
|
+
self.assertEqual(data[-3:], '0\n\n')
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
class TestMMDF(_TestMboxMMDF, unittest.TestCase):
|
|
1143
|
+
|
|
1144
|
+
_factory = lambda self, path, factory=None: mailbox.MMDF(path, factory)
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
class TestMH(TestMailbox, unittest.TestCase):
|
|
1148
|
+
|
|
1149
|
+
_factory = lambda self, path, factory=None: mailbox.MH(path, factory)
|
|
1150
|
+
|
|
1151
|
+
def assertMailboxEmpty(self):
|
|
1152
|
+
self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
|
|
1153
|
+
|
|
1154
|
+
def test_list_folders(self):
|
|
1155
|
+
# List folders
|
|
1156
|
+
self._box.add_folder('one')
|
|
1157
|
+
self._box.add_folder('two')
|
|
1158
|
+
self._box.add_folder('three')
|
|
1159
|
+
self.assertEqual(len(self._box.list_folders()), 3)
|
|
1160
|
+
self.assertEqual(set(self._box.list_folders()),
|
|
1161
|
+
set(('one', 'two', 'three')))
|
|
1162
|
+
|
|
1163
|
+
def test_get_folder(self):
|
|
1164
|
+
# Open folders
|
|
1165
|
+
def dummy_factory (s):
|
|
1166
|
+
return None
|
|
1167
|
+
self._box = self._factory(self._path, dummy_factory)
|
|
1168
|
+
|
|
1169
|
+
new_folder = self._box.add_folder('foo.bar')
|
|
1170
|
+
folder0 = self._box.get_folder('foo.bar')
|
|
1171
|
+
folder0.add(self._template % 'bar')
|
|
1172
|
+
self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
|
|
1173
|
+
folder1 = self._box.get_folder('foo.bar')
|
|
1174
|
+
self.assertEqual(folder1.get_string(folder1.keys()[0]),
|
|
1175
|
+
self._template % 'bar')
|
|
1176
|
+
|
|
1177
|
+
# Test for bug #1569790: verify that folders returned by .get_folder()
|
|
1178
|
+
# use the same factory function.
|
|
1179
|
+
self.assertIs(new_folder._factory, self._box._factory)
|
|
1180
|
+
self.assertIs(folder0._factory, self._box._factory)
|
|
1181
|
+
|
|
1182
|
+
def test_add_and_remove_folders(self):
|
|
1183
|
+
# Delete folders
|
|
1184
|
+
self._box.add_folder('one')
|
|
1185
|
+
self._box.add_folder('two')
|
|
1186
|
+
self.assertEqual(len(self._box.list_folders()), 2)
|
|
1187
|
+
self.assertEqual(set(self._box.list_folders()), set(('one', 'two')))
|
|
1188
|
+
self._box.remove_folder('one')
|
|
1189
|
+
self.assertEqual(len(self._box.list_folders()), 1)
|
|
1190
|
+
self.assertEqual(set(self._box.list_folders()), set(('two',)))
|
|
1191
|
+
self._box.add_folder('three')
|
|
1192
|
+
self.assertEqual(len(self._box.list_folders()), 2)
|
|
1193
|
+
self.assertEqual(set(self._box.list_folders()), set(('two', 'three')))
|
|
1194
|
+
self._box.remove_folder('three')
|
|
1195
|
+
self.assertEqual(len(self._box.list_folders()), 1)
|
|
1196
|
+
self.assertEqual(set(self._box.list_folders()), set(('two',)))
|
|
1197
|
+
self._box.remove_folder('two')
|
|
1198
|
+
self.assertEqual(len(self._box.list_folders()), 0)
|
|
1199
|
+
self.assertEqual(self._box.list_folders(), [])
|
|
1200
|
+
|
|
1201
|
+
def test_sequences(self):
|
|
1202
|
+
# Get and set sequences
|
|
1203
|
+
self.assertEqual(self._box.get_sequences(), {})
|
|
1204
|
+
msg0 = mailbox.MHMessage(self._template % 0)
|
|
1205
|
+
msg0.add_sequence('foo')
|
|
1206
|
+
key0 = self._box.add(msg0)
|
|
1207
|
+
self.assertEqual(self._box.get_sequences(), {'foo':[key0]})
|
|
1208
|
+
msg1 = mailbox.MHMessage(self._template % 1)
|
|
1209
|
+
msg1.set_sequences(['bar', 'replied', 'foo'])
|
|
1210
|
+
key1 = self._box.add(msg1)
|
|
1211
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1212
|
+
{'foo':[key0, key1], 'bar':[key1], 'replied':[key1]})
|
|
1213
|
+
msg0.set_sequences(['flagged'])
|
|
1214
|
+
self._box[key0] = msg0
|
|
1215
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1216
|
+
{'foo':[key1], 'bar':[key1], 'replied':[key1],
|
|
1217
|
+
'flagged':[key0]})
|
|
1218
|
+
self._box.remove(key1)
|
|
1219
|
+
self.assertEqual(self._box.get_sequences(), {'flagged':[key0]})
|
|
1220
|
+
|
|
1221
|
+
def test_issue2625(self):
|
|
1222
|
+
msg0 = mailbox.MHMessage(self._template % 0)
|
|
1223
|
+
msg0.add_sequence('foo')
|
|
1224
|
+
key0 = self._box.add(msg0)
|
|
1225
|
+
refmsg0 = self._box.get_message(key0)
|
|
1226
|
+
|
|
1227
|
+
def test_issue7627(self):
|
|
1228
|
+
msg0 = mailbox.MHMessage(self._template % 0)
|
|
1229
|
+
key0 = self._box.add(msg0)
|
|
1230
|
+
self._box.lock()
|
|
1231
|
+
self._box.remove(key0)
|
|
1232
|
+
self._box.unlock()
|
|
1233
|
+
|
|
1234
|
+
def test_pack(self):
|
|
1235
|
+
# Pack the contents of the mailbox
|
|
1236
|
+
msg0 = mailbox.MHMessage(self._template % 0)
|
|
1237
|
+
msg1 = mailbox.MHMessage(self._template % 1)
|
|
1238
|
+
msg2 = mailbox.MHMessage(self._template % 2)
|
|
1239
|
+
msg3 = mailbox.MHMessage(self._template % 3)
|
|
1240
|
+
msg0.set_sequences(['foo', 'unseen'])
|
|
1241
|
+
msg1.set_sequences(['foo'])
|
|
1242
|
+
msg2.set_sequences(['foo', 'flagged'])
|
|
1243
|
+
msg3.set_sequences(['foo', 'bar', 'replied'])
|
|
1244
|
+
key0 = self._box.add(msg0)
|
|
1245
|
+
key1 = self._box.add(msg1)
|
|
1246
|
+
key2 = self._box.add(msg2)
|
|
1247
|
+
key3 = self._box.add(msg3)
|
|
1248
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1249
|
+
{'foo':[key0,key1,key2,key3], 'unseen':[key0],
|
|
1250
|
+
'flagged':[key2], 'bar':[key3], 'replied':[key3]})
|
|
1251
|
+
self._box.remove(key2)
|
|
1252
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1253
|
+
{'foo':[key0,key1,key3], 'unseen':[key0], 'bar':[key3],
|
|
1254
|
+
'replied':[key3]})
|
|
1255
|
+
self._box.pack()
|
|
1256
|
+
self.assertEqual(self._box.keys(), [1, 2, 3])
|
|
1257
|
+
key0 = key0
|
|
1258
|
+
key1 = key0 + 1
|
|
1259
|
+
key2 = key1 + 1
|
|
1260
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1261
|
+
{'foo':[1, 2, 3], 'unseen':[1], 'bar':[3], 'replied':[3]})
|
|
1262
|
+
|
|
1263
|
+
# Test case for packing while holding the mailbox locked.
|
|
1264
|
+
key0 = self._box.add(msg1)
|
|
1265
|
+
key1 = self._box.add(msg1)
|
|
1266
|
+
key2 = self._box.add(msg1)
|
|
1267
|
+
key3 = self._box.add(msg1)
|
|
1268
|
+
|
|
1269
|
+
self._box.remove(key0)
|
|
1270
|
+
self._box.remove(key2)
|
|
1271
|
+
self._box.lock()
|
|
1272
|
+
self._box.pack()
|
|
1273
|
+
self._box.unlock()
|
|
1274
|
+
self.assertEqual(self._box.get_sequences(),
|
|
1275
|
+
{'foo':[1, 2, 3, 4, 5],
|
|
1276
|
+
'unseen':[1], 'bar':[3], 'replied':[3]})
|
|
1277
|
+
|
|
1278
|
+
def _get_lock_path(self):
|
|
1279
|
+
return os.path.join(self._path, '.mh_sequences.lock')
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
class TestBabyl(_TestSingleFile, unittest.TestCase):
|
|
1283
|
+
|
|
1284
|
+
_factory = lambda self, path, factory=None: mailbox.Babyl(path, factory)
|
|
1285
|
+
|
|
1286
|
+
def assertMailboxEmpty(self):
|
|
1287
|
+
with open(self._path) as f:
|
|
1288
|
+
self.assertEqual(f.readlines(), [])
|
|
1289
|
+
|
|
1290
|
+
def tearDown(self):
|
|
1291
|
+
super().tearDown()
|
|
1292
|
+
self._box.close()
|
|
1293
|
+
self._delete_recursively(self._path)
|
|
1294
|
+
for lock_remnant in glob.glob(self._path + '.*'):
|
|
1295
|
+
support.unlink(lock_remnant)
|
|
1296
|
+
|
|
1297
|
+
def test_labels(self):
|
|
1298
|
+
# Get labels from the mailbox
|
|
1299
|
+
self.assertEqual(self._box.get_labels(), [])
|
|
1300
|
+
msg0 = mailbox.BabylMessage(self._template % 0)
|
|
1301
|
+
msg0.add_label('foo')
|
|
1302
|
+
key0 = self._box.add(msg0)
|
|
1303
|
+
self.assertEqual(self._box.get_labels(), ['foo'])
|
|
1304
|
+
msg1 = mailbox.BabylMessage(self._template % 1)
|
|
1305
|
+
msg1.set_labels(['bar', 'answered', 'foo'])
|
|
1306
|
+
key1 = self._box.add(msg1)
|
|
1307
|
+
self.assertEqual(set(self._box.get_labels()), set(['foo', 'bar']))
|
|
1308
|
+
msg0.set_labels(['blah', 'filed'])
|
|
1309
|
+
self._box[key0] = msg0
|
|
1310
|
+
self.assertEqual(set(self._box.get_labels()),
|
|
1311
|
+
set(['foo', 'bar', 'blah']))
|
|
1312
|
+
self._box.remove(key1)
|
|
1313
|
+
self.assertEqual(set(self._box.get_labels()), set(['blah']))
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
class FakeFileLikeObject:
|
|
1317
|
+
|
|
1318
|
+
def __init__(self):
|
|
1319
|
+
self.closed = False
|
|
1320
|
+
|
|
1321
|
+
def close(self):
|
|
1322
|
+
self.closed = True
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
class FakeMailBox(mailbox.Mailbox):
|
|
1326
|
+
|
|
1327
|
+
def __init__(self):
|
|
1328
|
+
mailbox.Mailbox.__init__(self, '', lambda file: None)
|
|
1329
|
+
self.files = [FakeFileLikeObject() for i in range(10)]
|
|
1330
|
+
|
|
1331
|
+
def get_file(self, key):
|
|
1332
|
+
return self.files[key]
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
class TestFakeMailBox(unittest.TestCase):
|
|
1336
|
+
|
|
1337
|
+
def test_closing_fd(self):
|
|
1338
|
+
box = FakeMailBox()
|
|
1339
|
+
for i in range(10):
|
|
1340
|
+
self.assertFalse(box.files[i].closed)
|
|
1341
|
+
for i in range(10):
|
|
1342
|
+
box[i]
|
|
1343
|
+
for i in range(10):
|
|
1344
|
+
self.assertTrue(box.files[i].closed)
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
class TestMessage(TestBase, unittest.TestCase):
|
|
1348
|
+
|
|
1349
|
+
_factory = mailbox.Message # Overridden by subclasses to reuse tests
|
|
1350
|
+
|
|
1351
|
+
def setUp(self):
|
|
1352
|
+
self._path = support.TESTFN
|
|
1353
|
+
|
|
1354
|
+
def tearDown(self):
|
|
1355
|
+
self._delete_recursively(self._path)
|
|
1356
|
+
|
|
1357
|
+
def test_initialize_with_eMM(self):
|
|
1358
|
+
# Initialize based on email.message.Message instance
|
|
1359
|
+
eMM = email.message_from_string(_sample_message)
|
|
1360
|
+
msg = self._factory(eMM)
|
|
1361
|
+
self._post_initialize_hook(msg)
|
|
1362
|
+
self._check_sample(msg)
|
|
1363
|
+
|
|
1364
|
+
def test_initialize_with_string(self):
|
|
1365
|
+
# Initialize based on string
|
|
1366
|
+
msg = self._factory(_sample_message)
|
|
1367
|
+
self._post_initialize_hook(msg)
|
|
1368
|
+
self._check_sample(msg)
|
|
1369
|
+
|
|
1370
|
+
def test_initialize_with_file(self):
|
|
1371
|
+
# Initialize based on contents of file
|
|
1372
|
+
with open(self._path, 'w+') as f:
|
|
1373
|
+
f.write(_sample_message)
|
|
1374
|
+
f.seek(0)
|
|
1375
|
+
msg = self._factory(f)
|
|
1376
|
+
self._post_initialize_hook(msg)
|
|
1377
|
+
self._check_sample(msg)
|
|
1378
|
+
|
|
1379
|
+
def test_initialize_with_binary_file(self):
|
|
1380
|
+
# Initialize based on contents of binary file
|
|
1381
|
+
with open(self._path, 'wb+') as f:
|
|
1382
|
+
f.write(_bytes_sample_message)
|
|
1383
|
+
f.seek(0)
|
|
1384
|
+
msg = self._factory(f)
|
|
1385
|
+
self._post_initialize_hook(msg)
|
|
1386
|
+
self._check_sample(msg)
|
|
1387
|
+
|
|
1388
|
+
def test_initialize_with_nothing(self):
|
|
1389
|
+
# Initialize without arguments
|
|
1390
|
+
msg = self._factory()
|
|
1391
|
+
self._post_initialize_hook(msg)
|
|
1392
|
+
self.assertIsInstance(msg, email.message.Message)
|
|
1393
|
+
self.assertIsInstance(msg, mailbox.Message)
|
|
1394
|
+
self.assertIsInstance(msg, self._factory)
|
|
1395
|
+
self.assertEqual(msg.keys(), [])
|
|
1396
|
+
self.assertFalse(msg.is_multipart())
|
|
1397
|
+
self.assertIsNone(msg.get_payload())
|
|
1398
|
+
|
|
1399
|
+
def test_initialize_incorrectly(self):
|
|
1400
|
+
# Initialize with invalid argument
|
|
1401
|
+
self.assertRaises(TypeError, lambda: self._factory(object()))
|
|
1402
|
+
|
|
1403
|
+
def test_all_eMM_attribues_exist(self):
|
|
1404
|
+
# Issue 12537
|
|
1405
|
+
eMM = email.message_from_string(_sample_message)
|
|
1406
|
+
msg = self._factory(_sample_message)
|
|
1407
|
+
for attr in eMM.__dict__:
|
|
1408
|
+
self.assertIn(attr, msg.__dict__,
|
|
1409
|
+
'{} attribute does not exist'.format(attr))
|
|
1410
|
+
|
|
1411
|
+
def test_become_message(self):
|
|
1412
|
+
# Take on the state of another message
|
|
1413
|
+
eMM = email.message_from_string(_sample_message)
|
|
1414
|
+
msg = self._factory()
|
|
1415
|
+
msg._become_message(eMM)
|
|
1416
|
+
self._check_sample(msg)
|
|
1417
|
+
|
|
1418
|
+
def test_explain_to(self):
|
|
1419
|
+
# Copy self's format-specific data to other message formats.
|
|
1420
|
+
# This test is superficial; better ones are in TestMessageConversion.
|
|
1421
|
+
msg = self._factory()
|
|
1422
|
+
for class_ in self.all_mailbox_types:
|
|
1423
|
+
other_msg = class_()
|
|
1424
|
+
msg._explain_to(other_msg)
|
|
1425
|
+
other_msg = email.message.Message()
|
|
1426
|
+
self.assertRaises(TypeError, lambda: msg._explain_to(other_msg))
|
|
1427
|
+
|
|
1428
|
+
def _post_initialize_hook(self, msg):
|
|
1429
|
+
# Overridden by subclasses to check extra things after initialization
|
|
1430
|
+
pass
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
class TestMaildirMessage(TestMessage, unittest.TestCase):
|
|
1434
|
+
|
|
1435
|
+
_factory = mailbox.MaildirMessage
|
|
1436
|
+
|
|
1437
|
+
def _post_initialize_hook(self, msg):
|
|
1438
|
+
self.assertEqual(msg._subdir, 'new')
|
|
1439
|
+
self.assertEqual(msg._info, '')
|
|
1440
|
+
|
|
1441
|
+
def test_subdir(self):
|
|
1442
|
+
# Use get_subdir() and set_subdir()
|
|
1443
|
+
msg = mailbox.MaildirMessage(_sample_message)
|
|
1444
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1445
|
+
msg.set_subdir('cur')
|
|
1446
|
+
self.assertEqual(msg.get_subdir(), 'cur')
|
|
1447
|
+
msg.set_subdir('new')
|
|
1448
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1449
|
+
self.assertRaises(ValueError, lambda: msg.set_subdir('tmp'))
|
|
1450
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1451
|
+
msg.set_subdir('new')
|
|
1452
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1453
|
+
self._check_sample(msg)
|
|
1454
|
+
|
|
1455
|
+
def test_flags(self):
|
|
1456
|
+
# Use get_flags(), set_flags(), add_flag(), remove_flag()
|
|
1457
|
+
msg = mailbox.MaildirMessage(_sample_message)
|
|
1458
|
+
self.assertEqual(msg.get_flags(), '')
|
|
1459
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1460
|
+
msg.set_flags('F')
|
|
1461
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1462
|
+
self.assertEqual(msg.get_flags(), 'F')
|
|
1463
|
+
msg.set_flags('SDTP')
|
|
1464
|
+
self.assertEqual(msg.get_flags(), 'DPST')
|
|
1465
|
+
msg.add_flag('FT')
|
|
1466
|
+
self.assertEqual(msg.get_flags(), 'DFPST')
|
|
1467
|
+
msg.remove_flag('TDRP')
|
|
1468
|
+
self.assertEqual(msg.get_flags(), 'FS')
|
|
1469
|
+
self.assertEqual(msg.get_subdir(), 'new')
|
|
1470
|
+
self._check_sample(msg)
|
|
1471
|
+
|
|
1472
|
+
def test_date(self):
|
|
1473
|
+
# Use get_date() and set_date()
|
|
1474
|
+
msg = mailbox.MaildirMessage(_sample_message)
|
|
1475
|
+
self.assertLess(abs(msg.get_date() - time.time()), 60)
|
|
1476
|
+
msg.set_date(0.0)
|
|
1477
|
+
self.assertEqual(msg.get_date(), 0.0)
|
|
1478
|
+
|
|
1479
|
+
def test_info(self):
|
|
1480
|
+
# Use get_info() and set_info()
|
|
1481
|
+
msg = mailbox.MaildirMessage(_sample_message)
|
|
1482
|
+
self.assertEqual(msg.get_info(), '')
|
|
1483
|
+
msg.set_info('1,foo=bar')
|
|
1484
|
+
self.assertEqual(msg.get_info(), '1,foo=bar')
|
|
1485
|
+
self.assertRaises(TypeError, lambda: msg.set_info(None))
|
|
1486
|
+
self._check_sample(msg)
|
|
1487
|
+
|
|
1488
|
+
def test_info_and_flags(self):
|
|
1489
|
+
# Test interaction of info and flag methods
|
|
1490
|
+
msg = mailbox.MaildirMessage(_sample_message)
|
|
1491
|
+
self.assertEqual(msg.get_info(), '')
|
|
1492
|
+
msg.set_flags('SF')
|
|
1493
|
+
self.assertEqual(msg.get_flags(), 'FS')
|
|
1494
|
+
self.assertEqual(msg.get_info(), '2,FS')
|
|
1495
|
+
msg.set_info('1,')
|
|
1496
|
+
self.assertEqual(msg.get_flags(), '')
|
|
1497
|
+
self.assertEqual(msg.get_info(), '1,')
|
|
1498
|
+
msg.remove_flag('RPT')
|
|
1499
|
+
self.assertEqual(msg.get_flags(), '')
|
|
1500
|
+
self.assertEqual(msg.get_info(), '1,')
|
|
1501
|
+
msg.add_flag('D')
|
|
1502
|
+
self.assertEqual(msg.get_flags(), 'D')
|
|
1503
|
+
self.assertEqual(msg.get_info(), '2,D')
|
|
1504
|
+
self._check_sample(msg)
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
class _TestMboxMMDFMessage:
|
|
1508
|
+
|
|
1509
|
+
_factory = mailbox._mboxMMDFMessage
|
|
1510
|
+
|
|
1511
|
+
def _post_initialize_hook(self, msg):
|
|
1512
|
+
self._check_from(msg)
|
|
1513
|
+
|
|
1514
|
+
def test_initialize_with_unixfrom(self):
|
|
1515
|
+
# Initialize with a message that already has a _unixfrom attribute
|
|
1516
|
+
msg = mailbox.Message(_sample_message)
|
|
1517
|
+
msg.set_unixfrom('From foo@bar blah')
|
|
1518
|
+
msg = mailbox.mboxMessage(msg)
|
|
1519
|
+
self.assertEqual(msg.get_from(), 'foo@bar blah', msg.get_from())
|
|
1520
|
+
|
|
1521
|
+
def test_from(self):
|
|
1522
|
+
# Get and set "From " line
|
|
1523
|
+
msg = mailbox.mboxMessage(_sample_message)
|
|
1524
|
+
self._check_from(msg)
|
|
1525
|
+
msg.set_from('foo bar')
|
|
1526
|
+
self.assertEqual(msg.get_from(), 'foo bar')
|
|
1527
|
+
msg.set_from('foo@bar', True)
|
|
1528
|
+
self._check_from(msg, 'foo@bar')
|
|
1529
|
+
msg.set_from('blah@temp', time.localtime())
|
|
1530
|
+
self._check_from(msg, 'blah@temp')
|
|
1531
|
+
|
|
1532
|
+
def test_flags(self):
|
|
1533
|
+
# Use get_flags(), set_flags(), add_flag(), remove_flag()
|
|
1534
|
+
msg = mailbox.mboxMessage(_sample_message)
|
|
1535
|
+
self.assertEqual(msg.get_flags(), '')
|
|
1536
|
+
msg.set_flags('F')
|
|
1537
|
+
self.assertEqual(msg.get_flags(), 'F')
|
|
1538
|
+
msg.set_flags('XODR')
|
|
1539
|
+
self.assertEqual(msg.get_flags(), 'RODX')
|
|
1540
|
+
msg.add_flag('FA')
|
|
1541
|
+
self.assertEqual(msg.get_flags(), 'RODFAX')
|
|
1542
|
+
msg.remove_flag('FDXA')
|
|
1543
|
+
self.assertEqual(msg.get_flags(), 'RO')
|
|
1544
|
+
self._check_sample(msg)
|
|
1545
|
+
|
|
1546
|
+
def _check_from(self, msg, sender=None):
|
|
1547
|
+
# Check contents of "From " line
|
|
1548
|
+
if sender is None:
|
|
1549
|
+
sender = "MAILER-DAEMON"
|
|
1550
|
+
self.assertIsNotNone(re.match(
|
|
1551
|
+
sender + r" \w{3} \w{3} [\d ]\d [\d ]\d:\d{2}:\d{2} \d{4}",
|
|
1552
|
+
msg.get_from()))
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
class TestMboxMessage(_TestMboxMMDFMessage, TestMessage):
|
|
1556
|
+
|
|
1557
|
+
_factory = mailbox.mboxMessage
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
class TestMHMessage(TestMessage, unittest.TestCase):
|
|
1561
|
+
|
|
1562
|
+
_factory = mailbox.MHMessage
|
|
1563
|
+
|
|
1564
|
+
def _post_initialize_hook(self, msg):
|
|
1565
|
+
self.assertEqual(msg._sequences, [])
|
|
1566
|
+
|
|
1567
|
+
def test_sequences(self):
|
|
1568
|
+
# Get, set, join, and leave sequences
|
|
1569
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1570
|
+
self.assertEqual(msg.get_sequences(), [])
|
|
1571
|
+
msg.set_sequences(['foobar'])
|
|
1572
|
+
self.assertEqual(msg.get_sequences(), ['foobar'])
|
|
1573
|
+
msg.set_sequences([])
|
|
1574
|
+
self.assertEqual(msg.get_sequences(), [])
|
|
1575
|
+
msg.add_sequence('unseen')
|
|
1576
|
+
self.assertEqual(msg.get_sequences(), ['unseen'])
|
|
1577
|
+
msg.add_sequence('flagged')
|
|
1578
|
+
self.assertEqual(msg.get_sequences(), ['unseen', 'flagged'])
|
|
1579
|
+
msg.add_sequence('flagged')
|
|
1580
|
+
self.assertEqual(msg.get_sequences(), ['unseen', 'flagged'])
|
|
1581
|
+
msg.remove_sequence('unseen')
|
|
1582
|
+
self.assertEqual(msg.get_sequences(), ['flagged'])
|
|
1583
|
+
msg.add_sequence('foobar')
|
|
1584
|
+
self.assertEqual(msg.get_sequences(), ['flagged', 'foobar'])
|
|
1585
|
+
msg.remove_sequence('replied')
|
|
1586
|
+
self.assertEqual(msg.get_sequences(), ['flagged', 'foobar'])
|
|
1587
|
+
msg.set_sequences(['foobar', 'replied'])
|
|
1588
|
+
self.assertEqual(msg.get_sequences(), ['foobar', 'replied'])
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
class TestBabylMessage(TestMessage, unittest.TestCase):
|
|
1592
|
+
|
|
1593
|
+
_factory = mailbox.BabylMessage
|
|
1594
|
+
|
|
1595
|
+
def _post_initialize_hook(self, msg):
|
|
1596
|
+
self.assertEqual(msg._labels, [])
|
|
1597
|
+
|
|
1598
|
+
def test_labels(self):
|
|
1599
|
+
# Get, set, join, and leave labels
|
|
1600
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1601
|
+
self.assertEqual(msg.get_labels(), [])
|
|
1602
|
+
msg.set_labels(['foobar'])
|
|
1603
|
+
self.assertEqual(msg.get_labels(), ['foobar'])
|
|
1604
|
+
msg.set_labels([])
|
|
1605
|
+
self.assertEqual(msg.get_labels(), [])
|
|
1606
|
+
msg.add_label('filed')
|
|
1607
|
+
self.assertEqual(msg.get_labels(), ['filed'])
|
|
1608
|
+
msg.add_label('resent')
|
|
1609
|
+
self.assertEqual(msg.get_labels(), ['filed', 'resent'])
|
|
1610
|
+
msg.add_label('resent')
|
|
1611
|
+
self.assertEqual(msg.get_labels(), ['filed', 'resent'])
|
|
1612
|
+
msg.remove_label('filed')
|
|
1613
|
+
self.assertEqual(msg.get_labels(), ['resent'])
|
|
1614
|
+
msg.add_label('foobar')
|
|
1615
|
+
self.assertEqual(msg.get_labels(), ['resent', 'foobar'])
|
|
1616
|
+
msg.remove_label('unseen')
|
|
1617
|
+
self.assertEqual(msg.get_labels(), ['resent', 'foobar'])
|
|
1618
|
+
msg.set_labels(['foobar', 'answered'])
|
|
1619
|
+
self.assertEqual(msg.get_labels(), ['foobar', 'answered'])
|
|
1620
|
+
|
|
1621
|
+
def test_visible(self):
|
|
1622
|
+
# Get, set, and update visible headers
|
|
1623
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1624
|
+
visible = msg.get_visible()
|
|
1625
|
+
self.assertEqual(visible.keys(), [])
|
|
1626
|
+
self.assertIsNone(visible.get_payload())
|
|
1627
|
+
visible['User-Agent'] = 'FooBar 1.0'
|
|
1628
|
+
visible['X-Whatever'] = 'Blah'
|
|
1629
|
+
self.assertEqual(msg.get_visible().keys(), [])
|
|
1630
|
+
msg.set_visible(visible)
|
|
1631
|
+
visible = msg.get_visible()
|
|
1632
|
+
self.assertEqual(visible.keys(), ['User-Agent', 'X-Whatever'])
|
|
1633
|
+
self.assertEqual(visible['User-Agent'], 'FooBar 1.0')
|
|
1634
|
+
self.assertEqual(visible['X-Whatever'], 'Blah')
|
|
1635
|
+
self.assertIsNone(visible.get_payload())
|
|
1636
|
+
msg.update_visible()
|
|
1637
|
+
self.assertEqual(visible.keys(), ['User-Agent', 'X-Whatever'])
|
|
1638
|
+
self.assertIsNone(visible.get_payload())
|
|
1639
|
+
visible = msg.get_visible()
|
|
1640
|
+
self.assertEqual(visible.keys(), ['User-Agent', 'Date', 'From', 'To',
|
|
1641
|
+
'Subject'])
|
|
1642
|
+
for header in ('User-Agent', 'Date', 'From', 'To', 'Subject'):
|
|
1643
|
+
self.assertEqual(visible[header], msg[header])
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
class TestMMDFMessage(_TestMboxMMDFMessage, TestMessage):
|
|
1647
|
+
|
|
1648
|
+
_factory = mailbox.MMDFMessage
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
class TestMessageConversion(TestBase, unittest.TestCase):
|
|
1652
|
+
|
|
1653
|
+
def test_plain_to_x(self):
|
|
1654
|
+
# Convert Message to all formats
|
|
1655
|
+
for class_ in self.all_mailbox_types:
|
|
1656
|
+
msg_plain = mailbox.Message(_sample_message)
|
|
1657
|
+
msg = class_(msg_plain)
|
|
1658
|
+
self._check_sample(msg)
|
|
1659
|
+
|
|
1660
|
+
def test_x_to_plain(self):
|
|
1661
|
+
# Convert all formats to Message
|
|
1662
|
+
for class_ in self.all_mailbox_types:
|
|
1663
|
+
msg = class_(_sample_message)
|
|
1664
|
+
msg_plain = mailbox.Message(msg)
|
|
1665
|
+
self._check_sample(msg_plain)
|
|
1666
|
+
|
|
1667
|
+
def test_x_from_bytes(self):
|
|
1668
|
+
# Convert all formats to Message
|
|
1669
|
+
for class_ in self.all_mailbox_types:
|
|
1670
|
+
msg = class_(_bytes_sample_message)
|
|
1671
|
+
self._check_sample(msg)
|
|
1672
|
+
|
|
1673
|
+
def test_x_to_invalid(self):
|
|
1674
|
+
# Convert all formats to an invalid format
|
|
1675
|
+
for class_ in self.all_mailbox_types:
|
|
1676
|
+
self.assertRaises(TypeError, lambda: class_(False))
|
|
1677
|
+
|
|
1678
|
+
def test_type_specific_attributes_removed_on_conversion(self):
|
|
1679
|
+
reference = {class_: class_(_sample_message).__dict__
|
|
1680
|
+
for class_ in self.all_mailbox_types}
|
|
1681
|
+
for class1 in self.all_mailbox_types:
|
|
1682
|
+
for class2 in self.all_mailbox_types:
|
|
1683
|
+
if class1 is class2:
|
|
1684
|
+
continue
|
|
1685
|
+
source = class1(_sample_message)
|
|
1686
|
+
target = class2(source)
|
|
1687
|
+
type_specific = [a for a in reference[class1]
|
|
1688
|
+
if a not in reference[class2]]
|
|
1689
|
+
for attr in type_specific:
|
|
1690
|
+
self.assertNotIn(attr, target.__dict__,
|
|
1691
|
+
"while converting {} to {}".format(class1, class2))
|
|
1692
|
+
|
|
1693
|
+
def test_maildir_to_maildir(self):
|
|
1694
|
+
# Convert MaildirMessage to MaildirMessage
|
|
1695
|
+
msg_maildir = mailbox.MaildirMessage(_sample_message)
|
|
1696
|
+
msg_maildir.set_flags('DFPRST')
|
|
1697
|
+
msg_maildir.set_subdir('cur')
|
|
1698
|
+
date = msg_maildir.get_date()
|
|
1699
|
+
msg = mailbox.MaildirMessage(msg_maildir)
|
|
1700
|
+
self._check_sample(msg)
|
|
1701
|
+
self.assertEqual(msg.get_flags(), 'DFPRST')
|
|
1702
|
+
self.assertEqual(msg.get_subdir(), 'cur')
|
|
1703
|
+
self.assertEqual(msg.get_date(), date)
|
|
1704
|
+
|
|
1705
|
+
def test_maildir_to_mboxmmdf(self):
|
|
1706
|
+
# Convert MaildirMessage to mboxmessage and MMDFMessage
|
|
1707
|
+
pairs = (('D', ''), ('F', 'F'), ('P', ''), ('R', 'A'), ('S', 'R'),
|
|
1708
|
+
('T', 'D'), ('DFPRST', 'RDFA'))
|
|
1709
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1710
|
+
msg_maildir = mailbox.MaildirMessage(_sample_message)
|
|
1711
|
+
msg_maildir.set_date(0.0)
|
|
1712
|
+
for setting, result in pairs:
|
|
1713
|
+
msg_maildir.set_flags(setting)
|
|
1714
|
+
msg = class_(msg_maildir)
|
|
1715
|
+
self.assertEqual(msg.get_flags(), result)
|
|
1716
|
+
self.assertEqual(msg.get_from(), 'MAILER-DAEMON %s' %
|
|
1717
|
+
time.asctime(time.gmtime(0.0)))
|
|
1718
|
+
msg_maildir.set_subdir('cur')
|
|
1719
|
+
self.assertEqual(class_(msg_maildir).get_flags(), 'RODFA')
|
|
1720
|
+
|
|
1721
|
+
def test_maildir_to_mh(self):
|
|
1722
|
+
# Convert MaildirMessage to MHMessage
|
|
1723
|
+
msg_maildir = mailbox.MaildirMessage(_sample_message)
|
|
1724
|
+
pairs = (('D', ['unseen']), ('F', ['unseen', 'flagged']),
|
|
1725
|
+
('P', ['unseen']), ('R', ['unseen', 'replied']), ('S', []),
|
|
1726
|
+
('T', ['unseen']), ('DFPRST', ['replied', 'flagged']))
|
|
1727
|
+
for setting, result in pairs:
|
|
1728
|
+
msg_maildir.set_flags(setting)
|
|
1729
|
+
self.assertEqual(mailbox.MHMessage(msg_maildir).get_sequences(),
|
|
1730
|
+
result)
|
|
1731
|
+
|
|
1732
|
+
def test_maildir_to_babyl(self):
|
|
1733
|
+
# Convert MaildirMessage to Babyl
|
|
1734
|
+
msg_maildir = mailbox.MaildirMessage(_sample_message)
|
|
1735
|
+
pairs = (('D', ['unseen']), ('F', ['unseen']),
|
|
1736
|
+
('P', ['unseen', 'forwarded']), ('R', ['unseen', 'answered']),
|
|
1737
|
+
('S', []), ('T', ['unseen', 'deleted']),
|
|
1738
|
+
('DFPRST', ['deleted', 'answered', 'forwarded']))
|
|
1739
|
+
for setting, result in pairs:
|
|
1740
|
+
msg_maildir.set_flags(setting)
|
|
1741
|
+
self.assertEqual(mailbox.BabylMessage(msg_maildir).get_labels(),
|
|
1742
|
+
result)
|
|
1743
|
+
|
|
1744
|
+
def test_mboxmmdf_to_maildir(self):
|
|
1745
|
+
# Convert mboxMessage and MMDFMessage to MaildirMessage
|
|
1746
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1747
|
+
msg_mboxMMDF = class_(_sample_message)
|
|
1748
|
+
msg_mboxMMDF.set_from('foo@bar', time.gmtime(0.0))
|
|
1749
|
+
pairs = (('R', 'S'), ('O', ''), ('D', 'T'), ('F', 'F'), ('A', 'R'),
|
|
1750
|
+
('RODFA', 'FRST'))
|
|
1751
|
+
for setting, result in pairs:
|
|
1752
|
+
msg_mboxMMDF.set_flags(setting)
|
|
1753
|
+
msg = mailbox.MaildirMessage(msg_mboxMMDF)
|
|
1754
|
+
self.assertEqual(msg.get_flags(), result)
|
|
1755
|
+
self.assertEqual(msg.get_date(), 0.0)
|
|
1756
|
+
msg_mboxMMDF.set_flags('O')
|
|
1757
|
+
self.assertEqual(mailbox.MaildirMessage(msg_mboxMMDF).get_subdir(),
|
|
1758
|
+
'cur')
|
|
1759
|
+
|
|
1760
|
+
def test_mboxmmdf_to_mboxmmdf(self):
|
|
1761
|
+
# Convert mboxMessage and MMDFMessage to mboxMessage and MMDFMessage
|
|
1762
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1763
|
+
msg_mboxMMDF = class_(_sample_message)
|
|
1764
|
+
msg_mboxMMDF.set_flags('RODFA')
|
|
1765
|
+
msg_mboxMMDF.set_from('foo@bar')
|
|
1766
|
+
for class2_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1767
|
+
msg2 = class2_(msg_mboxMMDF)
|
|
1768
|
+
self.assertEqual(msg2.get_flags(), 'RODFA')
|
|
1769
|
+
self.assertEqual(msg2.get_from(), 'foo@bar')
|
|
1770
|
+
|
|
1771
|
+
def test_mboxmmdf_to_mh(self):
|
|
1772
|
+
# Convert mboxMessage and MMDFMessage to MHMessage
|
|
1773
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1774
|
+
msg_mboxMMDF = class_(_sample_message)
|
|
1775
|
+
pairs = (('R', []), ('O', ['unseen']), ('D', ['unseen']),
|
|
1776
|
+
('F', ['unseen', 'flagged']),
|
|
1777
|
+
('A', ['unseen', 'replied']),
|
|
1778
|
+
('RODFA', ['replied', 'flagged']))
|
|
1779
|
+
for setting, result in pairs:
|
|
1780
|
+
msg_mboxMMDF.set_flags(setting)
|
|
1781
|
+
self.assertEqual(mailbox.MHMessage(msg_mboxMMDF).get_sequences(),
|
|
1782
|
+
result)
|
|
1783
|
+
|
|
1784
|
+
def test_mboxmmdf_to_babyl(self):
|
|
1785
|
+
# Convert mboxMessage and MMDFMessage to BabylMessage
|
|
1786
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1787
|
+
msg = class_(_sample_message)
|
|
1788
|
+
pairs = (('R', []), ('O', ['unseen']),
|
|
1789
|
+
('D', ['unseen', 'deleted']), ('F', ['unseen']),
|
|
1790
|
+
('A', ['unseen', 'answered']),
|
|
1791
|
+
('RODFA', ['deleted', 'answered']))
|
|
1792
|
+
for setting, result in pairs:
|
|
1793
|
+
msg.set_flags(setting)
|
|
1794
|
+
self.assertEqual(mailbox.BabylMessage(msg).get_labels(), result)
|
|
1795
|
+
|
|
1796
|
+
def test_mh_to_maildir(self):
|
|
1797
|
+
# Convert MHMessage to MaildirMessage
|
|
1798
|
+
pairs = (('unseen', ''), ('replied', 'RS'), ('flagged', 'FS'))
|
|
1799
|
+
for setting, result in pairs:
|
|
1800
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1801
|
+
msg.add_sequence(setting)
|
|
1802
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_flags(), result)
|
|
1803
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_subdir(), 'cur')
|
|
1804
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1805
|
+
msg.add_sequence('unseen')
|
|
1806
|
+
msg.add_sequence('replied')
|
|
1807
|
+
msg.add_sequence('flagged')
|
|
1808
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_flags(), 'FR')
|
|
1809
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_subdir(), 'cur')
|
|
1810
|
+
|
|
1811
|
+
def test_mh_to_mboxmmdf(self):
|
|
1812
|
+
# Convert MHMessage to mboxMessage and MMDFMessage
|
|
1813
|
+
pairs = (('unseen', 'O'), ('replied', 'ROA'), ('flagged', 'ROF'))
|
|
1814
|
+
for setting, result in pairs:
|
|
1815
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1816
|
+
msg.add_sequence(setting)
|
|
1817
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1818
|
+
self.assertEqual(class_(msg).get_flags(), result)
|
|
1819
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1820
|
+
msg.add_sequence('unseen')
|
|
1821
|
+
msg.add_sequence('replied')
|
|
1822
|
+
msg.add_sequence('flagged')
|
|
1823
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1824
|
+
self.assertEqual(class_(msg).get_flags(), 'OFA')
|
|
1825
|
+
|
|
1826
|
+
def test_mh_to_mh(self):
|
|
1827
|
+
# Convert MHMessage to MHMessage
|
|
1828
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1829
|
+
msg.add_sequence('unseen')
|
|
1830
|
+
msg.add_sequence('replied')
|
|
1831
|
+
msg.add_sequence('flagged')
|
|
1832
|
+
self.assertEqual(mailbox.MHMessage(msg).get_sequences(),
|
|
1833
|
+
['unseen', 'replied', 'flagged'])
|
|
1834
|
+
|
|
1835
|
+
def test_mh_to_babyl(self):
|
|
1836
|
+
# Convert MHMessage to BabylMessage
|
|
1837
|
+
pairs = (('unseen', ['unseen']), ('replied', ['answered']),
|
|
1838
|
+
('flagged', []))
|
|
1839
|
+
for setting, result in pairs:
|
|
1840
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1841
|
+
msg.add_sequence(setting)
|
|
1842
|
+
self.assertEqual(mailbox.BabylMessage(msg).get_labels(), result)
|
|
1843
|
+
msg = mailbox.MHMessage(_sample_message)
|
|
1844
|
+
msg.add_sequence('unseen')
|
|
1845
|
+
msg.add_sequence('replied')
|
|
1846
|
+
msg.add_sequence('flagged')
|
|
1847
|
+
self.assertEqual(mailbox.BabylMessage(msg).get_labels(),
|
|
1848
|
+
['unseen', 'answered'])
|
|
1849
|
+
|
|
1850
|
+
def test_babyl_to_maildir(self):
|
|
1851
|
+
# Convert BabylMessage to MaildirMessage
|
|
1852
|
+
pairs = (('unseen', ''), ('deleted', 'ST'), ('filed', 'S'),
|
|
1853
|
+
('answered', 'RS'), ('forwarded', 'PS'), ('edited', 'S'),
|
|
1854
|
+
('resent', 'PS'))
|
|
1855
|
+
for setting, result in pairs:
|
|
1856
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1857
|
+
msg.add_label(setting)
|
|
1858
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_flags(), result)
|
|
1859
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_subdir(), 'cur')
|
|
1860
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1861
|
+
for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded',
|
|
1862
|
+
'edited', 'resent'):
|
|
1863
|
+
msg.add_label(label)
|
|
1864
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_flags(), 'PRT')
|
|
1865
|
+
self.assertEqual(mailbox.MaildirMessage(msg).get_subdir(), 'cur')
|
|
1866
|
+
|
|
1867
|
+
def test_babyl_to_mboxmmdf(self):
|
|
1868
|
+
# Convert BabylMessage to mboxMessage and MMDFMessage
|
|
1869
|
+
pairs = (('unseen', 'O'), ('deleted', 'ROD'), ('filed', 'RO'),
|
|
1870
|
+
('answered', 'ROA'), ('forwarded', 'RO'), ('edited', 'RO'),
|
|
1871
|
+
('resent', 'RO'))
|
|
1872
|
+
for setting, result in pairs:
|
|
1873
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1874
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1875
|
+
msg.add_label(setting)
|
|
1876
|
+
self.assertEqual(class_(msg).get_flags(), result)
|
|
1877
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1878
|
+
for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded',
|
|
1879
|
+
'edited', 'resent'):
|
|
1880
|
+
msg.add_label(label)
|
|
1881
|
+
for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage):
|
|
1882
|
+
self.assertEqual(class_(msg).get_flags(), 'ODA')
|
|
1883
|
+
|
|
1884
|
+
def test_babyl_to_mh(self):
|
|
1885
|
+
# Convert BabylMessage to MHMessage
|
|
1886
|
+
pairs = (('unseen', ['unseen']), ('deleted', []), ('filed', []),
|
|
1887
|
+
('answered', ['replied']), ('forwarded', []), ('edited', []),
|
|
1888
|
+
('resent', []))
|
|
1889
|
+
for setting, result in pairs:
|
|
1890
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1891
|
+
msg.add_label(setting)
|
|
1892
|
+
self.assertEqual(mailbox.MHMessage(msg).get_sequences(), result)
|
|
1893
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1894
|
+
for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded',
|
|
1895
|
+
'edited', 'resent'):
|
|
1896
|
+
msg.add_label(label)
|
|
1897
|
+
self.assertEqual(mailbox.MHMessage(msg).get_sequences(),
|
|
1898
|
+
['unseen', 'replied'])
|
|
1899
|
+
|
|
1900
|
+
def test_babyl_to_babyl(self):
|
|
1901
|
+
# Convert BabylMessage to BabylMessage
|
|
1902
|
+
msg = mailbox.BabylMessage(_sample_message)
|
|
1903
|
+
msg.update_visible()
|
|
1904
|
+
for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded',
|
|
1905
|
+
'edited', 'resent'):
|
|
1906
|
+
msg.add_label(label)
|
|
1907
|
+
msg2 = mailbox.BabylMessage(msg)
|
|
1908
|
+
self.assertEqual(msg2.get_labels(), ['unseen', 'deleted', 'filed',
|
|
1909
|
+
'answered', 'forwarded', 'edited',
|
|
1910
|
+
'resent'])
|
|
1911
|
+
self.assertEqual(msg.get_visible().keys(), msg2.get_visible().keys())
|
|
1912
|
+
for key in msg.get_visible().keys():
|
|
1913
|
+
self.assertEqual(msg.get_visible()[key], msg2.get_visible()[key])
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
class TestProxyFileBase(TestBase):
|
|
1917
|
+
|
|
1918
|
+
def _test_read(self, proxy):
|
|
1919
|
+
# Read by byte
|
|
1920
|
+
proxy.seek(0)
|
|
1921
|
+
self.assertEqual(proxy.read(), b'bar')
|
|
1922
|
+
proxy.seek(1)
|
|
1923
|
+
self.assertEqual(proxy.read(), b'ar')
|
|
1924
|
+
proxy.seek(0)
|
|
1925
|
+
self.assertEqual(proxy.read(2), b'ba')
|
|
1926
|
+
proxy.seek(1)
|
|
1927
|
+
self.assertEqual(proxy.read(-1), b'ar')
|
|
1928
|
+
proxy.seek(2)
|
|
1929
|
+
self.assertEqual(proxy.read(1000), b'r')
|
|
1930
|
+
|
|
1931
|
+
def _test_readline(self, proxy):
|
|
1932
|
+
# Read by line
|
|
1933
|
+
linesep = os.linesep.encode()
|
|
1934
|
+
proxy.seek(0)
|
|
1935
|
+
self.assertEqual(proxy.readline(), b'foo' + linesep)
|
|
1936
|
+
self.assertEqual(proxy.readline(), b'bar' + linesep)
|
|
1937
|
+
self.assertEqual(proxy.readline(), b'fred' + linesep)
|
|
1938
|
+
self.assertEqual(proxy.readline(), b'bob')
|
|
1939
|
+
proxy.seek(2)
|
|
1940
|
+
self.assertEqual(proxy.readline(), b'o' + linesep)
|
|
1941
|
+
proxy.seek(6 + 2 * len(os.linesep))
|
|
1942
|
+
self.assertEqual(proxy.readline(), b'fred' + linesep)
|
|
1943
|
+
proxy.seek(6 + 2 * len(os.linesep))
|
|
1944
|
+
self.assertEqual(proxy.readline(2), b'fr')
|
|
1945
|
+
self.assertEqual(proxy.readline(-10), b'ed' + linesep)
|
|
1946
|
+
|
|
1947
|
+
def _test_readlines(self, proxy):
|
|
1948
|
+
# Read multiple lines
|
|
1949
|
+
linesep = os.linesep.encode()
|
|
1950
|
+
proxy.seek(0)
|
|
1951
|
+
self.assertEqual(proxy.readlines(), [b'foo' + linesep,
|
|
1952
|
+
b'bar' + linesep,
|
|
1953
|
+
b'fred' + linesep, b'bob'])
|
|
1954
|
+
proxy.seek(0)
|
|
1955
|
+
self.assertEqual(proxy.readlines(2), [b'foo' + linesep])
|
|
1956
|
+
proxy.seek(3 + len(linesep))
|
|
1957
|
+
self.assertEqual(proxy.readlines(4 + len(linesep)),
|
|
1958
|
+
[b'bar' + linesep, b'fred' + linesep])
|
|
1959
|
+
proxy.seek(3)
|
|
1960
|
+
self.assertEqual(proxy.readlines(1000), [linesep, b'bar' + linesep,
|
|
1961
|
+
b'fred' + linesep, b'bob'])
|
|
1962
|
+
|
|
1963
|
+
def _test_iteration(self, proxy):
|
|
1964
|
+
# Iterate by line
|
|
1965
|
+
linesep = os.linesep.encode()
|
|
1966
|
+
proxy.seek(0)
|
|
1967
|
+
iterator = iter(proxy)
|
|
1968
|
+
self.assertEqual(next(iterator), b'foo' + linesep)
|
|
1969
|
+
self.assertEqual(next(iterator), b'bar' + linesep)
|
|
1970
|
+
self.assertEqual(next(iterator), b'fred' + linesep)
|
|
1971
|
+
self.assertEqual(next(iterator), b'bob')
|
|
1972
|
+
self.assertRaises(StopIteration, next, iterator)
|
|
1973
|
+
|
|
1974
|
+
def _test_seek_and_tell(self, proxy):
|
|
1975
|
+
# Seek and use tell to check position
|
|
1976
|
+
linesep = os.linesep.encode()
|
|
1977
|
+
proxy.seek(3)
|
|
1978
|
+
self.assertEqual(proxy.tell(), 3)
|
|
1979
|
+
self.assertEqual(proxy.read(len(linesep)), linesep)
|
|
1980
|
+
proxy.seek(2, 1)
|
|
1981
|
+
self.assertEqual(proxy.read(1 + len(linesep)), b'r' + linesep)
|
|
1982
|
+
proxy.seek(-3 - len(linesep), 2)
|
|
1983
|
+
self.assertEqual(proxy.read(3), b'bar')
|
|
1984
|
+
proxy.seek(2, 0)
|
|
1985
|
+
self.assertEqual(proxy.read(), b'o' + linesep + b'bar' + linesep)
|
|
1986
|
+
proxy.seek(100)
|
|
1987
|
+
self.assertFalse(proxy.read())
|
|
1988
|
+
|
|
1989
|
+
def _test_close(self, proxy):
|
|
1990
|
+
# Close a file
|
|
1991
|
+
self.assertFalse(proxy.closed)
|
|
1992
|
+
proxy.close()
|
|
1993
|
+
self.assertTrue(proxy.closed)
|
|
1994
|
+
# Issue 11700 subsequent closes should be a no-op.
|
|
1995
|
+
proxy.close()
|
|
1996
|
+
self.assertTrue(proxy.closed)
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
class TestProxyFile(TestProxyFileBase, unittest.TestCase):
|
|
2000
|
+
|
|
2001
|
+
def setUp(self):
|
|
2002
|
+
self._path = support.TESTFN
|
|
2003
|
+
self._file = open(self._path, 'wb+')
|
|
2004
|
+
|
|
2005
|
+
def tearDown(self):
|
|
2006
|
+
self._file.close()
|
|
2007
|
+
self._delete_recursively(self._path)
|
|
2008
|
+
|
|
2009
|
+
def test_initialize(self):
|
|
2010
|
+
# Initialize and check position
|
|
2011
|
+
self._file.write(b'foo')
|
|
2012
|
+
pos = self._file.tell()
|
|
2013
|
+
proxy0 = mailbox._ProxyFile(self._file)
|
|
2014
|
+
self.assertEqual(proxy0.tell(), pos)
|
|
2015
|
+
self.assertEqual(self._file.tell(), pos)
|
|
2016
|
+
proxy1 = mailbox._ProxyFile(self._file, 0)
|
|
2017
|
+
self.assertEqual(proxy1.tell(), 0)
|
|
2018
|
+
self.assertEqual(self._file.tell(), pos)
|
|
2019
|
+
|
|
2020
|
+
def test_read(self):
|
|
2021
|
+
self._file.write(b'bar')
|
|
2022
|
+
self._test_read(mailbox._ProxyFile(self._file))
|
|
2023
|
+
|
|
2024
|
+
def test_readline(self):
|
|
2025
|
+
self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
|
|
2026
|
+
os.linesep), 'ascii'))
|
|
2027
|
+
self._test_readline(mailbox._ProxyFile(self._file))
|
|
2028
|
+
|
|
2029
|
+
def test_readlines(self):
|
|
2030
|
+
self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
|
|
2031
|
+
os.linesep), 'ascii'))
|
|
2032
|
+
self._test_readlines(mailbox._ProxyFile(self._file))
|
|
2033
|
+
|
|
2034
|
+
def test_iteration(self):
|
|
2035
|
+
self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
|
|
2036
|
+
os.linesep), 'ascii'))
|
|
2037
|
+
self._test_iteration(mailbox._ProxyFile(self._file))
|
|
2038
|
+
|
|
2039
|
+
def test_seek_and_tell(self):
|
|
2040
|
+
self._file.write(bytes('foo%sbar%s' % (os.linesep, os.linesep), 'ascii'))
|
|
2041
|
+
self._test_seek_and_tell(mailbox._ProxyFile(self._file))
|
|
2042
|
+
|
|
2043
|
+
def test_close(self):
|
|
2044
|
+
self._file.write(bytes('foo%sbar%s' % (os.linesep, os.linesep), 'ascii'))
|
|
2045
|
+
self._test_close(mailbox._ProxyFile(self._file))
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
class TestPartialFile(TestProxyFileBase, unittest.TestCase):
|
|
2049
|
+
|
|
2050
|
+
def setUp(self):
|
|
2051
|
+
self._path = support.TESTFN
|
|
2052
|
+
self._file = open(self._path, 'wb+')
|
|
2053
|
+
|
|
2054
|
+
def tearDown(self):
|
|
2055
|
+
self._file.close()
|
|
2056
|
+
self._delete_recursively(self._path)
|
|
2057
|
+
|
|
2058
|
+
def test_initialize(self):
|
|
2059
|
+
# Initialize and check position
|
|
2060
|
+
self._file.write(bytes('foo' + os.linesep + 'bar', 'ascii'))
|
|
2061
|
+
pos = self._file.tell()
|
|
2062
|
+
proxy = mailbox._PartialFile(self._file, 2, 5)
|
|
2063
|
+
self.assertEqual(proxy.tell(), 0)
|
|
2064
|
+
self.assertEqual(self._file.tell(), pos)
|
|
2065
|
+
|
|
2066
|
+
def test_read(self):
|
|
2067
|
+
self._file.write(bytes('***bar***', 'ascii'))
|
|
2068
|
+
self._test_read(mailbox._PartialFile(self._file, 3, 6))
|
|
2069
|
+
|
|
2070
|
+
def test_readline(self):
|
|
2071
|
+
self._file.write(bytes('!!!!!foo%sbar%sfred%sbob!!!!!' %
|
|
2072
|
+
(os.linesep, os.linesep, os.linesep), 'ascii'))
|
|
2073
|
+
self._test_readline(mailbox._PartialFile(self._file, 5,
|
|
2074
|
+
18 + 3 * len(os.linesep)))
|
|
2075
|
+
|
|
2076
|
+
def test_readlines(self):
|
|
2077
|
+
self._file.write(bytes('foo%sbar%sfred%sbob?????' %
|
|
2078
|
+
(os.linesep, os.linesep, os.linesep), 'ascii'))
|
|
2079
|
+
self._test_readlines(mailbox._PartialFile(self._file, 0,
|
|
2080
|
+
13 + 3 * len(os.linesep)))
|
|
2081
|
+
|
|
2082
|
+
def test_iteration(self):
|
|
2083
|
+
self._file.write(bytes('____foo%sbar%sfred%sbob####' %
|
|
2084
|
+
(os.linesep, os.linesep, os.linesep), 'ascii'))
|
|
2085
|
+
self._test_iteration(mailbox._PartialFile(self._file, 4,
|
|
2086
|
+
17 + 3 * len(os.linesep)))
|
|
2087
|
+
|
|
2088
|
+
def test_seek_and_tell(self):
|
|
2089
|
+
self._file.write(bytes('(((foo%sbar%s$$$' % (os.linesep, os.linesep), 'ascii'))
|
|
2090
|
+
self._test_seek_and_tell(mailbox._PartialFile(self._file, 3,
|
|
2091
|
+
9 + 2 * len(os.linesep)))
|
|
2092
|
+
|
|
2093
|
+
def test_close(self):
|
|
2094
|
+
self._file.write(bytes('&foo%sbar%s^' % (os.linesep, os.linesep), 'ascii'))
|
|
2095
|
+
self._test_close(mailbox._PartialFile(self._file, 1,
|
|
2096
|
+
6 + 3 * len(os.linesep)))
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
## Start: tests from the original module (for backward compatibility).
|
|
2100
|
+
|
|
2101
|
+
FROM_ = "From some.body@dummy.domain Sat Jul 24 13:43:35 2004\n"
|
|
2102
|
+
DUMMY_MESSAGE = """\
|
|
2103
|
+
From: some.body@dummy.domain
|
|
2104
|
+
To: me@my.domain
|
|
2105
|
+
Subject: Simple Test
|
|
2106
|
+
|
|
2107
|
+
This is a dummy message.
|
|
2108
|
+
"""
|
|
2109
|
+
|
|
2110
|
+
class MaildirTestCase(unittest.TestCase):
|
|
2111
|
+
|
|
2112
|
+
def setUp(self):
|
|
2113
|
+
# create a new maildir mailbox to work with:
|
|
2114
|
+
self._dir = support.TESTFN
|
|
2115
|
+
if os.path.isdir(self._dir):
|
|
2116
|
+
support.rmtree(self._dir)
|
|
2117
|
+
elif os.path.isfile(self._dir):
|
|
2118
|
+
support.unlink(self._dir)
|
|
2119
|
+
os.mkdir(self._dir)
|
|
2120
|
+
os.mkdir(os.path.join(self._dir, "cur"))
|
|
2121
|
+
os.mkdir(os.path.join(self._dir, "tmp"))
|
|
2122
|
+
os.mkdir(os.path.join(self._dir, "new"))
|
|
2123
|
+
self._counter = 1
|
|
2124
|
+
self._msgfiles = []
|
|
2125
|
+
|
|
2126
|
+
def tearDown(self):
|
|
2127
|
+
list(map(os.unlink, self._msgfiles))
|
|
2128
|
+
support.rmdir(os.path.join(self._dir, "cur"))
|
|
2129
|
+
support.rmdir(os.path.join(self._dir, "tmp"))
|
|
2130
|
+
support.rmdir(os.path.join(self._dir, "new"))
|
|
2131
|
+
support.rmdir(self._dir)
|
|
2132
|
+
|
|
2133
|
+
def createMessage(self, dir, mbox=False):
|
|
2134
|
+
t = int(time.time() % 1000000)
|
|
2135
|
+
pid = self._counter
|
|
2136
|
+
self._counter += 1
|
|
2137
|
+
filename = ".".join((str(t), str(pid), "myhostname", "mydomain"))
|
|
2138
|
+
tmpname = os.path.join(self._dir, "tmp", filename)
|
|
2139
|
+
newname = os.path.join(self._dir, dir, filename)
|
|
2140
|
+
with open(tmpname, "w") as fp:
|
|
2141
|
+
self._msgfiles.append(tmpname)
|
|
2142
|
+
if mbox:
|
|
2143
|
+
fp.write(FROM_)
|
|
2144
|
+
fp.write(DUMMY_MESSAGE)
|
|
2145
|
+
if hasattr(os, "link"):
|
|
2146
|
+
os.link(tmpname, newname)
|
|
2147
|
+
else:
|
|
2148
|
+
with open(newname, "w") as fp:
|
|
2149
|
+
fp.write(DUMMY_MESSAGE)
|
|
2150
|
+
self._msgfiles.append(newname)
|
|
2151
|
+
return tmpname
|
|
2152
|
+
|
|
2153
|
+
def test_empty_maildir(self):
|
|
2154
|
+
"""Test an empty maildir mailbox"""
|
|
2155
|
+
# Test for regression on bug #117490:
|
|
2156
|
+
# Make sure the boxes attribute actually gets set.
|
|
2157
|
+
self.mbox = mailbox.Maildir(support.TESTFN)
|
|
2158
|
+
#self.assertTrue(hasattr(self.mbox, "boxes"))
|
|
2159
|
+
#self.assertEqual(len(self.mbox.boxes), 0)
|
|
2160
|
+
self.assertIsNone(self.mbox.next())
|
|
2161
|
+
self.assertIsNone(self.mbox.next())
|
|
2162
|
+
|
|
2163
|
+
def test_nonempty_maildir_cur(self):
|
|
2164
|
+
self.createMessage("cur")
|
|
2165
|
+
self.mbox = mailbox.Maildir(support.TESTFN)
|
|
2166
|
+
#self.assertEqual(len(self.mbox.boxes), 1)
|
|
2167
|
+
self.assertIsNotNone(self.mbox.next())
|
|
2168
|
+
self.assertIsNone(self.mbox.next())
|
|
2169
|
+
self.assertIsNone(self.mbox.next())
|
|
2170
|
+
|
|
2171
|
+
def test_nonempty_maildir_new(self):
|
|
2172
|
+
self.createMessage("new")
|
|
2173
|
+
self.mbox = mailbox.Maildir(support.TESTFN)
|
|
2174
|
+
#self.assertEqual(len(self.mbox.boxes), 1)
|
|
2175
|
+
self.assertIsNotNone(self.mbox.next())
|
|
2176
|
+
self.assertIsNone(self.mbox.next())
|
|
2177
|
+
self.assertIsNone(self.mbox.next())
|
|
2178
|
+
|
|
2179
|
+
def test_nonempty_maildir_both(self):
|
|
2180
|
+
self.createMessage("cur")
|
|
2181
|
+
self.createMessage("new")
|
|
2182
|
+
self.mbox = mailbox.Maildir(support.TESTFN)
|
|
2183
|
+
#self.assertEqual(len(self.mbox.boxes), 2)
|
|
2184
|
+
self.assertIsNotNone(self.mbox.next())
|
|
2185
|
+
self.assertIsNotNone(self.mbox.next())
|
|
2186
|
+
self.assertIsNone(self.mbox.next())
|
|
2187
|
+
self.assertIsNone(self.mbox.next())
|
|
2188
|
+
|
|
2189
|
+
## End: tests from the original module (for backward compatibility).
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
_sample_message = """\
|
|
2193
|
+
Return-Path: <gkj@gregorykjohnson.com>
|
|
2194
|
+
X-Original-To: gkj+person@localhost
|
|
2195
|
+
Delivered-To: gkj+person@localhost
|
|
2196
|
+
Received: from localhost (localhost [127.0.0.1])
|
|
2197
|
+
by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
|
|
2198
|
+
for <gkj+person@localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
|
|
2199
|
+
Delivered-To: gkj@sundance.gregorykjohnson.com
|
|
2200
|
+
Received: from localhost [127.0.0.1]
|
|
2201
|
+
by localhost with POP3 (fetchmail-6.2.5)
|
|
2202
|
+
for gkj+person@localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
|
|
2203
|
+
Received: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
|
|
2204
|
+
by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
|
|
2205
|
+
for <gkj@gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
|
|
2206
|
+
Received: by andy.gregorykjohnson.com (Postfix, from userid 1000)
|
|
2207
|
+
id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
|
|
2208
|
+
Date: Wed, 13 Jul 2005 17:23:11 -0400
|
|
2209
|
+
From: "Gregory K. Johnson" <gkj@gregorykjohnson.com>
|
|
2210
|
+
To: gkj@gregorykjohnson.com
|
|
2211
|
+
Subject: Sample message
|
|
2212
|
+
Message-ID: <20050713212311.GC4701@andy.gregorykjohnson.com>
|
|
2213
|
+
Mime-Version: 1.0
|
|
2214
|
+
Content-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"
|
|
2215
|
+
Content-Disposition: inline
|
|
2216
|
+
User-Agent: Mutt/1.5.9i
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
--NMuMz9nt05w80d4+
|
|
2220
|
+
Content-Type: text/plain; charset=us-ascii
|
|
2221
|
+
Content-Disposition: inline
|
|
2222
|
+
|
|
2223
|
+
This is a sample message.
|
|
2224
|
+
|
|
2225
|
+
--
|
|
2226
|
+
Gregory K. Johnson
|
|
2227
|
+
|
|
2228
|
+
--NMuMz9nt05w80d4+
|
|
2229
|
+
Content-Type: application/octet-stream
|
|
2230
|
+
Content-Disposition: attachment; filename="text.gz"
|
|
2231
|
+
Content-Transfer-Encoding: base64
|
|
2232
|
+
|
|
2233
|
+
H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs
|
|
2234
|
+
3FYlAAAA
|
|
2235
|
+
|
|
2236
|
+
--NMuMz9nt05w80d4+--
|
|
2237
|
+
"""
|
|
2238
|
+
|
|
2239
|
+
_bytes_sample_message = _sample_message.encode('ascii')
|
|
2240
|
+
|
|
2241
|
+
_sample_headers = {
|
|
2242
|
+
"Return-Path":"<gkj@gregorykjohnson.com>",
|
|
2243
|
+
"X-Original-To":"gkj+person@localhost",
|
|
2244
|
+
"Delivered-To":"gkj+person@localhost",
|
|
2245
|
+
"Received":"""from localhost (localhost [127.0.0.1])
|
|
2246
|
+
by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
|
|
2247
|
+
for <gkj+person@localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
|
|
2248
|
+
"Delivered-To":"gkj@sundance.gregorykjohnson.com",
|
|
2249
|
+
"Received":"""from localhost [127.0.0.1]
|
|
2250
|
+
by localhost with POP3 (fetchmail-6.2.5)
|
|
2251
|
+
for gkj+person@localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
|
|
2252
|
+
"Received":"""from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
|
|
2253
|
+
by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
|
|
2254
|
+
for <gkj@gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
|
|
2255
|
+
"Received":"""by andy.gregorykjohnson.com (Postfix, from userid 1000)
|
|
2256
|
+
id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
|
|
2257
|
+
"Date":"Wed, 13 Jul 2005 17:23:11 -0400",
|
|
2258
|
+
"From":""""Gregory K. Johnson" <gkj@gregorykjohnson.com>""",
|
|
2259
|
+
"To":"gkj@gregorykjohnson.com",
|
|
2260
|
+
"Subject":"Sample message",
|
|
2261
|
+
"Mime-Version":"1.0",
|
|
2262
|
+
"Content-Type":"""multipart/mixed; boundary="NMuMz9nt05w80d4+\"""",
|
|
2263
|
+
"Content-Disposition":"inline",
|
|
2264
|
+
"User-Agent": "Mutt/1.5.9i" }
|
|
2265
|
+
|
|
2266
|
+
_sample_payloads = ("""This is a sample message.
|
|
2267
|
+
|
|
2268
|
+
--
|
|
2269
|
+
Gregory K. Johnson
|
|
2270
|
+
""",
|
|
2271
|
+
"""H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs
|
|
2272
|
+
3FYlAAAA
|
|
2273
|
+
""")
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
def test_main():
|
|
2277
|
+
tests = (TestMailboxSuperclass, TestMaildir, TestMbox, TestMMDF, TestMH,
|
|
2278
|
+
TestBabyl, TestMessage, TestMaildirMessage, TestMboxMessage,
|
|
2279
|
+
TestMHMessage, TestBabylMessage, TestMMDFMessage,
|
|
2280
|
+
TestMessageConversion, TestProxyFile, TestPartialFile,
|
|
2281
|
+
MaildirTestCase, TestFakeMailBox)
|
|
2282
|
+
support.run_unittest(*tests)
|
|
2283
|
+
support.reap_children()
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
if __name__ == '__main__':
|
|
2287
|
+
test_main()
|