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,2622 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Generate Python documentation in HTML or text for interactive use.
|
|
3
|
+
|
|
4
|
+
At the Python interactive prompt, calling help(thing) on a Python object
|
|
5
|
+
documents the object, and calling help() starts up an interactive
|
|
6
|
+
help session.
|
|
7
|
+
|
|
8
|
+
Or, at the shell command line outside of Python:
|
|
9
|
+
|
|
10
|
+
Run "pydoc <name>" to show documentation on something. <name> may be
|
|
11
|
+
the name of a function, module, package, or a dotted reference to a
|
|
12
|
+
class or function within a module or module in a package. If the
|
|
13
|
+
argument contains a path segment delimiter (e.g. slash on Unix,
|
|
14
|
+
backslash on Windows) it is treated as the path to a Python source file.
|
|
15
|
+
|
|
16
|
+
Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines
|
|
17
|
+
of all available modules.
|
|
18
|
+
|
|
19
|
+
Run "pydoc -p <port>" to start an HTTP server on the given port on the
|
|
20
|
+
local machine. Port number 0 can be used to get an arbitrary unused port.
|
|
21
|
+
|
|
22
|
+
Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
|
|
23
|
+
open a Web browser to interactively browse documentation. The -p option
|
|
24
|
+
can be used with the -b option to explicitly specify the server port.
|
|
25
|
+
|
|
26
|
+
Run "pydoc -w <name>" to write out the HTML documentation for a module
|
|
27
|
+
to a file named "<name>.html".
|
|
28
|
+
|
|
29
|
+
Module docs for core modules are assumed to be in
|
|
30
|
+
|
|
31
|
+
http://docs.python.org/X.Y/library/
|
|
32
|
+
|
|
33
|
+
This can be overridden by setting the PYTHONDOCS environment variable
|
|
34
|
+
to a different URL or to a local directory containing the Library
|
|
35
|
+
Reference Manual pages.
|
|
36
|
+
"""
|
|
37
|
+
__all__ = ['help']
|
|
38
|
+
__author__ = "Ka-Ping Yee <ping@lfw.org>"
|
|
39
|
+
__date__ = "26 February 2001"
|
|
40
|
+
|
|
41
|
+
__credits__ = """Guido van Rossum, for an excellent programming language.
|
|
42
|
+
Tommy Burnette, the original creator of manpy.
|
|
43
|
+
Paul Prescod, for all his work on onlinehelp.
|
|
44
|
+
Richard Chamberlain, for the first implementation of textdoc.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
# Known bugs that can't be fixed here:
|
|
48
|
+
# - synopsis() cannot be prevented from clobbering existing
|
|
49
|
+
# loaded modules.
|
|
50
|
+
# - If the __file__ attribute on a module is a relative path and
|
|
51
|
+
# the current directory is changed with os.chdir(), an incorrect
|
|
52
|
+
# path will be displayed.
|
|
53
|
+
|
|
54
|
+
import builtins
|
|
55
|
+
import importlib._bootstrap
|
|
56
|
+
import importlib.machinery
|
|
57
|
+
import importlib.util
|
|
58
|
+
import inspect
|
|
59
|
+
import io
|
|
60
|
+
import os
|
|
61
|
+
import pkgutil
|
|
62
|
+
import platform
|
|
63
|
+
import re
|
|
64
|
+
import sys
|
|
65
|
+
import time
|
|
66
|
+
import tokenize
|
|
67
|
+
import urllib.parse
|
|
68
|
+
import warnings
|
|
69
|
+
from collections import deque
|
|
70
|
+
from reprlib import Repr
|
|
71
|
+
from traceback import format_exception_only
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
# --------------------------------------------------------- common routines
|
|
75
|
+
|
|
76
|
+
def pathdirs():
|
|
77
|
+
"""Convert sys.path into a list of absolute, existing, unique paths."""
|
|
78
|
+
dirs = []
|
|
79
|
+
normdirs = []
|
|
80
|
+
for dir in sys.path:
|
|
81
|
+
dir = os.path.abspath(dir or '.')
|
|
82
|
+
normdir = os.path.normcase(dir)
|
|
83
|
+
if normdir not in normdirs and os.path.isdir(dir):
|
|
84
|
+
dirs.append(dir)
|
|
85
|
+
normdirs.append(normdir)
|
|
86
|
+
return dirs
|
|
87
|
+
|
|
88
|
+
def getdoc(object):
|
|
89
|
+
"""Get the doc string or comments for an object."""
|
|
90
|
+
result = inspect.getdoc(object) or inspect.getcomments(object)
|
|
91
|
+
return result and re.sub('^ *\n', '', result.rstrip()) or ''
|
|
92
|
+
|
|
93
|
+
def splitdoc(doc):
|
|
94
|
+
"""Split a doc string into a synopsis line (if any) and the rest."""
|
|
95
|
+
lines = doc.strip().split('\n')
|
|
96
|
+
if len(lines) == 1:
|
|
97
|
+
return lines[0], ''
|
|
98
|
+
elif len(lines) >= 2 and not lines[1].rstrip():
|
|
99
|
+
return lines[0], '\n'.join(lines[2:])
|
|
100
|
+
return '', '\n'.join(lines)
|
|
101
|
+
|
|
102
|
+
def classname(object, modname):
|
|
103
|
+
"""Get a class name and qualify it with a module name if necessary."""
|
|
104
|
+
name = object.__name__
|
|
105
|
+
if object.__module__ != modname:
|
|
106
|
+
name = object.__module__ + '.' + name
|
|
107
|
+
return name
|
|
108
|
+
|
|
109
|
+
def isdata(object):
|
|
110
|
+
"""Check if an object is of a type that probably means it's data."""
|
|
111
|
+
return not (inspect.ismodule(object) or inspect.isclass(object) or
|
|
112
|
+
inspect.isroutine(object) or inspect.isframe(object) or
|
|
113
|
+
inspect.istraceback(object) or inspect.iscode(object))
|
|
114
|
+
|
|
115
|
+
def replace(text, *pairs):
|
|
116
|
+
"""Do a series of global replacements on a string."""
|
|
117
|
+
while pairs:
|
|
118
|
+
text = pairs[1].join(text.split(pairs[0]))
|
|
119
|
+
pairs = pairs[2:]
|
|
120
|
+
return text
|
|
121
|
+
|
|
122
|
+
def cram(text, maxlen):
|
|
123
|
+
"""Omit part of a string if needed to make it fit in a maximum length."""
|
|
124
|
+
if len(text) > maxlen:
|
|
125
|
+
pre = max(0, (maxlen-3)//2)
|
|
126
|
+
post = max(0, maxlen-3-pre)
|
|
127
|
+
return text[:pre] + '...' + text[len(text)-post:]
|
|
128
|
+
return text
|
|
129
|
+
|
|
130
|
+
_re_stripid = re.compile(r' at 0x[0-9a-f]{6,16}(>+)$', re.IGNORECASE)
|
|
131
|
+
def stripid(text):
|
|
132
|
+
"""Remove the hexadecimal id from a Python object representation."""
|
|
133
|
+
# The behaviour of %p is implementation-dependent in terms of case.
|
|
134
|
+
return _re_stripid.sub(r'\1', text)
|
|
135
|
+
|
|
136
|
+
def _is_some_method(obj):
|
|
137
|
+
return (inspect.isfunction(obj) or
|
|
138
|
+
inspect.ismethod(obj) or
|
|
139
|
+
inspect.isbuiltin(obj) or
|
|
140
|
+
inspect.ismethoddescriptor(obj))
|
|
141
|
+
|
|
142
|
+
def _is_bound_method(fn):
|
|
143
|
+
"""
|
|
144
|
+
Returns True if fn is a bound method, regardless of whether
|
|
145
|
+
fn was implemented in Python or in C.
|
|
146
|
+
"""
|
|
147
|
+
if inspect.ismethod(fn):
|
|
148
|
+
return True
|
|
149
|
+
if inspect.isbuiltin(fn):
|
|
150
|
+
self = getattr(fn, '__self__', None)
|
|
151
|
+
return not (inspect.ismodule(self) or (self is None))
|
|
152
|
+
return False
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def allmethods(cl):
|
|
156
|
+
methods = {}
|
|
157
|
+
for key, value in inspect.getmembers(cl, _is_some_method):
|
|
158
|
+
methods[key] = 1
|
|
159
|
+
for base in cl.__bases__:
|
|
160
|
+
methods.update(allmethods(base)) # all your base are belong to us
|
|
161
|
+
for key in methods.keys():
|
|
162
|
+
methods[key] = getattr(cl, key)
|
|
163
|
+
return methods
|
|
164
|
+
|
|
165
|
+
def _split_list(s, predicate):
|
|
166
|
+
"""Split sequence s via predicate, and return pair ([true], [false]).
|
|
167
|
+
|
|
168
|
+
The return value is a 2-tuple of lists,
|
|
169
|
+
([x for x in s if predicate(x)],
|
|
170
|
+
[x for x in s if not predicate(x)])
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
yes = []
|
|
174
|
+
no = []
|
|
175
|
+
for x in s:
|
|
176
|
+
if predicate(x):
|
|
177
|
+
yes.append(x)
|
|
178
|
+
else:
|
|
179
|
+
no.append(x)
|
|
180
|
+
return yes, no
|
|
181
|
+
|
|
182
|
+
def visiblename(name, all=None, obj=None):
|
|
183
|
+
"""Decide whether to show documentation on a variable."""
|
|
184
|
+
# Certain special names are redundant or internal.
|
|
185
|
+
# XXX Remove __initializing__?
|
|
186
|
+
if name in {'__author__', '__builtins__', '__cached__', '__credits__',
|
|
187
|
+
'__date__', '__doc__', '__file__', '__spec__',
|
|
188
|
+
'__loader__', '__module__', '__name__', '__package__',
|
|
189
|
+
'__path__', '__qualname__', '__slots__', '__version__'}:
|
|
190
|
+
return 0
|
|
191
|
+
# Private names are hidden, but special names are displayed.
|
|
192
|
+
if name.startswith('__') and name.endswith('__'): return 1
|
|
193
|
+
# Namedtuples have public fields and methods with a single leading underscore
|
|
194
|
+
if name.startswith('_') and hasattr(obj, '_fields'):
|
|
195
|
+
return True
|
|
196
|
+
if all is not None:
|
|
197
|
+
# only document that which the programmer exported in __all__
|
|
198
|
+
return name in all
|
|
199
|
+
else:
|
|
200
|
+
return not name.startswith('_')
|
|
201
|
+
|
|
202
|
+
def classify_class_attrs(object):
|
|
203
|
+
"""Wrap inspect.classify_class_attrs, with fixup for data descriptors."""
|
|
204
|
+
results = []
|
|
205
|
+
for (name, kind, cls, value) in inspect.classify_class_attrs(object):
|
|
206
|
+
if inspect.isdatadescriptor(value):
|
|
207
|
+
kind = 'data descriptor'
|
|
208
|
+
results.append((name, kind, cls, value))
|
|
209
|
+
return results
|
|
210
|
+
|
|
211
|
+
# ----------------------------------------------------- module manipulation
|
|
212
|
+
|
|
213
|
+
def ispackage(path):
|
|
214
|
+
"""Guess whether a path refers to a package directory."""
|
|
215
|
+
if os.path.isdir(path):
|
|
216
|
+
for ext in ('.py', '.pyc', '.pyo'):
|
|
217
|
+
if os.path.isfile(os.path.join(path, '__init__' + ext)):
|
|
218
|
+
return True
|
|
219
|
+
return False
|
|
220
|
+
|
|
221
|
+
def source_synopsis(file):
|
|
222
|
+
line = file.readline()
|
|
223
|
+
while line[:1] == '#' or not line.strip():
|
|
224
|
+
line = file.readline()
|
|
225
|
+
if not line: break
|
|
226
|
+
line = line.strip()
|
|
227
|
+
if line[:4] == 'r"""': line = line[1:]
|
|
228
|
+
if line[:3] == '"""':
|
|
229
|
+
line = line[3:]
|
|
230
|
+
if line[-1:] == '\\': line = line[:-1]
|
|
231
|
+
while not line.strip():
|
|
232
|
+
line = file.readline()
|
|
233
|
+
if not line: break
|
|
234
|
+
result = line.split('"""')[0].strip()
|
|
235
|
+
else: result = None
|
|
236
|
+
return result
|
|
237
|
+
|
|
238
|
+
def synopsis(filename, cache={}):
|
|
239
|
+
"""Get the one-line summary out of a module file."""
|
|
240
|
+
mtime = os.stat(filename).st_mtime
|
|
241
|
+
lastupdate, result = cache.get(filename, (None, None))
|
|
242
|
+
if lastupdate is None or lastupdate < mtime:
|
|
243
|
+
# Look for binary suffixes first, falling back to source.
|
|
244
|
+
if filename.endswith(tuple(importlib.machinery.BYTECODE_SUFFIXES)):
|
|
245
|
+
loader_cls = importlib.machinery.SourcelessFileLoader
|
|
246
|
+
elif filename.endswith(tuple(importlib.machinery.EXTENSION_SUFFIXES)):
|
|
247
|
+
loader_cls = importlib.machinery.ExtensionFileLoader
|
|
248
|
+
else:
|
|
249
|
+
loader_cls = None
|
|
250
|
+
# Now handle the choice.
|
|
251
|
+
if loader_cls is None:
|
|
252
|
+
# Must be a source file.
|
|
253
|
+
try:
|
|
254
|
+
file = tokenize.open(filename)
|
|
255
|
+
except OSError:
|
|
256
|
+
# module can't be opened, so skip it
|
|
257
|
+
return None
|
|
258
|
+
# text modules can be directly examined
|
|
259
|
+
with file:
|
|
260
|
+
result = source_synopsis(file)
|
|
261
|
+
else:
|
|
262
|
+
# Must be a binary module, which has to be imported.
|
|
263
|
+
loader = loader_cls('__temp__', filename)
|
|
264
|
+
# XXX We probably don't need to pass in the loader here.
|
|
265
|
+
spec = importlib.util.spec_from_file_location('__temp__', filename,
|
|
266
|
+
loader=loader)
|
|
267
|
+
_spec = importlib._bootstrap._SpecMethods(spec)
|
|
268
|
+
try:
|
|
269
|
+
module = _spec.load()
|
|
270
|
+
except:
|
|
271
|
+
return None
|
|
272
|
+
del sys.modules['__temp__']
|
|
273
|
+
result = (module.__doc__ or '').splitlines()[0]
|
|
274
|
+
# Cache the result.
|
|
275
|
+
cache[filename] = (mtime, result)
|
|
276
|
+
return result
|
|
277
|
+
|
|
278
|
+
class ErrorDuringImport(Exception):
|
|
279
|
+
"""Errors that occurred while trying to import something to document it."""
|
|
280
|
+
def __init__(self, filename, exc_info):
|
|
281
|
+
self.filename = filename
|
|
282
|
+
self.exc, self.value, self.tb = exc_info
|
|
283
|
+
|
|
284
|
+
def __str__(self):
|
|
285
|
+
exc = self.exc.__name__
|
|
286
|
+
return 'problem in %s - %s: %s' % (self.filename, exc, self.value)
|
|
287
|
+
|
|
288
|
+
def importfile(path):
|
|
289
|
+
"""Import a Python source file or compiled file given its path."""
|
|
290
|
+
magic = importlib.util.MAGIC_NUMBER
|
|
291
|
+
with open(path, 'rb') as file:
|
|
292
|
+
is_bytecode = magic == file.read(len(magic))
|
|
293
|
+
filename = os.path.basename(path)
|
|
294
|
+
name, ext = os.path.splitext(filename)
|
|
295
|
+
if is_bytecode:
|
|
296
|
+
loader = importlib._bootstrap.SourcelessFileLoader(name, path)
|
|
297
|
+
else:
|
|
298
|
+
loader = importlib._bootstrap.SourceFileLoader(name, path)
|
|
299
|
+
# XXX We probably don't need to pass in the loader here.
|
|
300
|
+
spec = importlib.util.spec_from_file_location(name, path, loader=loader)
|
|
301
|
+
_spec = importlib._bootstrap._SpecMethods(spec)
|
|
302
|
+
try:
|
|
303
|
+
return _spec.load()
|
|
304
|
+
except:
|
|
305
|
+
raise ErrorDuringImport(path, sys.exc_info())
|
|
306
|
+
|
|
307
|
+
def safeimport(path, forceload=0, cache={}):
|
|
308
|
+
"""Import a module; handle errors; return None if the module isn't found.
|
|
309
|
+
|
|
310
|
+
If the module *is* found but an exception occurs, it's wrapped in an
|
|
311
|
+
ErrorDuringImport exception and reraised. Unlike __import__, if a
|
|
312
|
+
package path is specified, the module at the end of the path is returned,
|
|
313
|
+
not the package at the beginning. If the optional 'forceload' argument
|
|
314
|
+
is 1, we reload the module from disk (unless it's a dynamic extension)."""
|
|
315
|
+
try:
|
|
316
|
+
# If forceload is 1 and the module has been previously loaded from
|
|
317
|
+
# disk, we always have to reload the module. Checking the file's
|
|
318
|
+
# mtime isn't good enough (e.g. the module could contain a class
|
|
319
|
+
# that inherits from another module that has changed).
|
|
320
|
+
if forceload and path in sys.modules:
|
|
321
|
+
if path not in sys.builtin_module_names:
|
|
322
|
+
# Remove the module from sys.modules and re-import to try
|
|
323
|
+
# and avoid problems with partially loaded modules.
|
|
324
|
+
# Also remove any submodules because they won't appear
|
|
325
|
+
# in the newly loaded module's namespace if they're already
|
|
326
|
+
# in sys.modules.
|
|
327
|
+
subs = [m for m in sys.modules if m.startswith(path + '.')]
|
|
328
|
+
for key in [path] + subs:
|
|
329
|
+
# Prevent garbage collection.
|
|
330
|
+
cache[key] = sys.modules[key]
|
|
331
|
+
del sys.modules[key]
|
|
332
|
+
module = __import__(path)
|
|
333
|
+
except:
|
|
334
|
+
# Did the error occur before or after the module was found?
|
|
335
|
+
(exc, value, tb) = info = sys.exc_info()
|
|
336
|
+
if path in sys.modules:
|
|
337
|
+
# An error occurred while executing the imported module.
|
|
338
|
+
raise ErrorDuringImport(sys.modules[path].__file__, info)
|
|
339
|
+
elif exc is SyntaxError:
|
|
340
|
+
# A SyntaxError occurred before we could execute the module.
|
|
341
|
+
raise ErrorDuringImport(value.filename, info)
|
|
342
|
+
elif exc is ImportError and value.name == path:
|
|
343
|
+
# No such module in the path.
|
|
344
|
+
return None
|
|
345
|
+
else:
|
|
346
|
+
# Some other error occurred during the importing process.
|
|
347
|
+
raise ErrorDuringImport(path, sys.exc_info())
|
|
348
|
+
for part in path.split('.')[1:]:
|
|
349
|
+
try: module = getattr(module, part)
|
|
350
|
+
except AttributeError: return None
|
|
351
|
+
return module
|
|
352
|
+
|
|
353
|
+
# ---------------------------------------------------- formatter base class
|
|
354
|
+
|
|
355
|
+
class Doc:
|
|
356
|
+
|
|
357
|
+
PYTHONDOCS = os.environ.get("PYTHONDOCS",
|
|
358
|
+
"http://docs.python.org/%d.%d/library"
|
|
359
|
+
% sys.version_info[:2])
|
|
360
|
+
|
|
361
|
+
def document(self, object, name=None, *args):
|
|
362
|
+
"""Generate documentation for an object."""
|
|
363
|
+
args = (object, name) + args
|
|
364
|
+
# 'try' clause is to attempt to handle the possibility that inspect
|
|
365
|
+
# identifies something in a way that pydoc itself has issues handling;
|
|
366
|
+
# think 'super' and how it is a descriptor (which raises the exception
|
|
367
|
+
# by lacking a __name__ attribute) and an instance.
|
|
368
|
+
if inspect.isgetsetdescriptor(object): return self.docdata(*args)
|
|
369
|
+
if inspect.ismemberdescriptor(object): return self.docdata(*args)
|
|
370
|
+
try:
|
|
371
|
+
if inspect.ismodule(object): return self.docmodule(*args)
|
|
372
|
+
if inspect.isclass(object): return self.docclass(*args)
|
|
373
|
+
if inspect.isroutine(object): return self.docroutine(*args)
|
|
374
|
+
except AttributeError:
|
|
375
|
+
pass
|
|
376
|
+
if isinstance(object, property): return self.docproperty(*args)
|
|
377
|
+
return self.docother(*args)
|
|
378
|
+
|
|
379
|
+
def fail(self, object, name=None, *args):
|
|
380
|
+
"""Raise an exception for unimplemented types."""
|
|
381
|
+
message = "don't know how to document object%s of type %s" % (
|
|
382
|
+
name and ' ' + repr(name), type(object).__name__)
|
|
383
|
+
raise TypeError(message)
|
|
384
|
+
|
|
385
|
+
docmodule = docclass = docroutine = docother = docproperty = docdata = fail
|
|
386
|
+
|
|
387
|
+
def getdocloc(self, object):
|
|
388
|
+
"""Return the location of module docs or None"""
|
|
389
|
+
|
|
390
|
+
try:
|
|
391
|
+
file = inspect.getabsfile(object)
|
|
392
|
+
except TypeError:
|
|
393
|
+
file = '(built-in)'
|
|
394
|
+
|
|
395
|
+
docloc = os.environ.get("PYTHONDOCS", self.PYTHONDOCS)
|
|
396
|
+
|
|
397
|
+
basedir = os.path.join(sys.base_exec_prefix, "lib",
|
|
398
|
+
"python%d.%d" % sys.version_info[:2])
|
|
399
|
+
if (isinstance(object, type(os)) and
|
|
400
|
+
(object.__name__ in ('errno', 'exceptions', 'gc', 'imp',
|
|
401
|
+
'marshal', 'posix', 'signal', 'sys',
|
|
402
|
+
'_thread', 'zipimport') or
|
|
403
|
+
(file.startswith(basedir) and
|
|
404
|
+
not file.startswith(os.path.join(basedir, 'site-packages')))) and
|
|
405
|
+
object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
|
|
406
|
+
if docloc.startswith("http://"):
|
|
407
|
+
docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__)
|
|
408
|
+
else:
|
|
409
|
+
docloc = os.path.join(docloc, object.__name__ + ".html")
|
|
410
|
+
else:
|
|
411
|
+
docloc = None
|
|
412
|
+
return docloc
|
|
413
|
+
|
|
414
|
+
# -------------------------------------------- HTML documentation generator
|
|
415
|
+
|
|
416
|
+
class HTMLRepr(Repr):
|
|
417
|
+
"""Class for safely making an HTML representation of a Python object."""
|
|
418
|
+
def __init__(self):
|
|
419
|
+
Repr.__init__(self)
|
|
420
|
+
self.maxlist = self.maxtuple = 20
|
|
421
|
+
self.maxdict = 10
|
|
422
|
+
self.maxstring = self.maxother = 100
|
|
423
|
+
|
|
424
|
+
def escape(self, text):
|
|
425
|
+
return replace(text, '&', '&', '<', '<', '>', '>')
|
|
426
|
+
|
|
427
|
+
def repr(self, object):
|
|
428
|
+
return Repr.repr(self, object)
|
|
429
|
+
|
|
430
|
+
def repr1(self, x, level):
|
|
431
|
+
if hasattr(type(x), '__name__'):
|
|
432
|
+
methodname = 'repr_' + '_'.join(type(x).__name__.split())
|
|
433
|
+
if hasattr(self, methodname):
|
|
434
|
+
return getattr(self, methodname)(x, level)
|
|
435
|
+
return self.escape(cram(stripid(repr(x)), self.maxother))
|
|
436
|
+
|
|
437
|
+
def repr_string(self, x, level):
|
|
438
|
+
test = cram(x, self.maxstring)
|
|
439
|
+
testrepr = repr(test)
|
|
440
|
+
if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
|
|
441
|
+
# Backslashes are only literal in the string and are never
|
|
442
|
+
# needed to make any special characters, so show a raw string.
|
|
443
|
+
return 'r' + testrepr[0] + self.escape(test) + testrepr[0]
|
|
444
|
+
return re.sub(r'((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)',
|
|
445
|
+
r'<font color="#c040c0">\1</font>',
|
|
446
|
+
self.escape(testrepr))
|
|
447
|
+
|
|
448
|
+
repr_str = repr_string
|
|
449
|
+
|
|
450
|
+
def repr_instance(self, x, level):
|
|
451
|
+
try:
|
|
452
|
+
return self.escape(cram(stripid(repr(x)), self.maxstring))
|
|
453
|
+
except:
|
|
454
|
+
return self.escape('<%s instance>' % x.__class__.__name__)
|
|
455
|
+
|
|
456
|
+
repr_unicode = repr_string
|
|
457
|
+
|
|
458
|
+
class HTMLDoc(Doc):
|
|
459
|
+
"""Formatter class for HTML documentation."""
|
|
460
|
+
|
|
461
|
+
# ------------------------------------------- HTML formatting utilities
|
|
462
|
+
|
|
463
|
+
_repr_instance = HTMLRepr()
|
|
464
|
+
repr = _repr_instance.repr
|
|
465
|
+
escape = _repr_instance.escape
|
|
466
|
+
|
|
467
|
+
def page(self, title, contents):
|
|
468
|
+
"""Format an HTML page."""
|
|
469
|
+
return '''\
|
|
470
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
471
|
+
<html><head><title>Python: %s</title>
|
|
472
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
473
|
+
</head><body bgcolor="#f0f0f8">
|
|
474
|
+
%s
|
|
475
|
+
</body></html>''' % (title, contents)
|
|
476
|
+
|
|
477
|
+
def heading(self, title, fgcol, bgcol, extras=''):
|
|
478
|
+
"""Format a page heading."""
|
|
479
|
+
return '''
|
|
480
|
+
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
481
|
+
<tr bgcolor="%s">
|
|
482
|
+
<td valign=bottom> <br>
|
|
483
|
+
<font color="%s" face="helvetica, arial"> <br>%s</font></td
|
|
484
|
+
><td align=right valign=bottom
|
|
485
|
+
><font color="%s" face="helvetica, arial">%s</font></td></tr></table>
|
|
486
|
+
''' % (bgcol, fgcol, title, fgcol, extras or ' ')
|
|
487
|
+
|
|
488
|
+
def section(self, title, fgcol, bgcol, contents, width=6,
|
|
489
|
+
prelude='', marginalia=None, gap=' '):
|
|
490
|
+
"""Format a section with a heading."""
|
|
491
|
+
if marginalia is None:
|
|
492
|
+
marginalia = '<tt>' + ' ' * width + '</tt>'
|
|
493
|
+
result = '''<p>
|
|
494
|
+
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
495
|
+
<tr bgcolor="%s">
|
|
496
|
+
<td colspan=3 valign=bottom> <br>
|
|
497
|
+
<font color="%s" face="helvetica, arial">%s</font></td></tr>
|
|
498
|
+
''' % (bgcol, fgcol, title)
|
|
499
|
+
if prelude:
|
|
500
|
+
result = result + '''
|
|
501
|
+
<tr bgcolor="%s"><td rowspan=2>%s</td>
|
|
502
|
+
<td colspan=2>%s</td></tr>
|
|
503
|
+
<tr><td>%s</td>''' % (bgcol, marginalia, prelude, gap)
|
|
504
|
+
else:
|
|
505
|
+
result = result + '''
|
|
506
|
+
<tr><td bgcolor="%s">%s</td><td>%s</td>''' % (bgcol, marginalia, gap)
|
|
507
|
+
|
|
508
|
+
return result + '\n<td width="100%%">%s</td></tr></table>' % contents
|
|
509
|
+
|
|
510
|
+
def bigsection(self, title, *args):
|
|
511
|
+
"""Format a section with a big heading."""
|
|
512
|
+
title = '<big><strong>%s</strong></big>' % title
|
|
513
|
+
return self.section(title, *args)
|
|
514
|
+
|
|
515
|
+
def preformat(self, text):
|
|
516
|
+
"""Format literal preformatted text."""
|
|
517
|
+
text = self.escape(text.expandtabs())
|
|
518
|
+
return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
|
|
519
|
+
' ', ' ', '\n', '<br>\n')
|
|
520
|
+
|
|
521
|
+
def multicolumn(self, list, format, cols=4):
|
|
522
|
+
"""Format a list of items into a multi-column list."""
|
|
523
|
+
result = ''
|
|
524
|
+
rows = (len(list)+cols-1)//cols
|
|
525
|
+
for col in range(cols):
|
|
526
|
+
result = result + '<td width="%d%%" valign=top>' % (100//cols)
|
|
527
|
+
for i in range(rows*col, rows*col+rows):
|
|
528
|
+
if i < len(list):
|
|
529
|
+
result = result + format(list[i]) + '<br>\n'
|
|
530
|
+
result = result + '</td>'
|
|
531
|
+
return '<table width="100%%" summary="list"><tr>%s</tr></table>' % result
|
|
532
|
+
|
|
533
|
+
def grey(self, text): return '<font color="#909090">%s</font>' % text
|
|
534
|
+
|
|
535
|
+
def namelink(self, name, *dicts):
|
|
536
|
+
"""Make a link for an identifier, given name-to-URL mappings."""
|
|
537
|
+
for dict in dicts:
|
|
538
|
+
if name in dict:
|
|
539
|
+
return '<a href="%s">%s</a>' % (dict[name], name)
|
|
540
|
+
return name
|
|
541
|
+
|
|
542
|
+
def classlink(self, object, modname):
|
|
543
|
+
"""Make a link for a class."""
|
|
544
|
+
name, module = object.__name__, sys.modules.get(object.__module__)
|
|
545
|
+
if hasattr(module, name) and getattr(module, name) is object:
|
|
546
|
+
return '<a href="%s.html#%s">%s</a>' % (
|
|
547
|
+
module.__name__, name, classname(object, modname))
|
|
548
|
+
return classname(object, modname)
|
|
549
|
+
|
|
550
|
+
def modulelink(self, object):
|
|
551
|
+
"""Make a link for a module."""
|
|
552
|
+
return '<a href="%s.html">%s</a>' % (object.__name__, object.__name__)
|
|
553
|
+
|
|
554
|
+
def modpkglink(self, modpkginfo):
|
|
555
|
+
"""Make a link for a module or package to display in an index."""
|
|
556
|
+
name, path, ispackage, shadowed = modpkginfo
|
|
557
|
+
if shadowed:
|
|
558
|
+
return self.grey(name)
|
|
559
|
+
if path:
|
|
560
|
+
url = '%s.%s.html' % (path, name)
|
|
561
|
+
else:
|
|
562
|
+
url = '%s.html' % name
|
|
563
|
+
if ispackage:
|
|
564
|
+
text = '<strong>%s</strong> (package)' % name
|
|
565
|
+
else:
|
|
566
|
+
text = name
|
|
567
|
+
return '<a href="%s">%s</a>' % (url, text)
|
|
568
|
+
|
|
569
|
+
def filelink(self, url, path):
|
|
570
|
+
"""Make a link to source file."""
|
|
571
|
+
return '<a href="file:%s">%s</a>' % (url, path)
|
|
572
|
+
|
|
573
|
+
def markup(self, text, escape=None, funcs={}, classes={}, methods={}):
|
|
574
|
+
"""Mark up some plain text, given a context of symbols to look for.
|
|
575
|
+
Each context dictionary maps object names to anchor names."""
|
|
576
|
+
escape = escape or self.escape
|
|
577
|
+
results = []
|
|
578
|
+
here = 0
|
|
579
|
+
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
|
|
580
|
+
r'RFC[- ]?(\d+)|'
|
|
581
|
+
r'PEP[- ]?(\d+)|'
|
|
582
|
+
r'(self\.)?(\w+))')
|
|
583
|
+
while True:
|
|
584
|
+
match = pattern.search(text, here)
|
|
585
|
+
if not match: break
|
|
586
|
+
start, end = match.span()
|
|
587
|
+
results.append(escape(text[here:start]))
|
|
588
|
+
|
|
589
|
+
all, scheme, rfc, pep, selfdot, name = match.groups()
|
|
590
|
+
if scheme:
|
|
591
|
+
url = escape(all).replace('"', '"')
|
|
592
|
+
results.append('<a href="%s">%s</a>' % (url, url))
|
|
593
|
+
elif rfc:
|
|
594
|
+
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
|
|
595
|
+
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
|
596
|
+
elif pep:
|
|
597
|
+
url = 'http://www.python.org/dev/peps/pep-%04d/' % int(pep)
|
|
598
|
+
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
|
599
|
+
elif selfdot:
|
|
600
|
+
# Create a link for methods like 'self.method(...)'
|
|
601
|
+
# and use <strong> for attributes like 'self.attr'
|
|
602
|
+
if text[end:end+1] == '(':
|
|
603
|
+
results.append('self.' + self.namelink(name, methods))
|
|
604
|
+
else:
|
|
605
|
+
results.append('self.<strong>%s</strong>' % name)
|
|
606
|
+
elif text[end:end+1] == '(':
|
|
607
|
+
results.append(self.namelink(name, methods, funcs, classes))
|
|
608
|
+
else:
|
|
609
|
+
results.append(self.namelink(name, classes))
|
|
610
|
+
here = end
|
|
611
|
+
results.append(escape(text[here:]))
|
|
612
|
+
return ''.join(results)
|
|
613
|
+
|
|
614
|
+
# ---------------------------------------------- type-specific routines
|
|
615
|
+
|
|
616
|
+
def formattree(self, tree, modname, parent=None):
|
|
617
|
+
"""Produce HTML for a class tree as given by inspect.getclasstree()."""
|
|
618
|
+
result = ''
|
|
619
|
+
for entry in tree:
|
|
620
|
+
if type(entry) is type(()):
|
|
621
|
+
c, bases = entry
|
|
622
|
+
result = result + '<dt><font face="helvetica, arial">'
|
|
623
|
+
result = result + self.classlink(c, modname)
|
|
624
|
+
if bases and bases != (parent,):
|
|
625
|
+
parents = []
|
|
626
|
+
for base in bases:
|
|
627
|
+
parents.append(self.classlink(base, modname))
|
|
628
|
+
result = result + '(' + ', '.join(parents) + ')'
|
|
629
|
+
result = result + '\n</font></dt>'
|
|
630
|
+
elif type(entry) is type([]):
|
|
631
|
+
result = result + '<dd>\n%s</dd>\n' % self.formattree(
|
|
632
|
+
entry, modname, c)
|
|
633
|
+
return '<dl>\n%s</dl>\n' % result
|
|
634
|
+
|
|
635
|
+
def docmodule(self, object, name=None, mod=None, *ignored):
|
|
636
|
+
"""Produce HTML documentation for a module object."""
|
|
637
|
+
name = object.__name__ # ignore the passed-in name
|
|
638
|
+
try:
|
|
639
|
+
all = object.__all__
|
|
640
|
+
except AttributeError:
|
|
641
|
+
all = None
|
|
642
|
+
parts = name.split('.')
|
|
643
|
+
links = []
|
|
644
|
+
for i in range(len(parts)-1):
|
|
645
|
+
links.append(
|
|
646
|
+
'<a href="%s.html"><font color="#ffffff">%s</font></a>' %
|
|
647
|
+
('.'.join(parts[:i+1]), parts[i]))
|
|
648
|
+
linkedname = '.'.join(links + parts[-1:])
|
|
649
|
+
head = '<big><big><strong>%s</strong></big></big>' % linkedname
|
|
650
|
+
try:
|
|
651
|
+
path = inspect.getabsfile(object)
|
|
652
|
+
url = urllib.parse.quote(path)
|
|
653
|
+
filelink = self.filelink(url, path)
|
|
654
|
+
except TypeError:
|
|
655
|
+
filelink = '(built-in)'
|
|
656
|
+
info = []
|
|
657
|
+
if hasattr(object, '__version__'):
|
|
658
|
+
version = str(object.__version__)
|
|
659
|
+
if version[:11] == '$' + 'Revision: ' and version[-1:] == '$':
|
|
660
|
+
version = version[11:-1].strip()
|
|
661
|
+
info.append('version %s' % self.escape(version))
|
|
662
|
+
if hasattr(object, '__date__'):
|
|
663
|
+
info.append(self.escape(str(object.__date__)))
|
|
664
|
+
if info:
|
|
665
|
+
head = head + ' (%s)' % ', '.join(info)
|
|
666
|
+
docloc = self.getdocloc(object)
|
|
667
|
+
if docloc is not None:
|
|
668
|
+
docloc = '<br><a href="%(docloc)s">Module Reference</a>' % locals()
|
|
669
|
+
else:
|
|
670
|
+
docloc = ''
|
|
671
|
+
result = self.heading(
|
|
672
|
+
head, '#ffffff', '#7799ee',
|
|
673
|
+
'<a href=".">index</a><br>' + filelink + docloc)
|
|
674
|
+
|
|
675
|
+
modules = inspect.getmembers(object, inspect.ismodule)
|
|
676
|
+
|
|
677
|
+
classes, cdict = [], {}
|
|
678
|
+
for key, value in inspect.getmembers(object, inspect.isclass):
|
|
679
|
+
# if __all__ exists, believe it. Otherwise use old heuristic.
|
|
680
|
+
if (all is not None or
|
|
681
|
+
(inspect.getmodule(value) or object) is object):
|
|
682
|
+
if visiblename(key, all, object):
|
|
683
|
+
classes.append((key, value))
|
|
684
|
+
cdict[key] = cdict[value] = '#' + key
|
|
685
|
+
for key, value in classes:
|
|
686
|
+
for base in value.__bases__:
|
|
687
|
+
key, modname = base.__name__, base.__module__
|
|
688
|
+
module = sys.modules.get(modname)
|
|
689
|
+
if modname != name and module and hasattr(module, key):
|
|
690
|
+
if getattr(module, key) is base:
|
|
691
|
+
if not key in cdict:
|
|
692
|
+
cdict[key] = cdict[base] = modname + '.html#' + key
|
|
693
|
+
funcs, fdict = [], {}
|
|
694
|
+
for key, value in inspect.getmembers(object, inspect.isroutine):
|
|
695
|
+
# if __all__ exists, believe it. Otherwise use old heuristic.
|
|
696
|
+
if (all is not None or
|
|
697
|
+
inspect.isbuiltin(value) or inspect.getmodule(value) is object):
|
|
698
|
+
if visiblename(key, all, object):
|
|
699
|
+
funcs.append((key, value))
|
|
700
|
+
fdict[key] = '#-' + key
|
|
701
|
+
if inspect.isfunction(value): fdict[value] = fdict[key]
|
|
702
|
+
data = []
|
|
703
|
+
for key, value in inspect.getmembers(object, isdata):
|
|
704
|
+
if visiblename(key, all, object):
|
|
705
|
+
data.append((key, value))
|
|
706
|
+
|
|
707
|
+
doc = self.markup(getdoc(object), self.preformat, fdict, cdict)
|
|
708
|
+
doc = doc and '<tt>%s</tt>' % doc
|
|
709
|
+
result = result + '<p>%s</p>\n' % doc
|
|
710
|
+
|
|
711
|
+
if hasattr(object, '__path__'):
|
|
712
|
+
modpkgs = []
|
|
713
|
+
for importer, modname, ispkg in pkgutil.iter_modules(object.__path__):
|
|
714
|
+
modpkgs.append((modname, name, ispkg, 0))
|
|
715
|
+
modpkgs.sort()
|
|
716
|
+
contents = self.multicolumn(modpkgs, self.modpkglink)
|
|
717
|
+
result = result + self.bigsection(
|
|
718
|
+
'Package Contents', '#ffffff', '#aa55cc', contents)
|
|
719
|
+
elif modules:
|
|
720
|
+
contents = self.multicolumn(
|
|
721
|
+
modules, lambda t: self.modulelink(t[1]))
|
|
722
|
+
result = result + self.bigsection(
|
|
723
|
+
'Modules', '#ffffff', '#aa55cc', contents)
|
|
724
|
+
|
|
725
|
+
if classes:
|
|
726
|
+
classlist = [value for (key, value) in classes]
|
|
727
|
+
contents = [
|
|
728
|
+
self.formattree(inspect.getclasstree(classlist, 1), name)]
|
|
729
|
+
for key, value in classes:
|
|
730
|
+
contents.append(self.document(value, key, name, fdict, cdict))
|
|
731
|
+
result = result + self.bigsection(
|
|
732
|
+
'Classes', '#ffffff', '#ee77aa', ' '.join(contents))
|
|
733
|
+
if funcs:
|
|
734
|
+
contents = []
|
|
735
|
+
for key, value in funcs:
|
|
736
|
+
contents.append(self.document(value, key, name, fdict, cdict))
|
|
737
|
+
result = result + self.bigsection(
|
|
738
|
+
'Functions', '#ffffff', '#eeaa77', ' '.join(contents))
|
|
739
|
+
if data:
|
|
740
|
+
contents = []
|
|
741
|
+
for key, value in data:
|
|
742
|
+
contents.append(self.document(value, key))
|
|
743
|
+
result = result + self.bigsection(
|
|
744
|
+
'Data', '#ffffff', '#55aa55', '<br>\n'.join(contents))
|
|
745
|
+
if hasattr(object, '__author__'):
|
|
746
|
+
contents = self.markup(str(object.__author__), self.preformat)
|
|
747
|
+
result = result + self.bigsection(
|
|
748
|
+
'Author', '#ffffff', '#7799ee', contents)
|
|
749
|
+
if hasattr(object, '__credits__'):
|
|
750
|
+
contents = self.markup(str(object.__credits__), self.preformat)
|
|
751
|
+
result = result + self.bigsection(
|
|
752
|
+
'Credits', '#ffffff', '#7799ee', contents)
|
|
753
|
+
|
|
754
|
+
return result
|
|
755
|
+
|
|
756
|
+
def docclass(self, object, name=None, mod=None, funcs={}, classes={},
|
|
757
|
+
*ignored):
|
|
758
|
+
"""Produce HTML documentation for a class object."""
|
|
759
|
+
realname = object.__name__
|
|
760
|
+
name = name or realname
|
|
761
|
+
bases = object.__bases__
|
|
762
|
+
|
|
763
|
+
contents = []
|
|
764
|
+
push = contents.append
|
|
765
|
+
|
|
766
|
+
# Cute little class to pump out a horizontal rule between sections.
|
|
767
|
+
class HorizontalRule:
|
|
768
|
+
def __init__(self):
|
|
769
|
+
self.needone = 0
|
|
770
|
+
def maybe(self):
|
|
771
|
+
if self.needone:
|
|
772
|
+
push('<hr>\n')
|
|
773
|
+
self.needone = 1
|
|
774
|
+
hr = HorizontalRule()
|
|
775
|
+
|
|
776
|
+
# List the mro, if non-trivial.
|
|
777
|
+
mro = deque(inspect.getmro(object))
|
|
778
|
+
if len(mro) > 2:
|
|
779
|
+
hr.maybe()
|
|
780
|
+
push('<dl><dt>Method resolution order:</dt>\n')
|
|
781
|
+
for base in mro:
|
|
782
|
+
push('<dd>%s</dd>\n' % self.classlink(base,
|
|
783
|
+
object.__module__))
|
|
784
|
+
push('</dl>\n')
|
|
785
|
+
|
|
786
|
+
def spill(msg, attrs, predicate):
|
|
787
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
788
|
+
if ok:
|
|
789
|
+
hr.maybe()
|
|
790
|
+
push(msg)
|
|
791
|
+
for name, kind, homecls, value in ok:
|
|
792
|
+
try:
|
|
793
|
+
value = getattr(object, name)
|
|
794
|
+
except Exception:
|
|
795
|
+
# Some descriptors may meet a failure in their __get__.
|
|
796
|
+
# (bug #1785)
|
|
797
|
+
push(self._docdescriptor(name, value, mod))
|
|
798
|
+
else:
|
|
799
|
+
push(self.document(value, name, mod,
|
|
800
|
+
funcs, classes, mdict, object))
|
|
801
|
+
push('\n')
|
|
802
|
+
return attrs
|
|
803
|
+
|
|
804
|
+
def spilldescriptors(msg, attrs, predicate):
|
|
805
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
806
|
+
if ok:
|
|
807
|
+
hr.maybe()
|
|
808
|
+
push(msg)
|
|
809
|
+
for name, kind, homecls, value in ok:
|
|
810
|
+
push(self._docdescriptor(name, value, mod))
|
|
811
|
+
return attrs
|
|
812
|
+
|
|
813
|
+
def spilldata(msg, attrs, predicate):
|
|
814
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
815
|
+
if ok:
|
|
816
|
+
hr.maybe()
|
|
817
|
+
push(msg)
|
|
818
|
+
for name, kind, homecls, value in ok:
|
|
819
|
+
base = self.docother(getattr(object, name), name, mod)
|
|
820
|
+
if callable(value) or inspect.isdatadescriptor(value):
|
|
821
|
+
doc = getattr(value, "__doc__", None)
|
|
822
|
+
else:
|
|
823
|
+
doc = None
|
|
824
|
+
if doc is None:
|
|
825
|
+
push('<dl><dt>%s</dl>\n' % base)
|
|
826
|
+
else:
|
|
827
|
+
doc = self.markup(getdoc(value), self.preformat,
|
|
828
|
+
funcs, classes, mdict)
|
|
829
|
+
doc = '<dd><tt>%s</tt>' % doc
|
|
830
|
+
push('<dl><dt>%s%s</dl>\n' % (base, doc))
|
|
831
|
+
push('\n')
|
|
832
|
+
return attrs
|
|
833
|
+
|
|
834
|
+
attrs = [(name, kind, cls, value)
|
|
835
|
+
for name, kind, cls, value in classify_class_attrs(object)
|
|
836
|
+
if visiblename(name, obj=object)]
|
|
837
|
+
|
|
838
|
+
mdict = {}
|
|
839
|
+
for key, kind, homecls, value in attrs:
|
|
840
|
+
mdict[key] = anchor = '#' + name + '-' + key
|
|
841
|
+
try:
|
|
842
|
+
value = getattr(object, name)
|
|
843
|
+
except Exception:
|
|
844
|
+
# Some descriptors may meet a failure in their __get__.
|
|
845
|
+
# (bug #1785)
|
|
846
|
+
pass
|
|
847
|
+
try:
|
|
848
|
+
# The value may not be hashable (e.g., a data attr with
|
|
849
|
+
# a dict or list value).
|
|
850
|
+
mdict[value] = anchor
|
|
851
|
+
except TypeError:
|
|
852
|
+
pass
|
|
853
|
+
|
|
854
|
+
while attrs:
|
|
855
|
+
if mro:
|
|
856
|
+
thisclass = mro.popleft()
|
|
857
|
+
else:
|
|
858
|
+
thisclass = attrs[0][2]
|
|
859
|
+
attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
|
|
860
|
+
|
|
861
|
+
if thisclass is builtins.object:
|
|
862
|
+
attrs = inherited
|
|
863
|
+
continue
|
|
864
|
+
elif thisclass is object:
|
|
865
|
+
tag = 'defined here'
|
|
866
|
+
else:
|
|
867
|
+
tag = 'inherited from %s' % self.classlink(thisclass,
|
|
868
|
+
object.__module__)
|
|
869
|
+
tag += ':<br>\n'
|
|
870
|
+
|
|
871
|
+
# Sort attrs by name.
|
|
872
|
+
attrs.sort(key=lambda t: t[0])
|
|
873
|
+
|
|
874
|
+
# Pump out the attrs, segregated by kind.
|
|
875
|
+
attrs = spill('Methods %s' % tag, attrs,
|
|
876
|
+
lambda t: t[1] == 'method')
|
|
877
|
+
attrs = spill('Class methods %s' % tag, attrs,
|
|
878
|
+
lambda t: t[1] == 'class method')
|
|
879
|
+
attrs = spill('Static methods %s' % tag, attrs,
|
|
880
|
+
lambda t: t[1] == 'static method')
|
|
881
|
+
attrs = spilldescriptors('Data descriptors %s' % tag, attrs,
|
|
882
|
+
lambda t: t[1] == 'data descriptor')
|
|
883
|
+
attrs = spilldata('Data and other attributes %s' % tag, attrs,
|
|
884
|
+
lambda t: t[1] == 'data')
|
|
885
|
+
assert attrs == []
|
|
886
|
+
attrs = inherited
|
|
887
|
+
|
|
888
|
+
contents = ''.join(contents)
|
|
889
|
+
|
|
890
|
+
if name == realname:
|
|
891
|
+
title = '<a name="%s">class <strong>%s</strong></a>' % (
|
|
892
|
+
name, realname)
|
|
893
|
+
else:
|
|
894
|
+
title = '<strong>%s</strong> = <a name="%s">class %s</a>' % (
|
|
895
|
+
name, name, realname)
|
|
896
|
+
if bases:
|
|
897
|
+
parents = []
|
|
898
|
+
for base in bases:
|
|
899
|
+
parents.append(self.classlink(base, object.__module__))
|
|
900
|
+
title = title + '(%s)' % ', '.join(parents)
|
|
901
|
+
doc = self.markup(getdoc(object), self.preformat, funcs, classes, mdict)
|
|
902
|
+
doc = doc and '<tt>%s<br> </tt>' % doc
|
|
903
|
+
|
|
904
|
+
return self.section(title, '#000000', '#ffc8d8', contents, 3, doc)
|
|
905
|
+
|
|
906
|
+
def formatvalue(self, object):
|
|
907
|
+
"""Format an argument default value as text."""
|
|
908
|
+
return self.grey('=' + self.repr(object))
|
|
909
|
+
|
|
910
|
+
def docroutine(self, object, name=None, mod=None,
|
|
911
|
+
funcs={}, classes={}, methods={}, cl=None):
|
|
912
|
+
"""Produce HTML documentation for a function or method object."""
|
|
913
|
+
realname = object.__name__
|
|
914
|
+
name = name or realname
|
|
915
|
+
anchor = (cl and cl.__name__ or '') + '-' + name
|
|
916
|
+
note = ''
|
|
917
|
+
skipdocs = 0
|
|
918
|
+
if _is_bound_method(object):
|
|
919
|
+
imclass = object.__self__.__class__
|
|
920
|
+
if cl:
|
|
921
|
+
if imclass is not cl:
|
|
922
|
+
note = ' from ' + self.classlink(imclass, mod)
|
|
923
|
+
else:
|
|
924
|
+
if object.__self__ is not None:
|
|
925
|
+
note = ' method of %s instance' % self.classlink(
|
|
926
|
+
object.__self__.__class__, mod)
|
|
927
|
+
else:
|
|
928
|
+
note = ' unbound %s method' % self.classlink(imclass,mod)
|
|
929
|
+
|
|
930
|
+
if name == realname:
|
|
931
|
+
title = '<a name="%s"><strong>%s</strong></a>' % (anchor, realname)
|
|
932
|
+
else:
|
|
933
|
+
if (cl and realname in cl.__dict__ and
|
|
934
|
+
cl.__dict__[realname] is object):
|
|
935
|
+
reallink = '<a href="#%s">%s</a>' % (
|
|
936
|
+
cl.__name__ + '-' + realname, realname)
|
|
937
|
+
skipdocs = 1
|
|
938
|
+
else:
|
|
939
|
+
reallink = realname
|
|
940
|
+
title = '<a name="%s"><strong>%s</strong></a> = %s' % (
|
|
941
|
+
anchor, name, reallink)
|
|
942
|
+
argspec = None
|
|
943
|
+
if inspect.isroutine(object):
|
|
944
|
+
try:
|
|
945
|
+
signature = inspect.signature(object)
|
|
946
|
+
except (ValueError, TypeError):
|
|
947
|
+
signature = None
|
|
948
|
+
if signature:
|
|
949
|
+
argspec = str(signature)
|
|
950
|
+
if realname == '<lambda>':
|
|
951
|
+
title = '<strong>%s</strong> <em>lambda</em> ' % name
|
|
952
|
+
# XXX lambda's won't usually have func_annotations['return']
|
|
953
|
+
# since the syntax doesn't support but it is possible.
|
|
954
|
+
# So removing parentheses isn't truly safe.
|
|
955
|
+
argspec = argspec[1:-1] # remove parentheses
|
|
956
|
+
if not argspec:
|
|
957
|
+
argspec = '(...)'
|
|
958
|
+
|
|
959
|
+
decl = title + argspec + (note and self.grey(
|
|
960
|
+
'<font face="helvetica, arial">%s</font>' % note))
|
|
961
|
+
|
|
962
|
+
if skipdocs:
|
|
963
|
+
return '<dl><dt>%s</dt></dl>\n' % decl
|
|
964
|
+
else:
|
|
965
|
+
doc = self.markup(
|
|
966
|
+
getdoc(object), self.preformat, funcs, classes, methods)
|
|
967
|
+
doc = doc and '<dd><tt>%s</tt></dd>' % doc
|
|
968
|
+
return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
|
|
969
|
+
|
|
970
|
+
def _docdescriptor(self, name, value, mod):
|
|
971
|
+
results = []
|
|
972
|
+
push = results.append
|
|
973
|
+
|
|
974
|
+
if name:
|
|
975
|
+
push('<dl><dt><strong>%s</strong></dt>\n' % name)
|
|
976
|
+
if value.__doc__ is not None:
|
|
977
|
+
doc = self.markup(getdoc(value), self.preformat)
|
|
978
|
+
push('<dd><tt>%s</tt></dd>\n' % doc)
|
|
979
|
+
push('</dl>\n')
|
|
980
|
+
|
|
981
|
+
return ''.join(results)
|
|
982
|
+
|
|
983
|
+
def docproperty(self, object, name=None, mod=None, cl=None):
|
|
984
|
+
"""Produce html documentation for a property."""
|
|
985
|
+
return self._docdescriptor(name, object, mod)
|
|
986
|
+
|
|
987
|
+
def docother(self, object, name=None, mod=None, *ignored):
|
|
988
|
+
"""Produce HTML documentation for a data object."""
|
|
989
|
+
lhs = name and '<strong>%s</strong> = ' % name or ''
|
|
990
|
+
return lhs + self.repr(object)
|
|
991
|
+
|
|
992
|
+
def docdata(self, object, name=None, mod=None, cl=None):
|
|
993
|
+
"""Produce html documentation for a data descriptor."""
|
|
994
|
+
return self._docdescriptor(name, object, mod)
|
|
995
|
+
|
|
996
|
+
def index(self, dir, shadowed=None):
|
|
997
|
+
"""Generate an HTML index for a directory of modules."""
|
|
998
|
+
modpkgs = []
|
|
999
|
+
if shadowed is None: shadowed = {}
|
|
1000
|
+
for importer, name, ispkg in pkgutil.iter_modules([dir]):
|
|
1001
|
+
if any((0xD800 <= ord(ch) <= 0xDFFF) for ch in name):
|
|
1002
|
+
# ignore a module if its name contains a surrogate character
|
|
1003
|
+
continue
|
|
1004
|
+
modpkgs.append((name, '', ispkg, name in shadowed))
|
|
1005
|
+
shadowed[name] = 1
|
|
1006
|
+
|
|
1007
|
+
modpkgs.sort()
|
|
1008
|
+
contents = self.multicolumn(modpkgs, self.modpkglink)
|
|
1009
|
+
return self.bigsection(dir, '#ffffff', '#ee77aa', contents)
|
|
1010
|
+
|
|
1011
|
+
# -------------------------------------------- text documentation generator
|
|
1012
|
+
|
|
1013
|
+
class TextRepr(Repr):
|
|
1014
|
+
"""Class for safely making a text representation of a Python object."""
|
|
1015
|
+
def __init__(self):
|
|
1016
|
+
Repr.__init__(self)
|
|
1017
|
+
self.maxlist = self.maxtuple = 20
|
|
1018
|
+
self.maxdict = 10
|
|
1019
|
+
self.maxstring = self.maxother = 100
|
|
1020
|
+
|
|
1021
|
+
def repr1(self, x, level):
|
|
1022
|
+
if hasattr(type(x), '__name__'):
|
|
1023
|
+
methodname = 'repr_' + '_'.join(type(x).__name__.split())
|
|
1024
|
+
if hasattr(self, methodname):
|
|
1025
|
+
return getattr(self, methodname)(x, level)
|
|
1026
|
+
return cram(stripid(repr(x)), self.maxother)
|
|
1027
|
+
|
|
1028
|
+
def repr_string(self, x, level):
|
|
1029
|
+
test = cram(x, self.maxstring)
|
|
1030
|
+
testrepr = repr(test)
|
|
1031
|
+
if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
|
|
1032
|
+
# Backslashes are only literal in the string and are never
|
|
1033
|
+
# needed to make any special characters, so show a raw string.
|
|
1034
|
+
return 'r' + testrepr[0] + test + testrepr[0]
|
|
1035
|
+
return testrepr
|
|
1036
|
+
|
|
1037
|
+
repr_str = repr_string
|
|
1038
|
+
|
|
1039
|
+
def repr_instance(self, x, level):
|
|
1040
|
+
try:
|
|
1041
|
+
return cram(stripid(repr(x)), self.maxstring)
|
|
1042
|
+
except:
|
|
1043
|
+
return '<%s instance>' % x.__class__.__name__
|
|
1044
|
+
|
|
1045
|
+
class TextDoc(Doc):
|
|
1046
|
+
"""Formatter class for text documentation."""
|
|
1047
|
+
|
|
1048
|
+
# ------------------------------------------- text formatting utilities
|
|
1049
|
+
|
|
1050
|
+
_repr_instance = TextRepr()
|
|
1051
|
+
repr = _repr_instance.repr
|
|
1052
|
+
|
|
1053
|
+
def bold(self, text):
|
|
1054
|
+
"""Format a string in bold by overstriking."""
|
|
1055
|
+
return ''.join(ch + '\b' + ch for ch in text)
|
|
1056
|
+
|
|
1057
|
+
def indent(self, text, prefix=' '):
|
|
1058
|
+
"""Indent text by prepending a given prefix to each line."""
|
|
1059
|
+
if not text: return ''
|
|
1060
|
+
lines = [prefix + line for line in text.split('\n')]
|
|
1061
|
+
if lines: lines[-1] = lines[-1].rstrip()
|
|
1062
|
+
return '\n'.join(lines)
|
|
1063
|
+
|
|
1064
|
+
def section(self, title, contents):
|
|
1065
|
+
"""Format a section with a given heading."""
|
|
1066
|
+
clean_contents = self.indent(contents).rstrip()
|
|
1067
|
+
return self.bold(title) + '\n' + clean_contents + '\n\n'
|
|
1068
|
+
|
|
1069
|
+
# ---------------------------------------------- type-specific routines
|
|
1070
|
+
|
|
1071
|
+
def formattree(self, tree, modname, parent=None, prefix=''):
|
|
1072
|
+
"""Render in text a class tree as returned by inspect.getclasstree()."""
|
|
1073
|
+
result = ''
|
|
1074
|
+
for entry in tree:
|
|
1075
|
+
if type(entry) is type(()):
|
|
1076
|
+
c, bases = entry
|
|
1077
|
+
result = result + prefix + classname(c, modname)
|
|
1078
|
+
if bases and bases != (parent,):
|
|
1079
|
+
parents = (classname(c, modname) for c in bases)
|
|
1080
|
+
result = result + '(%s)' % ', '.join(parents)
|
|
1081
|
+
result = result + '\n'
|
|
1082
|
+
elif type(entry) is type([]):
|
|
1083
|
+
result = result + self.formattree(
|
|
1084
|
+
entry, modname, c, prefix + ' ')
|
|
1085
|
+
return result
|
|
1086
|
+
|
|
1087
|
+
def docmodule(self, object, name=None, mod=None):
|
|
1088
|
+
"""Produce text documentation for a given module object."""
|
|
1089
|
+
name = object.__name__ # ignore the passed-in name
|
|
1090
|
+
synop, desc = splitdoc(getdoc(object))
|
|
1091
|
+
result = self.section('NAME', name + (synop and ' - ' + synop))
|
|
1092
|
+
all = getattr(object, '__all__', None)
|
|
1093
|
+
docloc = self.getdocloc(object)
|
|
1094
|
+
if docloc is not None:
|
|
1095
|
+
result = result + self.section('MODULE REFERENCE', docloc + """
|
|
1096
|
+
|
|
1097
|
+
The following documentation is automatically generated from the Python
|
|
1098
|
+
source files. It may be incomplete, incorrect or include features that
|
|
1099
|
+
are considered implementation detail and may vary between Python
|
|
1100
|
+
implementations. When in doubt, consult the module reference at the
|
|
1101
|
+
location listed above.
|
|
1102
|
+
""")
|
|
1103
|
+
|
|
1104
|
+
if desc:
|
|
1105
|
+
result = result + self.section('DESCRIPTION', desc)
|
|
1106
|
+
|
|
1107
|
+
classes = []
|
|
1108
|
+
for key, value in inspect.getmembers(object, inspect.isclass):
|
|
1109
|
+
# if __all__ exists, believe it. Otherwise use old heuristic.
|
|
1110
|
+
if (all is not None
|
|
1111
|
+
or (inspect.getmodule(value) or object) is object):
|
|
1112
|
+
if visiblename(key, all, object):
|
|
1113
|
+
classes.append((key, value))
|
|
1114
|
+
funcs = []
|
|
1115
|
+
for key, value in inspect.getmembers(object, inspect.isroutine):
|
|
1116
|
+
# if __all__ exists, believe it. Otherwise use old heuristic.
|
|
1117
|
+
if (all is not None or
|
|
1118
|
+
inspect.isbuiltin(value) or inspect.getmodule(value) is object):
|
|
1119
|
+
if visiblename(key, all, object):
|
|
1120
|
+
funcs.append((key, value))
|
|
1121
|
+
data = []
|
|
1122
|
+
for key, value in inspect.getmembers(object, isdata):
|
|
1123
|
+
if visiblename(key, all, object):
|
|
1124
|
+
data.append((key, value))
|
|
1125
|
+
|
|
1126
|
+
modpkgs = []
|
|
1127
|
+
modpkgs_names = set()
|
|
1128
|
+
if hasattr(object, '__path__'):
|
|
1129
|
+
for importer, modname, ispkg in pkgutil.iter_modules(object.__path__):
|
|
1130
|
+
modpkgs_names.add(modname)
|
|
1131
|
+
if ispkg:
|
|
1132
|
+
modpkgs.append(modname + ' (package)')
|
|
1133
|
+
else:
|
|
1134
|
+
modpkgs.append(modname)
|
|
1135
|
+
|
|
1136
|
+
modpkgs.sort()
|
|
1137
|
+
result = result + self.section(
|
|
1138
|
+
'PACKAGE CONTENTS', '\n'.join(modpkgs))
|
|
1139
|
+
|
|
1140
|
+
# Detect submodules as sometimes created by C extensions
|
|
1141
|
+
submodules = []
|
|
1142
|
+
for key, value in inspect.getmembers(object, inspect.ismodule):
|
|
1143
|
+
if value.__name__.startswith(name + '.') and key not in modpkgs_names:
|
|
1144
|
+
submodules.append(key)
|
|
1145
|
+
if submodules:
|
|
1146
|
+
submodules.sort()
|
|
1147
|
+
result = result + self.section(
|
|
1148
|
+
'SUBMODULES', '\n'.join(submodules))
|
|
1149
|
+
|
|
1150
|
+
if classes:
|
|
1151
|
+
classlist = [value for key, value in classes]
|
|
1152
|
+
contents = [self.formattree(
|
|
1153
|
+
inspect.getclasstree(classlist, 1), name)]
|
|
1154
|
+
for key, value in classes:
|
|
1155
|
+
contents.append(self.document(value, key, name))
|
|
1156
|
+
result = result + self.section('CLASSES', '\n'.join(contents))
|
|
1157
|
+
|
|
1158
|
+
if funcs:
|
|
1159
|
+
contents = []
|
|
1160
|
+
for key, value in funcs:
|
|
1161
|
+
contents.append(self.document(value, key, name))
|
|
1162
|
+
result = result + self.section('FUNCTIONS', '\n'.join(contents))
|
|
1163
|
+
|
|
1164
|
+
if data:
|
|
1165
|
+
contents = []
|
|
1166
|
+
for key, value in data:
|
|
1167
|
+
contents.append(self.docother(value, key, name, maxlen=70))
|
|
1168
|
+
result = result + self.section('DATA', '\n'.join(contents))
|
|
1169
|
+
|
|
1170
|
+
if hasattr(object, '__version__'):
|
|
1171
|
+
version = str(object.__version__)
|
|
1172
|
+
if version[:11] == '$' + 'Revision: ' and version[-1:] == '$':
|
|
1173
|
+
version = version[11:-1].strip()
|
|
1174
|
+
result = result + self.section('VERSION', version)
|
|
1175
|
+
if hasattr(object, '__date__'):
|
|
1176
|
+
result = result + self.section('DATE', str(object.__date__))
|
|
1177
|
+
if hasattr(object, '__author__'):
|
|
1178
|
+
result = result + self.section('AUTHOR', str(object.__author__))
|
|
1179
|
+
if hasattr(object, '__credits__'):
|
|
1180
|
+
result = result + self.section('CREDITS', str(object.__credits__))
|
|
1181
|
+
try:
|
|
1182
|
+
file = inspect.getabsfile(object)
|
|
1183
|
+
except TypeError:
|
|
1184
|
+
file = '(built-in)'
|
|
1185
|
+
result = result + self.section('FILE', file)
|
|
1186
|
+
return result
|
|
1187
|
+
|
|
1188
|
+
def docclass(self, object, name=None, mod=None, *ignored):
|
|
1189
|
+
"""Produce text documentation for a given class object."""
|
|
1190
|
+
realname = object.__name__
|
|
1191
|
+
name = name or realname
|
|
1192
|
+
bases = object.__bases__
|
|
1193
|
+
|
|
1194
|
+
def makename(c, m=object.__module__):
|
|
1195
|
+
return classname(c, m)
|
|
1196
|
+
|
|
1197
|
+
if name == realname:
|
|
1198
|
+
title = 'class ' + self.bold(realname)
|
|
1199
|
+
else:
|
|
1200
|
+
title = self.bold(name) + ' = class ' + realname
|
|
1201
|
+
if bases:
|
|
1202
|
+
parents = map(makename, bases)
|
|
1203
|
+
title = title + '(%s)' % ', '.join(parents)
|
|
1204
|
+
|
|
1205
|
+
doc = getdoc(object)
|
|
1206
|
+
contents = doc and [doc + '\n'] or []
|
|
1207
|
+
push = contents.append
|
|
1208
|
+
|
|
1209
|
+
# List the mro, if non-trivial.
|
|
1210
|
+
mro = deque(inspect.getmro(object))
|
|
1211
|
+
if len(mro) > 2:
|
|
1212
|
+
push("Method resolution order:")
|
|
1213
|
+
for base in mro:
|
|
1214
|
+
push(' ' + makename(base))
|
|
1215
|
+
push('')
|
|
1216
|
+
|
|
1217
|
+
# Cute little class to pump out a horizontal rule between sections.
|
|
1218
|
+
class HorizontalRule:
|
|
1219
|
+
def __init__(self):
|
|
1220
|
+
self.needone = 0
|
|
1221
|
+
def maybe(self):
|
|
1222
|
+
if self.needone:
|
|
1223
|
+
push('-' * 70)
|
|
1224
|
+
self.needone = 1
|
|
1225
|
+
hr = HorizontalRule()
|
|
1226
|
+
|
|
1227
|
+
def spill(msg, attrs, predicate):
|
|
1228
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
1229
|
+
if ok:
|
|
1230
|
+
hr.maybe()
|
|
1231
|
+
push(msg)
|
|
1232
|
+
for name, kind, homecls, value in ok:
|
|
1233
|
+
try:
|
|
1234
|
+
value = getattr(object, name)
|
|
1235
|
+
except Exception:
|
|
1236
|
+
# Some descriptors may meet a failure in their __get__.
|
|
1237
|
+
# (bug #1785)
|
|
1238
|
+
push(self._docdescriptor(name, value, mod))
|
|
1239
|
+
else:
|
|
1240
|
+
push(self.document(value,
|
|
1241
|
+
name, mod, object))
|
|
1242
|
+
return attrs
|
|
1243
|
+
|
|
1244
|
+
def spilldescriptors(msg, attrs, predicate):
|
|
1245
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
1246
|
+
if ok:
|
|
1247
|
+
hr.maybe()
|
|
1248
|
+
push(msg)
|
|
1249
|
+
for name, kind, homecls, value in ok:
|
|
1250
|
+
push(self._docdescriptor(name, value, mod))
|
|
1251
|
+
return attrs
|
|
1252
|
+
|
|
1253
|
+
def spilldata(msg, attrs, predicate):
|
|
1254
|
+
ok, attrs = _split_list(attrs, predicate)
|
|
1255
|
+
if ok:
|
|
1256
|
+
hr.maybe()
|
|
1257
|
+
push(msg)
|
|
1258
|
+
for name, kind, homecls, value in ok:
|
|
1259
|
+
if callable(value) or inspect.isdatadescriptor(value):
|
|
1260
|
+
doc = getdoc(value)
|
|
1261
|
+
else:
|
|
1262
|
+
doc = None
|
|
1263
|
+
try:
|
|
1264
|
+
obj = getattr(object, name)
|
|
1265
|
+
except AttributeError:
|
|
1266
|
+
obj = homecls.__dict__[name]
|
|
1267
|
+
push(self.docother(obj, name, mod, maxlen=70, doc=doc) +
|
|
1268
|
+
'\n')
|
|
1269
|
+
return attrs
|
|
1270
|
+
|
|
1271
|
+
attrs = [(name, kind, cls, value)
|
|
1272
|
+
for name, kind, cls, value in classify_class_attrs(object)
|
|
1273
|
+
if visiblename(name, obj=object)]
|
|
1274
|
+
|
|
1275
|
+
while attrs:
|
|
1276
|
+
if mro:
|
|
1277
|
+
thisclass = mro.popleft()
|
|
1278
|
+
else:
|
|
1279
|
+
thisclass = attrs[0][2]
|
|
1280
|
+
attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
|
|
1281
|
+
|
|
1282
|
+
if thisclass is builtins.object:
|
|
1283
|
+
attrs = inherited
|
|
1284
|
+
continue
|
|
1285
|
+
elif thisclass is object:
|
|
1286
|
+
tag = "defined here"
|
|
1287
|
+
else:
|
|
1288
|
+
tag = "inherited from %s" % classname(thisclass,
|
|
1289
|
+
object.__module__)
|
|
1290
|
+
# Sort attrs by name.
|
|
1291
|
+
attrs.sort()
|
|
1292
|
+
|
|
1293
|
+
# Pump out the attrs, segregated by kind.
|
|
1294
|
+
attrs = spill("Methods %s:\n" % tag, attrs,
|
|
1295
|
+
lambda t: t[1] == 'method')
|
|
1296
|
+
attrs = spill("Class methods %s:\n" % tag, attrs,
|
|
1297
|
+
lambda t: t[1] == 'class method')
|
|
1298
|
+
attrs = spill("Static methods %s:\n" % tag, attrs,
|
|
1299
|
+
lambda t: t[1] == 'static method')
|
|
1300
|
+
attrs = spilldescriptors("Data descriptors %s:\n" % tag, attrs,
|
|
1301
|
+
lambda t: t[1] == 'data descriptor')
|
|
1302
|
+
attrs = spilldata("Data and other attributes %s:\n" % tag, attrs,
|
|
1303
|
+
lambda t: t[1] == 'data')
|
|
1304
|
+
|
|
1305
|
+
assert attrs == []
|
|
1306
|
+
attrs = inherited
|
|
1307
|
+
|
|
1308
|
+
contents = '\n'.join(contents)
|
|
1309
|
+
if not contents:
|
|
1310
|
+
return title + '\n'
|
|
1311
|
+
return title + '\n' + self.indent(contents.rstrip(), ' | ') + '\n'
|
|
1312
|
+
|
|
1313
|
+
def formatvalue(self, object):
|
|
1314
|
+
"""Format an argument default value as text."""
|
|
1315
|
+
return '=' + self.repr(object)
|
|
1316
|
+
|
|
1317
|
+
def docroutine(self, object, name=None, mod=None, cl=None):
|
|
1318
|
+
"""Produce text documentation for a function or method object."""
|
|
1319
|
+
realname = object.__name__
|
|
1320
|
+
name = name or realname
|
|
1321
|
+
note = ''
|
|
1322
|
+
skipdocs = 0
|
|
1323
|
+
if _is_bound_method(object):
|
|
1324
|
+
imclass = object.__self__.__class__
|
|
1325
|
+
if cl:
|
|
1326
|
+
if imclass is not cl:
|
|
1327
|
+
note = ' from ' + classname(imclass, mod)
|
|
1328
|
+
else:
|
|
1329
|
+
if object.__self__ is not None:
|
|
1330
|
+
note = ' method of %s instance' % classname(
|
|
1331
|
+
object.__self__.__class__, mod)
|
|
1332
|
+
else:
|
|
1333
|
+
note = ' unbound %s method' % classname(imclass,mod)
|
|
1334
|
+
|
|
1335
|
+
if name == realname:
|
|
1336
|
+
title = self.bold(realname)
|
|
1337
|
+
else:
|
|
1338
|
+
if (cl and realname in cl.__dict__ and
|
|
1339
|
+
cl.__dict__[realname] is object):
|
|
1340
|
+
skipdocs = 1
|
|
1341
|
+
title = self.bold(name) + ' = ' + realname
|
|
1342
|
+
argspec = None
|
|
1343
|
+
|
|
1344
|
+
if inspect.isroutine(object):
|
|
1345
|
+
try:
|
|
1346
|
+
signature = inspect.signature(object)
|
|
1347
|
+
except (ValueError, TypeError):
|
|
1348
|
+
signature = None
|
|
1349
|
+
if signature:
|
|
1350
|
+
argspec = str(signature)
|
|
1351
|
+
if realname == '<lambda>':
|
|
1352
|
+
title = self.bold(name) + ' lambda '
|
|
1353
|
+
# XXX lambda's won't usually have func_annotations['return']
|
|
1354
|
+
# since the syntax doesn't support but it is possible.
|
|
1355
|
+
# So removing parentheses isn't truly safe.
|
|
1356
|
+
argspec = argspec[1:-1] # remove parentheses
|
|
1357
|
+
if not argspec:
|
|
1358
|
+
argspec = '(...)'
|
|
1359
|
+
decl = title + argspec + note
|
|
1360
|
+
|
|
1361
|
+
if skipdocs:
|
|
1362
|
+
return decl + '\n'
|
|
1363
|
+
else:
|
|
1364
|
+
doc = getdoc(object) or ''
|
|
1365
|
+
return decl + '\n' + (doc and self.indent(doc).rstrip() + '\n')
|
|
1366
|
+
|
|
1367
|
+
def _docdescriptor(self, name, value, mod):
|
|
1368
|
+
results = []
|
|
1369
|
+
push = results.append
|
|
1370
|
+
|
|
1371
|
+
if name:
|
|
1372
|
+
push(self.bold(name))
|
|
1373
|
+
push('\n')
|
|
1374
|
+
doc = getdoc(value) or ''
|
|
1375
|
+
if doc:
|
|
1376
|
+
push(self.indent(doc))
|
|
1377
|
+
push('\n')
|
|
1378
|
+
return ''.join(results)
|
|
1379
|
+
|
|
1380
|
+
def docproperty(self, object, name=None, mod=None, cl=None):
|
|
1381
|
+
"""Produce text documentation for a property."""
|
|
1382
|
+
return self._docdescriptor(name, object, mod)
|
|
1383
|
+
|
|
1384
|
+
def docdata(self, object, name=None, mod=None, cl=None):
|
|
1385
|
+
"""Produce text documentation for a data descriptor."""
|
|
1386
|
+
return self._docdescriptor(name, object, mod)
|
|
1387
|
+
|
|
1388
|
+
def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None):
|
|
1389
|
+
"""Produce text documentation for a data object."""
|
|
1390
|
+
repr = self.repr(object)
|
|
1391
|
+
if maxlen:
|
|
1392
|
+
line = (name and name + ' = ' or '') + repr
|
|
1393
|
+
chop = maxlen - len(line)
|
|
1394
|
+
if chop < 0: repr = repr[:chop] + '...'
|
|
1395
|
+
line = (name and self.bold(name) + ' = ' or '') + repr
|
|
1396
|
+
if doc is not None:
|
|
1397
|
+
line += '\n' + self.indent(str(doc))
|
|
1398
|
+
return line
|
|
1399
|
+
|
|
1400
|
+
class _PlainTextDoc(TextDoc):
|
|
1401
|
+
"""Subclass of TextDoc which overrides string styling"""
|
|
1402
|
+
def bold(self, text):
|
|
1403
|
+
return text
|
|
1404
|
+
|
|
1405
|
+
# --------------------------------------------------------- user interfaces
|
|
1406
|
+
|
|
1407
|
+
def pager(text):
|
|
1408
|
+
"""The first time this is called, determine what kind of pager to use."""
|
|
1409
|
+
global pager
|
|
1410
|
+
# Escape non-encodable characters to avoid encoding errors later
|
|
1411
|
+
encoding = sys.getfilesystemencoding()
|
|
1412
|
+
text = text.encode(encoding, 'backslashreplace').decode(encoding)
|
|
1413
|
+
pager = getpager()
|
|
1414
|
+
pager(text)
|
|
1415
|
+
|
|
1416
|
+
def getpager():
|
|
1417
|
+
"""Decide what method to use for paging through text."""
|
|
1418
|
+
if not hasattr(sys.stdin, "isatty"):
|
|
1419
|
+
return plainpager
|
|
1420
|
+
if not hasattr(sys.stdout, "isatty"):
|
|
1421
|
+
return plainpager
|
|
1422
|
+
if not sys.stdin.isatty() or not sys.stdout.isatty():
|
|
1423
|
+
return plainpager
|
|
1424
|
+
if 'PAGER' in os.environ:
|
|
1425
|
+
if sys.platform == 'win32': # pipes completely broken in Windows
|
|
1426
|
+
return lambda text: tempfilepager(plain(text), os.environ['PAGER'])
|
|
1427
|
+
elif os.environ.get('TERM') in ('dumb', 'emacs'):
|
|
1428
|
+
return lambda text: pipepager(plain(text), os.environ['PAGER'])
|
|
1429
|
+
else:
|
|
1430
|
+
return lambda text: pipepager(text, os.environ['PAGER'])
|
|
1431
|
+
if os.environ.get('TERM') in ('dumb', 'emacs'):
|
|
1432
|
+
return plainpager
|
|
1433
|
+
if sys.platform == 'win32':
|
|
1434
|
+
return lambda text: tempfilepager(plain(text), 'more <')
|
|
1435
|
+
if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
|
|
1436
|
+
return lambda text: pipepager(text, 'less')
|
|
1437
|
+
|
|
1438
|
+
import tempfile
|
|
1439
|
+
(fd, filename) = tempfile.mkstemp()
|
|
1440
|
+
os.close(fd)
|
|
1441
|
+
try:
|
|
1442
|
+
if hasattr(os, 'system') and os.system('more "%s"' % filename) == 0:
|
|
1443
|
+
return lambda text: pipepager(text, 'more')
|
|
1444
|
+
else:
|
|
1445
|
+
return ttypager
|
|
1446
|
+
finally:
|
|
1447
|
+
os.unlink(filename)
|
|
1448
|
+
|
|
1449
|
+
def plain(text):
|
|
1450
|
+
"""Remove boldface formatting from text."""
|
|
1451
|
+
return re.sub('.\b', '', text)
|
|
1452
|
+
|
|
1453
|
+
def pipepager(text, cmd):
|
|
1454
|
+
"""Page through text by feeding it to another program."""
|
|
1455
|
+
pipe = os.popen(cmd, 'w')
|
|
1456
|
+
try:
|
|
1457
|
+
pipe.write(text)
|
|
1458
|
+
pipe.close()
|
|
1459
|
+
except OSError:
|
|
1460
|
+
pass # Ignore broken pipes caused by quitting the pager program.
|
|
1461
|
+
|
|
1462
|
+
def tempfilepager(text, cmd):
|
|
1463
|
+
"""Page through text by invoking a program on a temporary file."""
|
|
1464
|
+
import tempfile
|
|
1465
|
+
filename = tempfile.mktemp()
|
|
1466
|
+
with open(filename, 'w') as file:
|
|
1467
|
+
file.write(text)
|
|
1468
|
+
try:
|
|
1469
|
+
os.system(cmd + ' "' + filename + '"')
|
|
1470
|
+
finally:
|
|
1471
|
+
os.unlink(filename)
|
|
1472
|
+
|
|
1473
|
+
def ttypager(text):
|
|
1474
|
+
"""Page through text on a text terminal."""
|
|
1475
|
+
lines = plain(text).split('\n')
|
|
1476
|
+
try:
|
|
1477
|
+
import tty
|
|
1478
|
+
fd = sys.stdin.fileno()
|
|
1479
|
+
old = tty.tcgetattr(fd)
|
|
1480
|
+
tty.setcbreak(fd)
|
|
1481
|
+
getchar = lambda: sys.stdin.read(1)
|
|
1482
|
+
except (ImportError, AttributeError):
|
|
1483
|
+
tty = None
|
|
1484
|
+
getchar = lambda: sys.stdin.readline()[:-1][:1]
|
|
1485
|
+
|
|
1486
|
+
try:
|
|
1487
|
+
r = inc = os.environ.get('LINES', 25) - 1
|
|
1488
|
+
sys.stdout.write('\n'.join(lines[:inc]) + '\n')
|
|
1489
|
+
while lines[r:]:
|
|
1490
|
+
sys.stdout.write('-- more --')
|
|
1491
|
+
sys.stdout.flush()
|
|
1492
|
+
c = getchar()
|
|
1493
|
+
|
|
1494
|
+
if c in ('q', 'Q'):
|
|
1495
|
+
sys.stdout.write('\r \r')
|
|
1496
|
+
break
|
|
1497
|
+
elif c in ('\r', '\n'):
|
|
1498
|
+
sys.stdout.write('\r \r' + lines[r] + '\n')
|
|
1499
|
+
r = r + 1
|
|
1500
|
+
continue
|
|
1501
|
+
if c in ('b', 'B', '\x1b'):
|
|
1502
|
+
r = r - inc - inc
|
|
1503
|
+
if r < 0: r = 0
|
|
1504
|
+
sys.stdout.write('\n' + '\n'.join(lines[r:r+inc]) + '\n')
|
|
1505
|
+
r = r + inc
|
|
1506
|
+
|
|
1507
|
+
finally:
|
|
1508
|
+
if tty:
|
|
1509
|
+
tty.tcsetattr(fd, tty.TCSAFLUSH, old)
|
|
1510
|
+
|
|
1511
|
+
def plainpager(text):
|
|
1512
|
+
"""Simply print unformatted text. This is the ultimate fallback."""
|
|
1513
|
+
sys.stdout.write(plain(text))
|
|
1514
|
+
|
|
1515
|
+
def describe(thing):
|
|
1516
|
+
"""Produce a short description of the given thing."""
|
|
1517
|
+
if inspect.ismodule(thing):
|
|
1518
|
+
if thing.__name__ in sys.builtin_module_names:
|
|
1519
|
+
return 'built-in module ' + thing.__name__
|
|
1520
|
+
if hasattr(thing, '__path__'):
|
|
1521
|
+
return 'package ' + thing.__name__
|
|
1522
|
+
else:
|
|
1523
|
+
return 'module ' + thing.__name__
|
|
1524
|
+
if inspect.isbuiltin(thing):
|
|
1525
|
+
return 'built-in function ' + thing.__name__
|
|
1526
|
+
if inspect.isgetsetdescriptor(thing):
|
|
1527
|
+
return 'getset descriptor %s.%s.%s' % (
|
|
1528
|
+
thing.__objclass__.__module__, thing.__objclass__.__name__,
|
|
1529
|
+
thing.__name__)
|
|
1530
|
+
if inspect.ismemberdescriptor(thing):
|
|
1531
|
+
return 'member descriptor %s.%s.%s' % (
|
|
1532
|
+
thing.__objclass__.__module__, thing.__objclass__.__name__,
|
|
1533
|
+
thing.__name__)
|
|
1534
|
+
if inspect.isclass(thing):
|
|
1535
|
+
return 'class ' + thing.__name__
|
|
1536
|
+
if inspect.isfunction(thing):
|
|
1537
|
+
return 'function ' + thing.__name__
|
|
1538
|
+
if inspect.ismethod(thing):
|
|
1539
|
+
return 'method ' + thing.__name__
|
|
1540
|
+
return type(thing).__name__
|
|
1541
|
+
|
|
1542
|
+
def locate(path, forceload=0):
|
|
1543
|
+
"""Locate an object by name or dotted path, importing as necessary."""
|
|
1544
|
+
parts = [part for part in path.split('.') if part]
|
|
1545
|
+
module, n = None, 0
|
|
1546
|
+
while n < len(parts):
|
|
1547
|
+
nextmodule = safeimport('.'.join(parts[:n+1]), forceload)
|
|
1548
|
+
if nextmodule: module, n = nextmodule, n + 1
|
|
1549
|
+
else: break
|
|
1550
|
+
if module:
|
|
1551
|
+
object = module
|
|
1552
|
+
else:
|
|
1553
|
+
object = builtins
|
|
1554
|
+
for part in parts[n:]:
|
|
1555
|
+
try:
|
|
1556
|
+
object = getattr(object, part)
|
|
1557
|
+
except AttributeError:
|
|
1558
|
+
return None
|
|
1559
|
+
return object
|
|
1560
|
+
|
|
1561
|
+
# --------------------------------------- interactive interpreter interface
|
|
1562
|
+
|
|
1563
|
+
text = TextDoc()
|
|
1564
|
+
plaintext = _PlainTextDoc()
|
|
1565
|
+
html = HTMLDoc()
|
|
1566
|
+
|
|
1567
|
+
def resolve(thing, forceload=0):
|
|
1568
|
+
"""Given an object or a path to an object, get the object and its name."""
|
|
1569
|
+
if isinstance(thing, str):
|
|
1570
|
+
object = locate(thing, forceload)
|
|
1571
|
+
if not object:
|
|
1572
|
+
raise ImportError('no Python documentation found for %r' % thing)
|
|
1573
|
+
return object, thing
|
|
1574
|
+
else:
|
|
1575
|
+
name = getattr(thing, '__name__', None)
|
|
1576
|
+
return thing, name if isinstance(name, str) else None
|
|
1577
|
+
|
|
1578
|
+
def render_doc(thing, title='Python Library Documentation: %s', forceload=0,
|
|
1579
|
+
renderer=None):
|
|
1580
|
+
"""Render text documentation, given an object or a path to an object."""
|
|
1581
|
+
if renderer is None:
|
|
1582
|
+
renderer = text
|
|
1583
|
+
object, name = resolve(thing, forceload)
|
|
1584
|
+
desc = describe(object)
|
|
1585
|
+
module = inspect.getmodule(object)
|
|
1586
|
+
if name and '.' in name:
|
|
1587
|
+
desc += ' in ' + name[:name.rfind('.')]
|
|
1588
|
+
elif module and module is not object:
|
|
1589
|
+
desc += ' in module ' + module.__name__
|
|
1590
|
+
|
|
1591
|
+
if not (inspect.ismodule(object) or
|
|
1592
|
+
inspect.isclass(object) or
|
|
1593
|
+
inspect.isroutine(object) or
|
|
1594
|
+
inspect.isgetsetdescriptor(object) or
|
|
1595
|
+
inspect.ismemberdescriptor(object) or
|
|
1596
|
+
isinstance(object, property)):
|
|
1597
|
+
# If the passed object is a piece of data or an instance,
|
|
1598
|
+
# document its available methods instead of its value.
|
|
1599
|
+
object = type(object)
|
|
1600
|
+
desc += ' object'
|
|
1601
|
+
return title % desc + '\n\n' + renderer.document(object, name)
|
|
1602
|
+
|
|
1603
|
+
def doc(thing, title='Python Library Documentation: %s', forceload=0,
|
|
1604
|
+
output=None):
|
|
1605
|
+
"""Display text documentation, given an object or a path to an object."""
|
|
1606
|
+
try:
|
|
1607
|
+
if output is None:
|
|
1608
|
+
pager(render_doc(thing, title, forceload))
|
|
1609
|
+
else:
|
|
1610
|
+
output.write(render_doc(thing, title, forceload, plaintext))
|
|
1611
|
+
except (ImportError, ErrorDuringImport) as value:
|
|
1612
|
+
print(value)
|
|
1613
|
+
|
|
1614
|
+
def writedoc(thing, forceload=0):
|
|
1615
|
+
"""Write HTML documentation to a file in the current directory."""
|
|
1616
|
+
try:
|
|
1617
|
+
object, name = resolve(thing, forceload)
|
|
1618
|
+
page = html.page(describe(object), html.document(object, name))
|
|
1619
|
+
file = open(name + '.html', 'w', encoding='utf-8')
|
|
1620
|
+
file.write(page)
|
|
1621
|
+
file.close()
|
|
1622
|
+
print('wrote', name + '.html')
|
|
1623
|
+
except (ImportError, ErrorDuringImport) as value:
|
|
1624
|
+
print(value)
|
|
1625
|
+
|
|
1626
|
+
def writedocs(dir, pkgpath='', done=None):
|
|
1627
|
+
"""Write out HTML documentation for all modules in a directory tree."""
|
|
1628
|
+
if done is None: done = {}
|
|
1629
|
+
for importer, modname, ispkg in pkgutil.walk_packages([dir], pkgpath):
|
|
1630
|
+
writedoc(modname)
|
|
1631
|
+
return
|
|
1632
|
+
|
|
1633
|
+
class Helper:
|
|
1634
|
+
|
|
1635
|
+
# These dictionaries map a topic name to either an alias, or a tuple
|
|
1636
|
+
# (label, seealso-items). The "label" is the label of the corresponding
|
|
1637
|
+
# section in the .rst file under Doc/ and an index into the dictionary
|
|
1638
|
+
# in pydoc_data/topics.py.
|
|
1639
|
+
#
|
|
1640
|
+
# CAUTION: if you change one of these dictionaries, be sure to adapt the
|
|
1641
|
+
# list of needed labels in Doc/tools/sphinxext/pyspecific.py and
|
|
1642
|
+
# regenerate the pydoc_data/topics.py file by running
|
|
1643
|
+
# make pydoc-topics
|
|
1644
|
+
# in Doc/ and copying the output file into the Lib/ directory.
|
|
1645
|
+
|
|
1646
|
+
keywords = {
|
|
1647
|
+
'False': '',
|
|
1648
|
+
'None': '',
|
|
1649
|
+
'True': '',
|
|
1650
|
+
'and': 'BOOLEAN',
|
|
1651
|
+
'as': 'with',
|
|
1652
|
+
'assert': ('assert', ''),
|
|
1653
|
+
'break': ('break', 'while for'),
|
|
1654
|
+
'class': ('class', 'CLASSES SPECIALMETHODS'),
|
|
1655
|
+
'continue': ('continue', 'while for'),
|
|
1656
|
+
'def': ('function', ''),
|
|
1657
|
+
'del': ('del', 'BASICMETHODS'),
|
|
1658
|
+
'elif': 'if',
|
|
1659
|
+
'else': ('else', 'while for'),
|
|
1660
|
+
'except': 'try',
|
|
1661
|
+
'finally': 'try',
|
|
1662
|
+
'for': ('for', 'break continue while'),
|
|
1663
|
+
'from': 'import',
|
|
1664
|
+
'global': ('global', 'nonlocal NAMESPACES'),
|
|
1665
|
+
'if': ('if', 'TRUTHVALUE'),
|
|
1666
|
+
'import': ('import', 'MODULES'),
|
|
1667
|
+
'in': ('in', 'SEQUENCEMETHODS'),
|
|
1668
|
+
'is': 'COMPARISON',
|
|
1669
|
+
'lambda': ('lambda', 'FUNCTIONS'),
|
|
1670
|
+
'nonlocal': ('nonlocal', 'global NAMESPACES'),
|
|
1671
|
+
'not': 'BOOLEAN',
|
|
1672
|
+
'or': 'BOOLEAN',
|
|
1673
|
+
'pass': ('pass', ''),
|
|
1674
|
+
'raise': ('raise', 'EXCEPTIONS'),
|
|
1675
|
+
'return': ('return', 'FUNCTIONS'),
|
|
1676
|
+
'try': ('try', 'EXCEPTIONS'),
|
|
1677
|
+
'while': ('while', 'break continue if TRUTHVALUE'),
|
|
1678
|
+
'with': ('with', 'CONTEXTMANAGERS EXCEPTIONS yield'),
|
|
1679
|
+
'yield': ('yield', ''),
|
|
1680
|
+
}
|
|
1681
|
+
# Either add symbols to this dictionary or to the symbols dictionary
|
|
1682
|
+
# directly: Whichever is easier. They are merged later.
|
|
1683
|
+
_symbols_inverse = {
|
|
1684
|
+
'STRINGS' : ("'", "'''", "r'", "b'", '"""', '"', 'r"', 'b"'),
|
|
1685
|
+
'OPERATORS' : ('+', '-', '*', '**', '/', '//', '%', '<<', '>>', '&',
|
|
1686
|
+
'|', '^', '~', '<', '>', '<=', '>=', '==', '!=', '<>'),
|
|
1687
|
+
'COMPARISON' : ('<', '>', '<=', '>=', '==', '!=', '<>'),
|
|
1688
|
+
'UNARY' : ('-', '~'),
|
|
1689
|
+
'AUGMENTEDASSIGNMENT' : ('+=', '-=', '*=', '/=', '%=', '&=', '|=',
|
|
1690
|
+
'^=', '<<=', '>>=', '**=', '//='),
|
|
1691
|
+
'BITWISE' : ('<<', '>>', '&', '|', '^', '~'),
|
|
1692
|
+
'COMPLEX' : ('j', 'J')
|
|
1693
|
+
}
|
|
1694
|
+
symbols = {
|
|
1695
|
+
'%': 'OPERATORS FORMATTING',
|
|
1696
|
+
'**': 'POWER',
|
|
1697
|
+
',': 'TUPLES LISTS FUNCTIONS',
|
|
1698
|
+
'.': 'ATTRIBUTES FLOAT MODULES OBJECTS',
|
|
1699
|
+
'...': 'ELLIPSIS',
|
|
1700
|
+
':': 'SLICINGS DICTIONARYLITERALS',
|
|
1701
|
+
'@': 'def class',
|
|
1702
|
+
'\\': 'STRINGS',
|
|
1703
|
+
'_': 'PRIVATENAMES',
|
|
1704
|
+
'__': 'PRIVATENAMES SPECIALMETHODS',
|
|
1705
|
+
'`': 'BACKQUOTES',
|
|
1706
|
+
'(': 'TUPLES FUNCTIONS CALLS',
|
|
1707
|
+
')': 'TUPLES FUNCTIONS CALLS',
|
|
1708
|
+
'[': 'LISTS SUBSCRIPTS SLICINGS',
|
|
1709
|
+
']': 'LISTS SUBSCRIPTS SLICINGS'
|
|
1710
|
+
}
|
|
1711
|
+
for topic, symbols_ in _symbols_inverse.items():
|
|
1712
|
+
for symbol in symbols_:
|
|
1713
|
+
topics = symbols.get(symbol, topic)
|
|
1714
|
+
if topic not in topics:
|
|
1715
|
+
topics = topics + ' ' + topic
|
|
1716
|
+
symbols[symbol] = topics
|
|
1717
|
+
|
|
1718
|
+
topics = {
|
|
1719
|
+
'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '
|
|
1720
|
+
'FUNCTIONS CLASSES MODULES FILES inspect'),
|
|
1721
|
+
'STRINGS': ('strings', 'str UNICODE SEQUENCES STRINGMETHODS '
|
|
1722
|
+
'FORMATTING TYPES'),
|
|
1723
|
+
'STRINGMETHODS': ('string-methods', 'STRINGS FORMATTING'),
|
|
1724
|
+
'FORMATTING': ('formatstrings', 'OPERATORS'),
|
|
1725
|
+
'UNICODE': ('strings', 'encodings unicode SEQUENCES STRINGMETHODS '
|
|
1726
|
+
'FORMATTING TYPES'),
|
|
1727
|
+
'NUMBERS': ('numbers', 'INTEGER FLOAT COMPLEX TYPES'),
|
|
1728
|
+
'INTEGER': ('integers', 'int range'),
|
|
1729
|
+
'FLOAT': ('floating', 'float math'),
|
|
1730
|
+
'COMPLEX': ('imaginary', 'complex cmath'),
|
|
1731
|
+
'SEQUENCES': ('typesseq', 'STRINGMETHODS FORMATTING range LISTS'),
|
|
1732
|
+
'MAPPINGS': 'DICTIONARIES',
|
|
1733
|
+
'FUNCTIONS': ('typesfunctions', 'def TYPES'),
|
|
1734
|
+
'METHODS': ('typesmethods', 'class def CLASSES TYPES'),
|
|
1735
|
+
'CODEOBJECTS': ('bltin-code-objects', 'compile FUNCTIONS TYPES'),
|
|
1736
|
+
'TYPEOBJECTS': ('bltin-type-objects', 'types TYPES'),
|
|
1737
|
+
'FRAMEOBJECTS': 'TYPES',
|
|
1738
|
+
'TRACEBACKS': 'TYPES',
|
|
1739
|
+
'NONE': ('bltin-null-object', ''),
|
|
1740
|
+
'ELLIPSIS': ('bltin-ellipsis-object', 'SLICINGS'),
|
|
1741
|
+
'SPECIALATTRIBUTES': ('specialattrs', ''),
|
|
1742
|
+
'CLASSES': ('types', 'class SPECIALMETHODS PRIVATENAMES'),
|
|
1743
|
+
'MODULES': ('typesmodules', 'import'),
|
|
1744
|
+
'PACKAGES': 'import',
|
|
1745
|
+
'EXPRESSIONS': ('operator-summary', 'lambda or and not in is BOOLEAN '
|
|
1746
|
+
'COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER '
|
|
1747
|
+
'UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES '
|
|
1748
|
+
'LISTS DICTIONARIES'),
|
|
1749
|
+
'OPERATORS': 'EXPRESSIONS',
|
|
1750
|
+
'PRECEDENCE': 'EXPRESSIONS',
|
|
1751
|
+
'OBJECTS': ('objects', 'TYPES'),
|
|
1752
|
+
'SPECIALMETHODS': ('specialnames', 'BASICMETHODS ATTRIBUTEMETHODS '
|
|
1753
|
+
'CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS '
|
|
1754
|
+
'NUMBERMETHODS CLASSES'),
|
|
1755
|
+
'BASICMETHODS': ('customization', 'hash repr str SPECIALMETHODS'),
|
|
1756
|
+
'ATTRIBUTEMETHODS': ('attribute-access', 'ATTRIBUTES SPECIALMETHODS'),
|
|
1757
|
+
'CALLABLEMETHODS': ('callable-types', 'CALLS SPECIALMETHODS'),
|
|
1758
|
+
'SEQUENCEMETHODS': ('sequence-types', 'SEQUENCES SEQUENCEMETHODS '
|
|
1759
|
+
'SPECIALMETHODS'),
|
|
1760
|
+
'MAPPINGMETHODS': ('sequence-types', 'MAPPINGS SPECIALMETHODS'),
|
|
1761
|
+
'NUMBERMETHODS': ('numeric-types', 'NUMBERS AUGMENTEDASSIGNMENT '
|
|
1762
|
+
'SPECIALMETHODS'),
|
|
1763
|
+
'EXECUTION': ('execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'),
|
|
1764
|
+
'NAMESPACES': ('naming', 'global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES'),
|
|
1765
|
+
'DYNAMICFEATURES': ('dynamic-features', ''),
|
|
1766
|
+
'SCOPING': 'NAMESPACES',
|
|
1767
|
+
'FRAMES': 'NAMESPACES',
|
|
1768
|
+
'EXCEPTIONS': ('exceptions', 'try except finally raise'),
|
|
1769
|
+
'CONVERSIONS': ('conversions', ''),
|
|
1770
|
+
'IDENTIFIERS': ('identifiers', 'keywords SPECIALIDENTIFIERS'),
|
|
1771
|
+
'SPECIALIDENTIFIERS': ('id-classes', ''),
|
|
1772
|
+
'PRIVATENAMES': ('atom-identifiers', ''),
|
|
1773
|
+
'LITERALS': ('atom-literals', 'STRINGS NUMBERS TUPLELITERALS '
|
|
1774
|
+
'LISTLITERALS DICTIONARYLITERALS'),
|
|
1775
|
+
'TUPLES': 'SEQUENCES',
|
|
1776
|
+
'TUPLELITERALS': ('exprlists', 'TUPLES LITERALS'),
|
|
1777
|
+
'LISTS': ('typesseq-mutable', 'LISTLITERALS'),
|
|
1778
|
+
'LISTLITERALS': ('lists', 'LISTS LITERALS'),
|
|
1779
|
+
'DICTIONARIES': ('typesmapping', 'DICTIONARYLITERALS'),
|
|
1780
|
+
'DICTIONARYLITERALS': ('dict', 'DICTIONARIES LITERALS'),
|
|
1781
|
+
'ATTRIBUTES': ('attribute-references', 'getattr hasattr setattr ATTRIBUTEMETHODS'),
|
|
1782
|
+
'SUBSCRIPTS': ('subscriptions', 'SEQUENCEMETHODS'),
|
|
1783
|
+
'SLICINGS': ('slicings', 'SEQUENCEMETHODS'),
|
|
1784
|
+
'CALLS': ('calls', 'EXPRESSIONS'),
|
|
1785
|
+
'POWER': ('power', 'EXPRESSIONS'),
|
|
1786
|
+
'UNARY': ('unary', 'EXPRESSIONS'),
|
|
1787
|
+
'BINARY': ('binary', 'EXPRESSIONS'),
|
|
1788
|
+
'SHIFTING': ('shifting', 'EXPRESSIONS'),
|
|
1789
|
+
'BITWISE': ('bitwise', 'EXPRESSIONS'),
|
|
1790
|
+
'COMPARISON': ('comparisons', 'EXPRESSIONS BASICMETHODS'),
|
|
1791
|
+
'BOOLEAN': ('booleans', 'EXPRESSIONS TRUTHVALUE'),
|
|
1792
|
+
'ASSERTION': 'assert',
|
|
1793
|
+
'ASSIGNMENT': ('assignment', 'AUGMENTEDASSIGNMENT'),
|
|
1794
|
+
'AUGMENTEDASSIGNMENT': ('augassign', 'NUMBERMETHODS'),
|
|
1795
|
+
'DELETION': 'del',
|
|
1796
|
+
'RETURNING': 'return',
|
|
1797
|
+
'IMPORTING': 'import',
|
|
1798
|
+
'CONDITIONAL': 'if',
|
|
1799
|
+
'LOOPING': ('compound', 'for while break continue'),
|
|
1800
|
+
'TRUTHVALUE': ('truth', 'if while and or not BASICMETHODS'),
|
|
1801
|
+
'DEBUGGING': ('debugger', 'pdb'),
|
|
1802
|
+
'CONTEXTMANAGERS': ('context-managers', 'with'),
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
def __init__(self, input=None, output=None):
|
|
1806
|
+
self._input = input
|
|
1807
|
+
self._output = output
|
|
1808
|
+
|
|
1809
|
+
input = property(lambda self: self._input or sys.stdin)
|
|
1810
|
+
output = property(lambda self: self._output or sys.stdout)
|
|
1811
|
+
|
|
1812
|
+
def __repr__(self):
|
|
1813
|
+
if inspect.stack()[1][3] == '?':
|
|
1814
|
+
self()
|
|
1815
|
+
return ''
|
|
1816
|
+
return '<pydoc.Helper instance>'
|
|
1817
|
+
|
|
1818
|
+
_GoInteractive = object()
|
|
1819
|
+
def __call__(self, request=_GoInteractive):
|
|
1820
|
+
if request is not self._GoInteractive:
|
|
1821
|
+
self.help(request)
|
|
1822
|
+
else:
|
|
1823
|
+
self.intro()
|
|
1824
|
+
self.interact()
|
|
1825
|
+
self.output.write('''
|
|
1826
|
+
You are now leaving help and returning to the Python interpreter.
|
|
1827
|
+
If you want to ask for help on a particular object directly from the
|
|
1828
|
+
interpreter, you can type "help(object)". Executing "help('string')"
|
|
1829
|
+
has the same effect as typing a particular string at the help> prompt.
|
|
1830
|
+
''')
|
|
1831
|
+
|
|
1832
|
+
def interact(self):
|
|
1833
|
+
self.output.write('\n')
|
|
1834
|
+
while True:
|
|
1835
|
+
try:
|
|
1836
|
+
request = self.getline('help> ')
|
|
1837
|
+
if not request: break
|
|
1838
|
+
except (KeyboardInterrupt, EOFError):
|
|
1839
|
+
break
|
|
1840
|
+
request = replace(request, '"', '', "'", '').strip()
|
|
1841
|
+
if request.lower() in ('q', 'quit'): break
|
|
1842
|
+
self.help(request)
|
|
1843
|
+
|
|
1844
|
+
def getline(self, prompt):
|
|
1845
|
+
"""Read one line, using input() when appropriate."""
|
|
1846
|
+
if self.input is sys.stdin:
|
|
1847
|
+
return input(prompt)
|
|
1848
|
+
else:
|
|
1849
|
+
self.output.write(prompt)
|
|
1850
|
+
self.output.flush()
|
|
1851
|
+
return self.input.readline()
|
|
1852
|
+
|
|
1853
|
+
def help(self, request):
|
|
1854
|
+
if type(request) is type(''):
|
|
1855
|
+
request = request.strip()
|
|
1856
|
+
if request == 'help': self.intro()
|
|
1857
|
+
elif request == 'keywords': self.listkeywords()
|
|
1858
|
+
elif request == 'symbols': self.listsymbols()
|
|
1859
|
+
elif request == 'topics': self.listtopics()
|
|
1860
|
+
elif request == 'modules': self.listmodules()
|
|
1861
|
+
elif request[:8] == 'modules ':
|
|
1862
|
+
self.listmodules(request.split()[1])
|
|
1863
|
+
elif request in self.symbols: self.showsymbol(request)
|
|
1864
|
+
elif request in ['True', 'False', 'None']:
|
|
1865
|
+
# special case these keywords since they are objects too
|
|
1866
|
+
doc(eval(request), 'Help on %s:')
|
|
1867
|
+
elif request in self.keywords: self.showtopic(request)
|
|
1868
|
+
elif request in self.topics: self.showtopic(request)
|
|
1869
|
+
elif request: doc(request, 'Help on %s:', output=self._output)
|
|
1870
|
+
elif isinstance(request, Helper): self()
|
|
1871
|
+
else: doc(request, 'Help on %s:', output=self._output)
|
|
1872
|
+
self.output.write('\n')
|
|
1873
|
+
|
|
1874
|
+
def intro(self):
|
|
1875
|
+
self.output.write('''
|
|
1876
|
+
Welcome to Python %s's help utility!
|
|
1877
|
+
|
|
1878
|
+
If this is your first time using Python, you should definitely check out
|
|
1879
|
+
the tutorial on the Internet at http://docs.python.org/%s/tutorial/.
|
|
1880
|
+
|
|
1881
|
+
Enter the name of any module, keyword, or topic to get help on writing
|
|
1882
|
+
Python programs and using Python modules. To quit this help utility and
|
|
1883
|
+
return to the interpreter, just type "quit".
|
|
1884
|
+
|
|
1885
|
+
To get a list of available modules, keywords, symbols, or topics, type
|
|
1886
|
+
"modules", "keywords", "symbols", or "topics". Each module also comes
|
|
1887
|
+
with a one-line summary of what it does; to list the modules whose name
|
|
1888
|
+
or summary contain a given string such as "spam", type "modules spam".
|
|
1889
|
+
''' % tuple([sys.version[:3]]*2))
|
|
1890
|
+
|
|
1891
|
+
def list(self, items, columns=4, width=80):
|
|
1892
|
+
items = list(sorted(items))
|
|
1893
|
+
colw = width // columns
|
|
1894
|
+
rows = (len(items) + columns - 1) // columns
|
|
1895
|
+
for row in range(rows):
|
|
1896
|
+
for col in range(columns):
|
|
1897
|
+
i = col * rows + row
|
|
1898
|
+
if i < len(items):
|
|
1899
|
+
self.output.write(items[i])
|
|
1900
|
+
if col < columns - 1:
|
|
1901
|
+
self.output.write(' ' + ' ' * (colw - 1 - len(items[i])))
|
|
1902
|
+
self.output.write('\n')
|
|
1903
|
+
|
|
1904
|
+
def listkeywords(self):
|
|
1905
|
+
self.output.write('''
|
|
1906
|
+
Here is a list of the Python keywords. Enter any keyword to get more help.
|
|
1907
|
+
|
|
1908
|
+
''')
|
|
1909
|
+
self.list(self.keywords.keys())
|
|
1910
|
+
|
|
1911
|
+
def listsymbols(self):
|
|
1912
|
+
self.output.write('''
|
|
1913
|
+
Here is a list of the punctuation symbols which Python assigns special meaning
|
|
1914
|
+
to. Enter any symbol to get more help.
|
|
1915
|
+
|
|
1916
|
+
''')
|
|
1917
|
+
self.list(self.symbols.keys())
|
|
1918
|
+
|
|
1919
|
+
def listtopics(self):
|
|
1920
|
+
self.output.write('''
|
|
1921
|
+
Here is a list of available topics. Enter any topic name to get more help.
|
|
1922
|
+
|
|
1923
|
+
''')
|
|
1924
|
+
self.list(self.topics.keys())
|
|
1925
|
+
|
|
1926
|
+
def showtopic(self, topic, more_xrefs=''):
|
|
1927
|
+
try:
|
|
1928
|
+
import pydoc_data.topics
|
|
1929
|
+
except ImportError:
|
|
1930
|
+
self.output.write('''
|
|
1931
|
+
Sorry, topic and keyword documentation is not available because the
|
|
1932
|
+
module "pydoc_data.topics" could not be found.
|
|
1933
|
+
''')
|
|
1934
|
+
return
|
|
1935
|
+
target = self.topics.get(topic, self.keywords.get(topic))
|
|
1936
|
+
if not target:
|
|
1937
|
+
self.output.write('no documentation found for %s\n' % repr(topic))
|
|
1938
|
+
return
|
|
1939
|
+
if type(target) is type(''):
|
|
1940
|
+
return self.showtopic(target, more_xrefs)
|
|
1941
|
+
|
|
1942
|
+
label, xrefs = target
|
|
1943
|
+
try:
|
|
1944
|
+
doc = pydoc_data.topics.topics[label]
|
|
1945
|
+
except KeyError:
|
|
1946
|
+
self.output.write('no documentation found for %s\n' % repr(topic))
|
|
1947
|
+
return
|
|
1948
|
+
pager(doc.strip() + '\n')
|
|
1949
|
+
if more_xrefs:
|
|
1950
|
+
xrefs = (xrefs or '') + ' ' + more_xrefs
|
|
1951
|
+
if xrefs:
|
|
1952
|
+
import textwrap
|
|
1953
|
+
text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n'
|
|
1954
|
+
wrapped_text = textwrap.wrap(text, 72)
|
|
1955
|
+
self.output.write('\n%s\n' % ''.join(wrapped_text))
|
|
1956
|
+
|
|
1957
|
+
def _gettopic(self, topic, more_xrefs=''):
|
|
1958
|
+
"""Return unbuffered tuple of (topic, xrefs).
|
|
1959
|
+
|
|
1960
|
+
If an error occurs here, the exception is caught and displayed by
|
|
1961
|
+
the url handler.
|
|
1962
|
+
|
|
1963
|
+
This function duplicates the showtopic method but returns its
|
|
1964
|
+
result directly so it can be formatted for display in an html page.
|
|
1965
|
+
"""
|
|
1966
|
+
try:
|
|
1967
|
+
import pydoc_data.topics
|
|
1968
|
+
except ImportError:
|
|
1969
|
+
return('''
|
|
1970
|
+
Sorry, topic and keyword documentation is not available because the
|
|
1971
|
+
module "pydoc_data.topics" could not be found.
|
|
1972
|
+
''' , '')
|
|
1973
|
+
target = self.topics.get(topic, self.keywords.get(topic))
|
|
1974
|
+
if not target:
|
|
1975
|
+
raise ValueError('could not find topic')
|
|
1976
|
+
if isinstance(target, str):
|
|
1977
|
+
return self._gettopic(target, more_xrefs)
|
|
1978
|
+
label, xrefs = target
|
|
1979
|
+
doc = pydoc_data.topics.topics[label]
|
|
1980
|
+
if more_xrefs:
|
|
1981
|
+
xrefs = (xrefs or '') + ' ' + more_xrefs
|
|
1982
|
+
return doc, xrefs
|
|
1983
|
+
|
|
1984
|
+
def showsymbol(self, symbol):
|
|
1985
|
+
target = self.symbols[symbol]
|
|
1986
|
+
topic, _, xrefs = target.partition(' ')
|
|
1987
|
+
self.showtopic(topic, xrefs)
|
|
1988
|
+
|
|
1989
|
+
def listmodules(self, key=''):
|
|
1990
|
+
if key:
|
|
1991
|
+
self.output.write('''
|
|
1992
|
+
Here is a list of modules whose name or summary contains '{}'.
|
|
1993
|
+
If there are any, enter a module name to get more help.
|
|
1994
|
+
|
|
1995
|
+
'''.format(key))
|
|
1996
|
+
apropos(key)
|
|
1997
|
+
else:
|
|
1998
|
+
self.output.write('''
|
|
1999
|
+
Please wait a moment while I gather a list of all available modules...
|
|
2000
|
+
|
|
2001
|
+
''')
|
|
2002
|
+
modules = {}
|
|
2003
|
+
def callback(path, modname, desc, modules=modules):
|
|
2004
|
+
if modname and modname[-9:] == '.__init__':
|
|
2005
|
+
modname = modname[:-9] + ' (package)'
|
|
2006
|
+
if modname.find('.') < 0:
|
|
2007
|
+
modules[modname] = 1
|
|
2008
|
+
def onerror(modname):
|
|
2009
|
+
callback(None, modname, None)
|
|
2010
|
+
ModuleScanner().run(callback, onerror=onerror)
|
|
2011
|
+
self.list(modules.keys())
|
|
2012
|
+
self.output.write('''
|
|
2013
|
+
Enter any module name to get more help. Or, type "modules spam" to search
|
|
2014
|
+
for modules whose name or summary contain the string "spam".
|
|
2015
|
+
''')
|
|
2016
|
+
|
|
2017
|
+
help = Helper()
|
|
2018
|
+
|
|
2019
|
+
class ModuleScanner:
|
|
2020
|
+
"""An interruptible scanner that searches module synopses."""
|
|
2021
|
+
|
|
2022
|
+
def run(self, callback, key=None, completer=None, onerror=None):
|
|
2023
|
+
if key: key = key.lower()
|
|
2024
|
+
self.quit = False
|
|
2025
|
+
seen = {}
|
|
2026
|
+
|
|
2027
|
+
for modname in sys.builtin_module_names:
|
|
2028
|
+
if modname != '__main__':
|
|
2029
|
+
seen[modname] = 1
|
|
2030
|
+
if key is None:
|
|
2031
|
+
callback(None, modname, '')
|
|
2032
|
+
else:
|
|
2033
|
+
name = __import__(modname).__doc__ or ''
|
|
2034
|
+
desc = name.split('\n')[0]
|
|
2035
|
+
name = modname + ' - ' + desc
|
|
2036
|
+
if name.lower().find(key) >= 0:
|
|
2037
|
+
callback(None, modname, desc)
|
|
2038
|
+
|
|
2039
|
+
for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror):
|
|
2040
|
+
if self.quit:
|
|
2041
|
+
break
|
|
2042
|
+
|
|
2043
|
+
if key is None:
|
|
2044
|
+
callback(None, modname, '')
|
|
2045
|
+
else:
|
|
2046
|
+
try:
|
|
2047
|
+
spec = pkgutil._get_spec(importer, modname)
|
|
2048
|
+
except SyntaxError:
|
|
2049
|
+
# raised by tests for bad coding cookies or BOM
|
|
2050
|
+
continue
|
|
2051
|
+
loader = spec.loader
|
|
2052
|
+
if hasattr(loader, 'get_source'):
|
|
2053
|
+
try:
|
|
2054
|
+
source = loader.get_source(modname)
|
|
2055
|
+
except Exception:
|
|
2056
|
+
if onerror:
|
|
2057
|
+
onerror(modname)
|
|
2058
|
+
continue
|
|
2059
|
+
desc = source_synopsis(io.StringIO(source)) or ''
|
|
2060
|
+
if hasattr(loader, 'get_filename'):
|
|
2061
|
+
path = loader.get_filename(modname)
|
|
2062
|
+
else:
|
|
2063
|
+
path = None
|
|
2064
|
+
else:
|
|
2065
|
+
_spec = importlib._bootstrap._SpecMethods(spec)
|
|
2066
|
+
try:
|
|
2067
|
+
module = _spec.load()
|
|
2068
|
+
except ImportError:
|
|
2069
|
+
if onerror:
|
|
2070
|
+
onerror(modname)
|
|
2071
|
+
continue
|
|
2072
|
+
desc = (module.__doc__ or '').splitlines()[0]
|
|
2073
|
+
path = getattr(module,'__file__',None)
|
|
2074
|
+
name = modname + ' - ' + desc
|
|
2075
|
+
if name.lower().find(key) >= 0:
|
|
2076
|
+
callback(path, modname, desc)
|
|
2077
|
+
|
|
2078
|
+
if completer:
|
|
2079
|
+
completer()
|
|
2080
|
+
|
|
2081
|
+
def apropos(key):
|
|
2082
|
+
"""Print all the one-line module summaries that contain a substring."""
|
|
2083
|
+
def callback(path, modname, desc):
|
|
2084
|
+
if modname[-9:] == '.__init__':
|
|
2085
|
+
modname = modname[:-9] + ' (package)'
|
|
2086
|
+
print(modname, desc and '- ' + desc)
|
|
2087
|
+
def onerror(modname):
|
|
2088
|
+
pass
|
|
2089
|
+
with warnings.catch_warnings():
|
|
2090
|
+
warnings.filterwarnings('ignore') # ignore problems during import
|
|
2091
|
+
ModuleScanner().run(callback, key, onerror=onerror)
|
|
2092
|
+
|
|
2093
|
+
# --------------------------------------- enhanced Web browser interface
|
|
2094
|
+
|
|
2095
|
+
def _start_server(urlhandler, port):
|
|
2096
|
+
"""Start an HTTP server thread on a specific port.
|
|
2097
|
+
|
|
2098
|
+
Start an HTML/text server thread, so HTML or text documents can be
|
|
2099
|
+
browsed dynamically and interactively with a Web browser. Example use:
|
|
2100
|
+
|
|
2101
|
+
>>> import time
|
|
2102
|
+
>>> import pydoc
|
|
2103
|
+
|
|
2104
|
+
Define a URL handler. To determine what the client is asking
|
|
2105
|
+
for, check the URL and content_type.
|
|
2106
|
+
|
|
2107
|
+
Then get or generate some text or HTML code and return it.
|
|
2108
|
+
|
|
2109
|
+
>>> def my_url_handler(url, content_type):
|
|
2110
|
+
... text = 'the URL sent was: (%s, %s)' % (url, content_type)
|
|
2111
|
+
... return text
|
|
2112
|
+
|
|
2113
|
+
Start server thread on port 0.
|
|
2114
|
+
If you use port 0, the server will pick a random port number.
|
|
2115
|
+
You can then use serverthread.port to get the port number.
|
|
2116
|
+
|
|
2117
|
+
>>> port = 0
|
|
2118
|
+
>>> serverthread = pydoc._start_server(my_url_handler, port)
|
|
2119
|
+
|
|
2120
|
+
Check that the server is really started. If it is, open browser
|
|
2121
|
+
and get first page. Use serverthread.url as the starting page.
|
|
2122
|
+
|
|
2123
|
+
>>> if serverthread.serving:
|
|
2124
|
+
... import webbrowser
|
|
2125
|
+
|
|
2126
|
+
The next two lines are commented out so a browser doesn't open if
|
|
2127
|
+
doctest is run on this module.
|
|
2128
|
+
|
|
2129
|
+
#... webbrowser.open(serverthread.url)
|
|
2130
|
+
#True
|
|
2131
|
+
|
|
2132
|
+
Let the server do its thing. We just need to monitor its status.
|
|
2133
|
+
Use time.sleep so the loop doesn't hog the CPU.
|
|
2134
|
+
|
|
2135
|
+
>>> starttime = time.time()
|
|
2136
|
+
>>> timeout = 1 #seconds
|
|
2137
|
+
|
|
2138
|
+
This is a short timeout for testing purposes.
|
|
2139
|
+
|
|
2140
|
+
>>> while serverthread.serving:
|
|
2141
|
+
... time.sleep(.01)
|
|
2142
|
+
... if serverthread.serving and time.time() - starttime > timeout:
|
|
2143
|
+
... serverthread.stop()
|
|
2144
|
+
... break
|
|
2145
|
+
|
|
2146
|
+
Print any errors that may have occurred.
|
|
2147
|
+
|
|
2148
|
+
>>> print(serverthread.error)
|
|
2149
|
+
None
|
|
2150
|
+
"""
|
|
2151
|
+
import http.server
|
|
2152
|
+
import email.message
|
|
2153
|
+
import select
|
|
2154
|
+
import threading
|
|
2155
|
+
|
|
2156
|
+
class DocHandler(http.server.BaseHTTPRequestHandler):
|
|
2157
|
+
|
|
2158
|
+
def do_GET(self):
|
|
2159
|
+
"""Process a request from an HTML browser.
|
|
2160
|
+
|
|
2161
|
+
The URL received is in self.path.
|
|
2162
|
+
Get an HTML page from self.urlhandler and send it.
|
|
2163
|
+
"""
|
|
2164
|
+
if self.path.endswith('.css'):
|
|
2165
|
+
content_type = 'text/css'
|
|
2166
|
+
else:
|
|
2167
|
+
content_type = 'text/html'
|
|
2168
|
+
self.send_response(200)
|
|
2169
|
+
self.send_header('Content-Type', '%s; charset=UTF-8' % content_type)
|
|
2170
|
+
self.end_headers()
|
|
2171
|
+
self.wfile.write(self.urlhandler(
|
|
2172
|
+
self.path, content_type).encode('utf-8'))
|
|
2173
|
+
|
|
2174
|
+
def log_message(self, *args):
|
|
2175
|
+
# Don't log messages.
|
|
2176
|
+
pass
|
|
2177
|
+
|
|
2178
|
+
class DocServer(http.server.HTTPServer):
|
|
2179
|
+
|
|
2180
|
+
def __init__(self, port, callback):
|
|
2181
|
+
self.host = 'localhost'
|
|
2182
|
+
self.address = (self.host, port)
|
|
2183
|
+
self.callback = callback
|
|
2184
|
+
self.base.__init__(self, self.address, self.handler)
|
|
2185
|
+
self.quit = False
|
|
2186
|
+
|
|
2187
|
+
def serve_until_quit(self):
|
|
2188
|
+
while not self.quit:
|
|
2189
|
+
rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
|
|
2190
|
+
if rd:
|
|
2191
|
+
self.handle_request()
|
|
2192
|
+
self.server_close()
|
|
2193
|
+
|
|
2194
|
+
def server_activate(self):
|
|
2195
|
+
self.base.server_activate(self)
|
|
2196
|
+
if self.callback:
|
|
2197
|
+
self.callback(self)
|
|
2198
|
+
|
|
2199
|
+
class ServerThread(threading.Thread):
|
|
2200
|
+
|
|
2201
|
+
def __init__(self, urlhandler, port):
|
|
2202
|
+
self.urlhandler = urlhandler
|
|
2203
|
+
self.port = int(port)
|
|
2204
|
+
threading.Thread.__init__(self)
|
|
2205
|
+
self.serving = False
|
|
2206
|
+
self.error = None
|
|
2207
|
+
|
|
2208
|
+
def run(self):
|
|
2209
|
+
"""Start the server."""
|
|
2210
|
+
try:
|
|
2211
|
+
DocServer.base = http.server.HTTPServer
|
|
2212
|
+
DocServer.handler = DocHandler
|
|
2213
|
+
DocHandler.MessageClass = email.message.Message
|
|
2214
|
+
DocHandler.urlhandler = staticmethod(self.urlhandler)
|
|
2215
|
+
docsvr = DocServer(self.port, self.ready)
|
|
2216
|
+
self.docserver = docsvr
|
|
2217
|
+
docsvr.serve_until_quit()
|
|
2218
|
+
except Exception as e:
|
|
2219
|
+
self.error = e
|
|
2220
|
+
|
|
2221
|
+
def ready(self, server):
|
|
2222
|
+
self.serving = True
|
|
2223
|
+
self.host = server.host
|
|
2224
|
+
self.port = server.server_port
|
|
2225
|
+
self.url = 'http://%s:%d/' % (self.host, self.port)
|
|
2226
|
+
|
|
2227
|
+
def stop(self):
|
|
2228
|
+
"""Stop the server and this thread nicely"""
|
|
2229
|
+
self.docserver.quit = True
|
|
2230
|
+
self.serving = False
|
|
2231
|
+
self.url = None
|
|
2232
|
+
|
|
2233
|
+
thread = ServerThread(urlhandler, port)
|
|
2234
|
+
thread.start()
|
|
2235
|
+
# Wait until thread.serving is True to make sure we are
|
|
2236
|
+
# really up before returning.
|
|
2237
|
+
while not thread.error and not thread.serving:
|
|
2238
|
+
time.sleep(.01)
|
|
2239
|
+
return thread
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
def _url_handler(url, content_type="text/html"):
|
|
2243
|
+
"""The pydoc url handler for use with the pydoc server.
|
|
2244
|
+
|
|
2245
|
+
If the content_type is 'text/css', the _pydoc.css style
|
|
2246
|
+
sheet is read and returned if it exits.
|
|
2247
|
+
|
|
2248
|
+
If the content_type is 'text/html', then the result of
|
|
2249
|
+
get_html_page(url) is returned.
|
|
2250
|
+
"""
|
|
2251
|
+
class _HTMLDoc(HTMLDoc):
|
|
2252
|
+
|
|
2253
|
+
def page(self, title, contents):
|
|
2254
|
+
"""Format an HTML page."""
|
|
2255
|
+
css_path = "pydoc_data/_pydoc.css"
|
|
2256
|
+
css_link = (
|
|
2257
|
+
'<link rel="stylesheet" type="text/css" href="%s">' %
|
|
2258
|
+
css_path)
|
|
2259
|
+
return '''\
|
|
2260
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2261
|
+
<html><head><title>Pydoc: %s</title>
|
|
2262
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
2263
|
+
%s</head><body bgcolor="#f0f0f8">%s<div style="clear:both;padding-top:.5em;">%s</div>
|
|
2264
|
+
</body></html>''' % (title, css_link, html_navbar(), contents)
|
|
2265
|
+
|
|
2266
|
+
def filelink(self, url, path):
|
|
2267
|
+
return '<a href="getfile?key=%s">%s</a>' % (url, path)
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
html = _HTMLDoc()
|
|
2271
|
+
|
|
2272
|
+
def html_navbar():
|
|
2273
|
+
version = html.escape("%s [%s, %s]" % (platform.python_version(),
|
|
2274
|
+
platform.python_build()[0],
|
|
2275
|
+
platform.python_compiler()))
|
|
2276
|
+
return """
|
|
2277
|
+
<div style='float:left'>
|
|
2278
|
+
Python %s<br>%s
|
|
2279
|
+
</div>
|
|
2280
|
+
<div style='float:right'>
|
|
2281
|
+
<div style='text-align:center'>
|
|
2282
|
+
<a href="index.html">Module Index</a>
|
|
2283
|
+
: <a href="topics.html">Topics</a>
|
|
2284
|
+
: <a href="keywords.html">Keywords</a>
|
|
2285
|
+
</div>
|
|
2286
|
+
<div>
|
|
2287
|
+
<form action="get" style='display:inline;'>
|
|
2288
|
+
<input type=text name=key size=15>
|
|
2289
|
+
<input type=submit value="Get">
|
|
2290
|
+
</form>
|
|
2291
|
+
<form action="search" style='display:inline;'>
|
|
2292
|
+
<input type=text name=key size=15>
|
|
2293
|
+
<input type=submit value="Search">
|
|
2294
|
+
</form>
|
|
2295
|
+
</div>
|
|
2296
|
+
</div>
|
|
2297
|
+
""" % (version, html.escape(platform.platform(terse=True)))
|
|
2298
|
+
|
|
2299
|
+
def html_index():
|
|
2300
|
+
"""Module Index page."""
|
|
2301
|
+
|
|
2302
|
+
def bltinlink(name):
|
|
2303
|
+
return '<a href="%s.html">%s</a>' % (name, name)
|
|
2304
|
+
|
|
2305
|
+
heading = html.heading(
|
|
2306
|
+
'<big><big><strong>Index of Modules</strong></big></big>',
|
|
2307
|
+
'#ffffff', '#7799ee')
|
|
2308
|
+
names = [name for name in sys.builtin_module_names
|
|
2309
|
+
if name != '__main__']
|
|
2310
|
+
contents = html.multicolumn(names, bltinlink)
|
|
2311
|
+
contents = [heading, '<p>' + html.bigsection(
|
|
2312
|
+
'Built-in Modules', '#ffffff', '#ee77aa', contents)]
|
|
2313
|
+
|
|
2314
|
+
seen = {}
|
|
2315
|
+
for dir in sys.path:
|
|
2316
|
+
contents.append(html.index(dir, seen))
|
|
2317
|
+
|
|
2318
|
+
contents.append(
|
|
2319
|
+
'<p align=right><font color="#909090" face="helvetica,'
|
|
2320
|
+
'arial"><strong>pydoc</strong> by Ka-Ping Yee'
|
|
2321
|
+
'<ping@lfw.org></font>')
|
|
2322
|
+
return 'Index of Modules', ''.join(contents)
|
|
2323
|
+
|
|
2324
|
+
def html_search(key):
|
|
2325
|
+
"""Search results page."""
|
|
2326
|
+
# scan for modules
|
|
2327
|
+
search_result = []
|
|
2328
|
+
|
|
2329
|
+
def callback(path, modname, desc):
|
|
2330
|
+
if modname[-9:] == '.__init__':
|
|
2331
|
+
modname = modname[:-9] + ' (package)'
|
|
2332
|
+
search_result.append((modname, desc and '- ' + desc))
|
|
2333
|
+
|
|
2334
|
+
with warnings.catch_warnings():
|
|
2335
|
+
warnings.filterwarnings('ignore') # ignore problems during import
|
|
2336
|
+
ModuleScanner().run(callback, key)
|
|
2337
|
+
|
|
2338
|
+
# format page
|
|
2339
|
+
def bltinlink(name):
|
|
2340
|
+
return '<a href="%s.html">%s</a>' % (name, name)
|
|
2341
|
+
|
|
2342
|
+
results = []
|
|
2343
|
+
heading = html.heading(
|
|
2344
|
+
'<big><big><strong>Search Results</strong></big></big>',
|
|
2345
|
+
'#ffffff', '#7799ee')
|
|
2346
|
+
for name, desc in search_result:
|
|
2347
|
+
results.append(bltinlink(name) + desc)
|
|
2348
|
+
contents = heading + html.bigsection(
|
|
2349
|
+
'key = %s' % key, '#ffffff', '#ee77aa', '<br>'.join(results))
|
|
2350
|
+
return 'Search Results', contents
|
|
2351
|
+
|
|
2352
|
+
def html_getfile(path):
|
|
2353
|
+
"""Get and display a source file listing safely."""
|
|
2354
|
+
path = urllib.parse.unquote(path)
|
|
2355
|
+
with tokenize.open(path) as fp:
|
|
2356
|
+
lines = html.escape(fp.read())
|
|
2357
|
+
body = '<pre>%s</pre>' % lines
|
|
2358
|
+
heading = html.heading(
|
|
2359
|
+
'<big><big><strong>File Listing</strong></big></big>',
|
|
2360
|
+
'#ffffff', '#7799ee')
|
|
2361
|
+
contents = heading + html.bigsection(
|
|
2362
|
+
'File: %s' % path, '#ffffff', '#ee77aa', body)
|
|
2363
|
+
return 'getfile %s' % path, contents
|
|
2364
|
+
|
|
2365
|
+
def html_topics():
|
|
2366
|
+
"""Index of topic texts available."""
|
|
2367
|
+
|
|
2368
|
+
def bltinlink(name):
|
|
2369
|
+
return '<a href="topic?key=%s">%s</a>' % (name, name)
|
|
2370
|
+
|
|
2371
|
+
heading = html.heading(
|
|
2372
|
+
'<big><big><strong>INDEX</strong></big></big>',
|
|
2373
|
+
'#ffffff', '#7799ee')
|
|
2374
|
+
names = sorted(Helper.topics.keys())
|
|
2375
|
+
|
|
2376
|
+
contents = html.multicolumn(names, bltinlink)
|
|
2377
|
+
contents = heading + html.bigsection(
|
|
2378
|
+
'Topics', '#ffffff', '#ee77aa', contents)
|
|
2379
|
+
return 'Topics', contents
|
|
2380
|
+
|
|
2381
|
+
def html_keywords():
|
|
2382
|
+
"""Index of keywords."""
|
|
2383
|
+
heading = html.heading(
|
|
2384
|
+
'<big><big><strong>INDEX</strong></big></big>',
|
|
2385
|
+
'#ffffff', '#7799ee')
|
|
2386
|
+
names = sorted(Helper.keywords.keys())
|
|
2387
|
+
|
|
2388
|
+
def bltinlink(name):
|
|
2389
|
+
return '<a href="topic?key=%s">%s</a>' % (name, name)
|
|
2390
|
+
|
|
2391
|
+
contents = html.multicolumn(names, bltinlink)
|
|
2392
|
+
contents = heading + html.bigsection(
|
|
2393
|
+
'Keywords', '#ffffff', '#ee77aa', contents)
|
|
2394
|
+
return 'Keywords', contents
|
|
2395
|
+
|
|
2396
|
+
def html_topicpage(topic):
|
|
2397
|
+
"""Topic or keyword help page."""
|
|
2398
|
+
buf = io.StringIO()
|
|
2399
|
+
htmlhelp = Helper(buf, buf)
|
|
2400
|
+
contents, xrefs = htmlhelp._gettopic(topic)
|
|
2401
|
+
if topic in htmlhelp.keywords:
|
|
2402
|
+
title = 'KEYWORD'
|
|
2403
|
+
else:
|
|
2404
|
+
title = 'TOPIC'
|
|
2405
|
+
heading = html.heading(
|
|
2406
|
+
'<big><big><strong>%s</strong></big></big>' % title,
|
|
2407
|
+
'#ffffff', '#7799ee')
|
|
2408
|
+
contents = '<pre>%s</pre>' % html.markup(contents)
|
|
2409
|
+
contents = html.bigsection(topic , '#ffffff','#ee77aa', contents)
|
|
2410
|
+
if xrefs:
|
|
2411
|
+
xrefs = sorted(xrefs.split())
|
|
2412
|
+
|
|
2413
|
+
def bltinlink(name):
|
|
2414
|
+
return '<a href="topic?key=%s">%s</a>' % (name, name)
|
|
2415
|
+
|
|
2416
|
+
xrefs = html.multicolumn(xrefs, bltinlink)
|
|
2417
|
+
xrefs = html.section('Related help topics: ',
|
|
2418
|
+
'#ffffff', '#ee77aa', xrefs)
|
|
2419
|
+
return ('%s %s' % (title, topic),
|
|
2420
|
+
''.join((heading, contents, xrefs)))
|
|
2421
|
+
|
|
2422
|
+
def html_getobj(url):
|
|
2423
|
+
obj = locate(url, forceload=1)
|
|
2424
|
+
if obj is None and url != 'None':
|
|
2425
|
+
raise ValueError('could not find object')
|
|
2426
|
+
title = describe(obj)
|
|
2427
|
+
content = html.document(obj, url)
|
|
2428
|
+
return title, content
|
|
2429
|
+
|
|
2430
|
+
def html_error(url, exc):
|
|
2431
|
+
heading = html.heading(
|
|
2432
|
+
'<big><big><strong>Error</strong></big></big>',
|
|
2433
|
+
'#ffffff', '#7799ee')
|
|
2434
|
+
contents = '<br>'.join(html.escape(line) for line in
|
|
2435
|
+
format_exception_only(type(exc), exc))
|
|
2436
|
+
contents = heading + html.bigsection(url, '#ffffff', '#bb0000',
|
|
2437
|
+
contents)
|
|
2438
|
+
return "Error - %s" % url, contents
|
|
2439
|
+
|
|
2440
|
+
def get_html_page(url):
|
|
2441
|
+
"""Generate an HTML page for url."""
|
|
2442
|
+
complete_url = url
|
|
2443
|
+
if url.endswith('.html'):
|
|
2444
|
+
url = url[:-5]
|
|
2445
|
+
try:
|
|
2446
|
+
if url in ("", "index"):
|
|
2447
|
+
title, content = html_index()
|
|
2448
|
+
elif url == "topics":
|
|
2449
|
+
title, content = html_topics()
|
|
2450
|
+
elif url == "keywords":
|
|
2451
|
+
title, content = html_keywords()
|
|
2452
|
+
elif '=' in url:
|
|
2453
|
+
op, _, url = url.partition('=')
|
|
2454
|
+
if op == "search?key":
|
|
2455
|
+
title, content = html_search(url)
|
|
2456
|
+
elif op == "getfile?key":
|
|
2457
|
+
title, content = html_getfile(url)
|
|
2458
|
+
elif op == "topic?key":
|
|
2459
|
+
# try topics first, then objects.
|
|
2460
|
+
try:
|
|
2461
|
+
title, content = html_topicpage(url)
|
|
2462
|
+
except ValueError:
|
|
2463
|
+
title, content = html_getobj(url)
|
|
2464
|
+
elif op == "get?key":
|
|
2465
|
+
# try objects first, then topics.
|
|
2466
|
+
if url in ("", "index"):
|
|
2467
|
+
title, content = html_index()
|
|
2468
|
+
else:
|
|
2469
|
+
try:
|
|
2470
|
+
title, content = html_getobj(url)
|
|
2471
|
+
except ValueError:
|
|
2472
|
+
title, content = html_topicpage(url)
|
|
2473
|
+
else:
|
|
2474
|
+
raise ValueError('bad pydoc url')
|
|
2475
|
+
else:
|
|
2476
|
+
title, content = html_getobj(url)
|
|
2477
|
+
except Exception as exc:
|
|
2478
|
+
# Catch any errors and display them in an error page.
|
|
2479
|
+
title, content = html_error(complete_url, exc)
|
|
2480
|
+
return html.page(title, content)
|
|
2481
|
+
|
|
2482
|
+
if url.startswith('/'):
|
|
2483
|
+
url = url[1:]
|
|
2484
|
+
if content_type == 'text/css':
|
|
2485
|
+
path_here = os.path.dirname(os.path.realpath(__file__))
|
|
2486
|
+
css_path = os.path.join(path_here, url)
|
|
2487
|
+
with open(css_path) as fp:
|
|
2488
|
+
return ''.join(fp.readlines())
|
|
2489
|
+
elif content_type == 'text/html':
|
|
2490
|
+
return get_html_page(url)
|
|
2491
|
+
# Errors outside the url handler are caught by the server.
|
|
2492
|
+
raise TypeError('unknown content type %r for url %s' % (content_type, url))
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
def browse(port=0, *, open_browser=True):
|
|
2496
|
+
"""Start the enhanced pydoc Web server and open a Web browser.
|
|
2497
|
+
|
|
2498
|
+
Use port '0' to start the server on an arbitrary port.
|
|
2499
|
+
Set open_browser to False to suppress opening a browser.
|
|
2500
|
+
"""
|
|
2501
|
+
import webbrowser
|
|
2502
|
+
serverthread = _start_server(_url_handler, port)
|
|
2503
|
+
if serverthread.error:
|
|
2504
|
+
print(serverthread.error)
|
|
2505
|
+
return
|
|
2506
|
+
if serverthread.serving:
|
|
2507
|
+
server_help_msg = 'Server commands: [b]rowser, [q]uit'
|
|
2508
|
+
if open_browser:
|
|
2509
|
+
webbrowser.open(serverthread.url)
|
|
2510
|
+
try:
|
|
2511
|
+
print('Server ready at', serverthread.url)
|
|
2512
|
+
print(server_help_msg)
|
|
2513
|
+
while serverthread.serving:
|
|
2514
|
+
cmd = input('server> ')
|
|
2515
|
+
cmd = cmd.lower()
|
|
2516
|
+
if cmd == 'q':
|
|
2517
|
+
break
|
|
2518
|
+
elif cmd == 'b':
|
|
2519
|
+
webbrowser.open(serverthread.url)
|
|
2520
|
+
else:
|
|
2521
|
+
print(server_help_msg)
|
|
2522
|
+
except (KeyboardInterrupt, EOFError):
|
|
2523
|
+
print()
|
|
2524
|
+
finally:
|
|
2525
|
+
if serverthread.serving:
|
|
2526
|
+
serverthread.stop()
|
|
2527
|
+
print('Server stopped')
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
# -------------------------------------------------- command-line interface
|
|
2531
|
+
|
|
2532
|
+
def ispath(x):
|
|
2533
|
+
return isinstance(x, str) and x.find(os.sep) >= 0
|
|
2534
|
+
|
|
2535
|
+
def cli():
|
|
2536
|
+
"""Command-line interface (looks at sys.argv to decide what to do)."""
|
|
2537
|
+
import getopt
|
|
2538
|
+
class BadUsage(Exception): pass
|
|
2539
|
+
|
|
2540
|
+
# Scripts don't get the current directory in their path by default
|
|
2541
|
+
# unless they are run with the '-m' switch
|
|
2542
|
+
if '' not in sys.path:
|
|
2543
|
+
scriptdir = os.path.dirname(sys.argv[0])
|
|
2544
|
+
if scriptdir in sys.path:
|
|
2545
|
+
sys.path.remove(scriptdir)
|
|
2546
|
+
sys.path.insert(0, '.')
|
|
2547
|
+
|
|
2548
|
+
try:
|
|
2549
|
+
opts, args = getopt.getopt(sys.argv[1:], 'bk:p:w')
|
|
2550
|
+
writing = False
|
|
2551
|
+
start_server = False
|
|
2552
|
+
open_browser = False
|
|
2553
|
+
port = None
|
|
2554
|
+
for opt, val in opts:
|
|
2555
|
+
if opt == '-b':
|
|
2556
|
+
start_server = True
|
|
2557
|
+
open_browser = True
|
|
2558
|
+
if opt == '-k':
|
|
2559
|
+
apropos(val)
|
|
2560
|
+
return
|
|
2561
|
+
if opt == '-p':
|
|
2562
|
+
start_server = True
|
|
2563
|
+
port = val
|
|
2564
|
+
if opt == '-w':
|
|
2565
|
+
writing = True
|
|
2566
|
+
|
|
2567
|
+
if start_server:
|
|
2568
|
+
if port is None:
|
|
2569
|
+
port = 0
|
|
2570
|
+
browse(port, open_browser=open_browser)
|
|
2571
|
+
return
|
|
2572
|
+
|
|
2573
|
+
if not args: raise BadUsage
|
|
2574
|
+
for arg in args:
|
|
2575
|
+
if ispath(arg) and not os.path.exists(arg):
|
|
2576
|
+
print('file %r does not exist' % arg)
|
|
2577
|
+
break
|
|
2578
|
+
try:
|
|
2579
|
+
if ispath(arg) and os.path.isfile(arg):
|
|
2580
|
+
arg = importfile(arg)
|
|
2581
|
+
if writing:
|
|
2582
|
+
if ispath(arg) and os.path.isdir(arg):
|
|
2583
|
+
writedocs(arg)
|
|
2584
|
+
else:
|
|
2585
|
+
writedoc(arg)
|
|
2586
|
+
else:
|
|
2587
|
+
help.help(arg)
|
|
2588
|
+
except ErrorDuringImport as value:
|
|
2589
|
+
print(value)
|
|
2590
|
+
|
|
2591
|
+
except (getopt.error, BadUsage):
|
|
2592
|
+
cmd = os.path.splitext(os.path.basename(sys.argv[0]))[0]
|
|
2593
|
+
print("""pydoc - the Python documentation tool
|
|
2594
|
+
|
|
2595
|
+
{cmd} <name> ...
|
|
2596
|
+
Show text documentation on something. <name> may be the name of a
|
|
2597
|
+
Python keyword, topic, function, module, or package, or a dotted
|
|
2598
|
+
reference to a class or function within a module or module in a
|
|
2599
|
+
package. If <name> contains a '{sep}', it is used as the path to a
|
|
2600
|
+
Python source file to document. If name is 'keywords', 'topics',
|
|
2601
|
+
or 'modules', a listing of these things is displayed.
|
|
2602
|
+
|
|
2603
|
+
{cmd} -k <keyword>
|
|
2604
|
+
Search for a keyword in the synopsis lines of all available modules.
|
|
2605
|
+
|
|
2606
|
+
{cmd} -p <port>
|
|
2607
|
+
Start an HTTP server on the given port on the local machine. Port
|
|
2608
|
+
number 0 can be used to get an arbitrary unused port.
|
|
2609
|
+
|
|
2610
|
+
{cmd} -b
|
|
2611
|
+
Start an HTTP server on an arbitrary unused port and open a Web browser
|
|
2612
|
+
to interactively browse documentation. The -p option can be used with
|
|
2613
|
+
the -b option to explicitly specify the server port.
|
|
2614
|
+
|
|
2615
|
+
{cmd} -w <name> ...
|
|
2616
|
+
Write out the HTML documentation for a module to a file in the current
|
|
2617
|
+
directory. If <name> contains a '{sep}', it is treated as a filename; if
|
|
2618
|
+
it names a directory, documentation is written for all the contents.
|
|
2619
|
+
""".format(cmd=cmd, sep=os.sep))
|
|
2620
|
+
|
|
2621
|
+
if __name__ == '__main__':
|
|
2622
|
+
cli()
|