com.googler.python 1.1.4 → 1.1.5
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 +1 -1
- package/python3.6.2/lib/libcrypto.so.1.0.0 +0 -0
- package/python3.6.2/lib/libformw.so.5 +0 -0
- package/python3.6.2/lib/libformw.so.5.9 +0 -0
- package/python3.6.2/lib/libhistory.so.6 +0 -0
- package/python3.6.2/lib/libhistory.so.6.3 +0 -0
- package/python3.6.2/lib/libmenuw.so.5 +0 -0
- package/python3.6.2/lib/libmenuw.so.5.9 +0 -0
- package/python3.6.2/lib/libncursesw.so.5 +0 -0
- package/python3.6.2/lib/libncursesw.so.5.9 +0 -0
- package/python3.6.2/lib/libpanelw.so.5 +0 -0
- package/python3.6.2/lib/libpanelw.so.5.9 +0 -0
- package/python3.6.2/lib/libpython3.6m.so.1.0 +0 -0
- package/python3.6.2/lib/libpython3.so +0 -0
- package/python3.6.2/lib/libreadline.so.6 +0 -0
- package/python3.6.2/lib/libreadline.so.6.3 +0 -0
- package/python3.6.2/lib/libssl.so.1.0.0 +0 -0
- package/python3.6.2/lib/libtinfow.so.5 +0 -0
- package/python3.6.2/lib/libtinfow.so.5.9 +0 -0
- package/python3.6.2/lib/python3.6/__future__.py +140 -0
- package/python3.6.2/lib/python3.6/__phello__.foo.py +1 -0
- package/python3.6.2/lib/python3.6/_bootlocale.py +34 -0
- package/python3.6.2/lib/python3.6/_collections_abc.py +1008 -0
- package/python3.6.2/lib/python3.6/_compat_pickle.py +251 -0
- package/python3.6.2/lib/python3.6/_compression.py +152 -0
- package/python3.6.2/lib/python3.6/_dummy_thread.py +163 -0
- package/python3.6.2/lib/python3.6/_markupbase.py +395 -0
- package/python3.6.2/lib/python3.6/_osx_support.py +502 -0
- package/python3.6.2/lib/python3.6/_pydecimal.py +6449 -0
- package/python3.6.2/lib/python3.6/_pyio.py +2531 -0
- package/python3.6.2/lib/python3.6/_sitebuiltins.py +103 -0
- package/python3.6.2/lib/python3.6/_strptime.py +576 -0
- package/python3.6.2/lib/python3.6/_threading_local.py +246 -0
- package/python3.6.2/lib/python3.6/_weakrefset.py +196 -0
- package/python3.6.2/lib/python3.6/abc.py +248 -0
- package/python3.6.2/lib/python3.6/aifc.py +943 -0
- package/python3.6.2/lib/python3.6/antigravity.py +17 -0
- package/python3.6.2/lib/python3.6/argparse.py +2389 -0
- package/python3.6.2/lib/python3.6/ast.py +322 -0
- package/python3.6.2/lib/python3.6/asynchat.py +307 -0
- package/python3.6.2/lib/python3.6/asyncio/__init__.py +50 -0
- package/python3.6.2/lib/python3.6/asyncio/base_events.py +1474 -0
- package/python3.6.2/lib/python3.6/asyncio/base_futures.py +71 -0
- package/python3.6.2/lib/python3.6/asyncio/base_subprocess.py +293 -0
- package/python3.6.2/lib/python3.6/asyncio/base_tasks.py +76 -0
- package/python3.6.2/lib/python3.6/asyncio/compat.py +18 -0
- package/python3.6.2/lib/python3.6/asyncio/constants.py +12 -0
- package/python3.6.2/lib/python3.6/asyncio/coroutines.py +346 -0
- package/python3.6.2/lib/python3.6/asyncio/events.py +715 -0
- package/python3.6.2/lib/python3.6/asyncio/futures.py +439 -0
- package/python3.6.2/lib/python3.6/asyncio/locks.py +485 -0
- package/python3.6.2/lib/python3.6/asyncio/log.py +7 -0
- package/python3.6.2/lib/python3.6/asyncio/proactor_events.py +551 -0
- package/python3.6.2/lib/python3.6/asyncio/protocols.py +134 -0
- package/python3.6.2/lib/python3.6/asyncio/queues.py +259 -0
- package/python3.6.2/lib/python3.6/asyncio/selector_events.py +1141 -0
- package/python3.6.2/lib/python3.6/asyncio/sslproto.py +697 -0
- package/python3.6.2/lib/python3.6/asyncio/streams.py +701 -0
- package/python3.6.2/lib/python3.6/asyncio/subprocess.py +226 -0
- package/python3.6.2/lib/python3.6/asyncio/tasks.py +717 -0
- package/python3.6.2/lib/python3.6/asyncio/test_utils.py +519 -0
- package/python3.6.2/lib/python3.6/asyncio/transports.py +306 -0
- package/python3.6.2/lib/python3.6/asyncio/unix_events.py +1074 -0
- package/python3.6.2/lib/python3.6/asyncio/windows_events.py +779 -0
- package/python3.6.2/lib/python3.6/asyncio/windows_utils.py +224 -0
- package/python3.6.2/lib/python3.6/asyncore.py +645 -0
- package/python3.6.2/lib/python3.6/base64.py +602 -0
- package/python3.6.2/lib/python3.6/bdb.py +673 -0
- package/python3.6.2/lib/python3.6/binhex.py +479 -0
- package/python3.6.2/lib/python3.6/bisect.py +92 -0
- package/python3.6.2/lib/python3.6/bz2.py +361 -0
- package/python3.6.2/lib/python3.6/cProfile.py +160 -0
- package/python3.6.2/lib/python3.6/calendar.py +713 -0
- package/python3.6.2/lib/python3.6/cgi.py +1077 -0
- package/python3.6.2/lib/python3.6/cgitb.py +319 -0
- package/python3.6.2/lib/python3.6/chunk.py +169 -0
- package/python3.6.2/lib/python3.6/cmd.py +401 -0
- package/python3.6.2/lib/python3.6/code.py +314 -0
- package/python3.6.2/lib/python3.6/codecs.py +1113 -0
- package/python3.6.2/lib/python3.6/codeop.py +168 -0
- package/python3.6.2/lib/python3.6/collections/__init__.py +1244 -0
- package/python3.6.2/lib/python3.6/collections/abc.py +2 -0
- package/python3.6.2/lib/python3.6/colorsys.py +164 -0
- package/python3.6.2/lib/python3.6/compileall.py +295 -0
- package/python3.6.2/lib/python3.6/concurrent/__init__.py +1 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/__init__.py +18 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/_base.py +612 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/process.py +515 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/thread.py +153 -0
- package/python3.6.2/lib/python3.6/configparser.py +1342 -0
- package/python3.6.2/lib/python3.6/contextlib.py +384 -0
- package/python3.6.2/lib/python3.6/copy.py +313 -0
- package/python3.6.2/lib/python3.6/copyreg.py +206 -0
- package/python3.6.2/lib/python3.6/crypt.py +61 -0
- package/python3.6.2/lib/python3.6/csv.py +449 -0
- package/python3.6.2/lib/python3.6/ctypes/__init__.py +538 -0
- package/python3.6.2/lib/python3.6/ctypes/_endian.py +61 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/__init__.py +9 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/dyld.py +159 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/dylib.py +63 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/framework.py +65 -0
- package/python3.6.2/lib/python3.6/ctypes/test/__init__.py +14 -0
- package/python3.6.2/lib/python3.6/ctypes/test/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_anon.py +73 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_array_in_pointer.py +64 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_arrays.py +185 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_as_parameter.py +226 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_bitfields.py +290 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_buffers.py +64 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_bytes.py +65 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_byteswap.py +315 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_callbacks.py +293 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_cast.py +86 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_cfuncs.py +212 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_checkretval.py +36 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_delattr.py +21 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_errno.py +79 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_find.py +116 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_frombuffer.py +141 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_funcptr.py +132 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_functions.py +402 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_incomplete.py +42 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_init.py +40 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_internals.py +100 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_keeprefs.py +153 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_libc.py +33 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_loading.py +116 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_macholib.py +63 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_memfunctions.py +79 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_numbers.py +290 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_objects.py +67 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_parameters.py +207 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_pep3118.py +233 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_pickling.py +81 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_pointers.py +223 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_prototypes.py +222 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_python_api.py +89 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_random_things.py +74 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_refcounts.py +101 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_repr.py +29 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_returnfuncptrs.py +66 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_simplesubclasses.py +55 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_sizes.py +33 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_slicing.py +167 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_stringptr.py +77 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_strings.py +225 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_struct_fields.py +74 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_structures.py +491 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_unaligned_structures.py +45 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_unicode.py +56 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_values.py +100 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_varsize_struct.py +50 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_win32.py +147 -0
- package/python3.6.2/lib/python3.6/ctypes/test/test_wintypes.py +41 -0
- package/python3.6.2/lib/python3.6/ctypes/util.py +337 -0
- package/python3.6.2/lib/python3.6/ctypes/wintypes.py +202 -0
- package/python3.6.2/lib/python3.6/curses/__init__.py +101 -0
- package/python3.6.2/lib/python3.6/curses/ascii.py +99 -0
- package/python3.6.2/lib/python3.6/curses/has_key.py +192 -0
- package/python3.6.2/lib/python3.6/curses/panel.py +6 -0
- package/python3.6.2/lib/python3.6/curses/textpad.py +201 -0
- package/python3.6.2/lib/python3.6/datetime.py +2280 -0
- package/python3.6.2/lib/python3.6/dbm/__init__.py +188 -0
- package/python3.6.2/lib/python3.6/dbm/dumb.py +324 -0
- package/python3.6.2/lib/python3.6/dbm/gnu.py +3 -0
- package/python3.6.2/lib/python3.6/dbm/ndbm.py +3 -0
- package/python3.6.2/lib/python3.6/decimal.py +11 -0
- package/python3.6.2/lib/python3.6/difflib.py +2093 -0
- package/python3.6.2/lib/python3.6/dis.py +490 -0
- package/python3.6.2/lib/python3.6/distutils/__init__.py +13 -0
- package/python3.6.2/lib/python3.6/distutils/_msvccompiler.py +574 -0
- package/python3.6.2/lib/python3.6/distutils/archive_util.py +248 -0
- package/python3.6.2/lib/python3.6/distutils/bcppcompiler.py +393 -0
- package/python3.6.2/lib/python3.6/distutils/ccompiler.py +1115 -0
- package/python3.6.2/lib/python3.6/distutils/cmd.py +434 -0
- package/python3.6.2/lib/python3.6/distutils/command/__init__.py +31 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist.py +143 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_dumb.py +123 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_msi.py +741 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_rpm.py +582 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_wininst.py +365 -0
- package/python3.6.2/lib/python3.6/distutils/command/build.py +157 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_clib.py +209 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_ext.py +755 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_py.py +416 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_scripts.py +160 -0
- package/python3.6.2/lib/python3.6/distutils/command/check.py +145 -0
- package/python3.6.2/lib/python3.6/distutils/command/clean.py +76 -0
- package/python3.6.2/lib/python3.6/distutils/command/config.py +347 -0
- package/python3.6.2/lib/python3.6/distutils/command/install.py +656 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_data.py +79 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_egg_info.py +77 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_headers.py +47 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_lib.py +217 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_scripts.py +60 -0
- package/python3.6.2/lib/python3.6/distutils/command/register.py +304 -0
- package/python3.6.2/lib/python3.6/distutils/command/sdist.py +456 -0
- package/python3.6.2/lib/python3.6/distutils/command/upload.py +201 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-10.0-amd64.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-10.0.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-14.0-amd64.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-14.0.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-6.0.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-7.1.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-8.0.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-9.0-amd64.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/wininst-9.0.exe +0 -0
- package/python3.6.2/lib/python3.6/distutils/config.py +131 -0
- package/python3.6.2/lib/python3.6/distutils/core.py +234 -0
- package/python3.6.2/lib/python3.6/distutils/cygwinccompiler.py +405 -0
- package/python3.6.2/lib/python3.6/distutils/debug.py +5 -0
- package/python3.6.2/lib/python3.6/distutils/dep_util.py +92 -0
- package/python3.6.2/lib/python3.6/distutils/dir_util.py +210 -0
- package/python3.6.2/lib/python3.6/distutils/dist.py +1236 -0
- package/python3.6.2/lib/python3.6/distutils/errors.py +97 -0
- package/python3.6.2/lib/python3.6/distutils/extension.py +240 -0
- package/python3.6.2/lib/python3.6/distutils/fancy_getopt.py +457 -0
- package/python3.6.2/lib/python3.6/distutils/file_util.py +238 -0
- package/python3.6.2/lib/python3.6/distutils/filelist.py +327 -0
- package/python3.6.2/lib/python3.6/distutils/log.py +75 -0
- package/python3.6.2/lib/python3.6/distutils/msvc9compiler.py +791 -0
- package/python3.6.2/lib/python3.6/distutils/msvccompiler.py +643 -0
- package/python3.6.2/lib/python3.6/distutils/spawn.py +192 -0
- package/python3.6.2/lib/python3.6/distutils/sysconfig.py +532 -0
- package/python3.6.2/lib/python3.6/distutils/tests/Setup.sample +67 -0
- package/python3.6.2/lib/python3.6/distutils/tests/__init__.py +36 -0
- package/python3.6.2/lib/python3.6/distutils/tests/support.py +210 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_archive_util.py +395 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_bdist.py +50 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_dumb.py +97 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_msi.py +25 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_rpm.py +135 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_wininst.py +31 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_build.py +56 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_build_clib.py +135 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_build_ext.py +521 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_build_py.py +179 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_build_scripts.py +112 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_check.py +149 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_clean.py +49 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_cmd.py +126 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_config.py +140 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_config_cmd.py +92 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_core.py +140 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_cygwinccompiler.py +154 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_dep_util.py +80 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_dir_util.py +139 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_dist.py +456 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_extension.py +69 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_file_util.py +114 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_filelist.py +340 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_install.py +248 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_install_data.py +75 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_install_headers.py +39 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_install_lib.py +115 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_install_scripts.py +82 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_log.py +38 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_msvc9compiler.py +184 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_msvccompiler.py +132 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_register.py +323 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_sdist.py +484 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_spawn.py +58 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_sysconfig.py +198 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_text_file.py +107 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_unixccompiler.py +149 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_upload.py +181 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_util.py +300 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_version.py +71 -0
- package/python3.6.2/lib/python3.6/distutils/tests/test_versionpredicate.py +13 -0
- package/python3.6.2/lib/python3.6/distutils/text_file.py +286 -0
- package/python3.6.2/lib/python3.6/distutils/unixccompiler.py +322 -0
- package/python3.6.2/lib/python3.6/distutils/util.py +557 -0
- package/python3.6.2/lib/python3.6/distutils/version.py +343 -0
- package/python3.6.2/lib/python3.6/distutils/versionpredicate.py +166 -0
- package/python3.6.2/lib/python3.6/doctest.py +2787 -0
- package/python3.6.2/lib/python3.6/dummy_threading.py +78 -0
- package/python3.6.2/lib/python3.6/email/__init__.py +62 -0
- package/python3.6.2/lib/python3.6/email/_encoded_words.py +221 -0
- package/python3.6.2/lib/python3.6/email/_header_value_parser.py +2811 -0
- package/python3.6.2/lib/python3.6/email/_parseaddr.py +540 -0
- package/python3.6.2/lib/python3.6/email/_policybase.py +374 -0
- package/python3.6.2/lib/python3.6/email/base64mime.py +119 -0
- package/python3.6.2/lib/python3.6/email/charset.py +406 -0
- package/python3.6.2/lib/python3.6/email/contentmanager.py +250 -0
- package/python3.6.2/lib/python3.6/email/encoders.py +69 -0
- package/python3.6.2/lib/python3.6/email/errors.py +107 -0
- package/python3.6.2/lib/python3.6/email/feedparser.py +536 -0
- package/python3.6.2/lib/python3.6/email/generator.py +508 -0
- package/python3.6.2/lib/python3.6/email/header.py +578 -0
- package/python3.6.2/lib/python3.6/email/headerregistry.py +589 -0
- package/python3.6.2/lib/python3.6/email/iterators.py +71 -0
- package/python3.6.2/lib/python3.6/email/message.py +1164 -0
- package/python3.6.2/lib/python3.6/email/mime/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/email/mime/application.py +37 -0
- package/python3.6.2/lib/python3.6/email/mime/audio.py +74 -0
- package/python3.6.2/lib/python3.6/email/mime/base.py +30 -0
- package/python3.6.2/lib/python3.6/email/mime/image.py +47 -0
- package/python3.6.2/lib/python3.6/email/mime/message.py +34 -0
- package/python3.6.2/lib/python3.6/email/mime/multipart.py +48 -0
- package/python3.6.2/lib/python3.6/email/mime/nonmultipart.py +22 -0
- package/python3.6.2/lib/python3.6/email/mime/text.py +42 -0
- package/python3.6.2/lib/python3.6/email/parser.py +132 -0
- package/python3.6.2/lib/python3.6/email/policy.py +223 -0
- package/python3.6.2/lib/python3.6/email/quoprimime.py +299 -0
- package/python3.6.2/lib/python3.6/email/utils.py +388 -0
- package/python3.6.2/lib/python3.6/encodings/__init__.py +169 -0
- package/python3.6.2/lib/python3.6/encodings/aliases.py +550 -0
- package/python3.6.2/lib/python3.6/encodings/ascii.py +50 -0
- package/python3.6.2/lib/python3.6/encodings/base64_codec.py +55 -0
- package/python3.6.2/lib/python3.6/encodings/big5.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/big5hkscs.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/bz2_codec.py +78 -0
- package/python3.6.2/lib/python3.6/encodings/charmap.py +69 -0
- package/python3.6.2/lib/python3.6/encodings/cp037.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1006.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1026.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1125.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp1140.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1250.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1251.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1252.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1253.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1254.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1255.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1256.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1257.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp1258.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp273.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp424.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp437.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp500.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp65001.py +43 -0
- package/python3.6.2/lib/python3.6/encodings/cp720.py +309 -0
- package/python3.6.2/lib/python3.6/encodings/cp737.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp775.py +697 -0
- package/python3.6.2/lib/python3.6/encodings/cp850.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp852.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp855.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp856.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp857.py +694 -0
- package/python3.6.2/lib/python3.6/encodings/cp858.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp860.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp861.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp862.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp863.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp864.py +690 -0
- package/python3.6.2/lib/python3.6/encodings/cp865.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp866.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/cp869.py +689 -0
- package/python3.6.2/lib/python3.6/encodings/cp874.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp875.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/cp932.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/cp949.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/cp950.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jis_2004.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jisx0213.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jp.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/euc_kr.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/gb18030.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/gb2312.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/gbk.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/hex_codec.py +55 -0
- package/python3.6.2/lib/python3.6/encodings/hp_roman8.py +314 -0
- package/python3.6.2/lib/python3.6/encodings/hz.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/idna.py +309 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_1.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2004.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_3.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_ext.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_kr.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_1.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_10.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_11.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_13.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_14.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_15.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_16.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_2.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_3.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_4.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_5.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_6.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_7.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_8.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_9.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/johab.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_r.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_t.py +308 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_u.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/kz1048.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/latin_1.py +50 -0
- package/python3.6.2/lib/python3.6/encodings/mac_arabic.py +698 -0
- package/python3.6.2/lib/python3.6/encodings/mac_centeuro.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_croatian.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_cyrillic.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_farsi.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_greek.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_iceland.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_latin2.py +312 -0
- package/python3.6.2/lib/python3.6/encodings/mac_roman.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_romanian.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mac_turkish.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/mbcs.py +47 -0
- package/python3.6.2/lib/python3.6/encodings/oem.py +41 -0
- package/python3.6.2/lib/python3.6/encodings/palmos.py +308 -0
- package/python3.6.2/lib/python3.6/encodings/ptcp154.py +312 -0
- package/python3.6.2/lib/python3.6/encodings/punycode.py +237 -0
- package/python3.6.2/lib/python3.6/encodings/quopri_codec.py +56 -0
- package/python3.6.2/lib/python3.6/encodings/raw_unicode_escape.py +45 -0
- package/python3.6.2/lib/python3.6/encodings/rot_13.py +113 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jis.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jis_2004.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jisx0213.py +39 -0
- package/python3.6.2/lib/python3.6/encodings/tis_620.py +307 -0
- package/python3.6.2/lib/python3.6/encodings/undefined.py +49 -0
- package/python3.6.2/lib/python3.6/encodings/unicode_escape.py +45 -0
- package/python3.6.2/lib/python3.6/encodings/unicode_internal.py +45 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16.py +155 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16_be.py +42 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16_le.py +42 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32.py +150 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32_be.py +37 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32_le.py +37 -0
- package/python3.6.2/lib/python3.6/encodings/utf_7.py +38 -0
- package/python3.6.2/lib/python3.6/encodings/utf_8.py +42 -0
- package/python3.6.2/lib/python3.6/encodings/utf_8_sig.py +130 -0
- package/python3.6.2/lib/python3.6/encodings/uu_codec.py +99 -0
- package/python3.6.2/lib/python3.6/encodings/zlib_codec.py +77 -0
- package/python3.6.2/lib/python3.6/ensurepip/__init__.py +205 -0
- package/python3.6.2/lib/python3.6/ensurepip/__main__.py +5 -0
- package/python3.6.2/lib/python3.6/ensurepip/_uninstall.py +31 -0
- package/python3.6.2/lib/python3.6/enum.py +875 -0
- package/python3.6.2/lib/python3.6/filecmp.py +305 -0
- package/python3.6.2/lib/python3.6/fileinput.py +425 -0
- package/python3.6.2/lib/python3.6/fnmatch.py +109 -0
- package/python3.6.2/lib/python3.6/formatter.py +452 -0
- package/python3.6.2/lib/python3.6/fractions.py +643 -0
- package/python3.6.2/lib/python3.6/ftplib.py +989 -0
- package/python3.6.2/lib/python3.6/functools.py +811 -0
- package/python3.6.2/lib/python3.6/genericpath.py +151 -0
- package/python3.6.2/lib/python3.6/getopt.py +215 -0
- package/python3.6.2/lib/python3.6/getpass.py +185 -0
- package/python3.6.2/lib/python3.6/gettext.py +637 -0
- package/python3.6.2/lib/python3.6/glob.py +171 -0
- package/python3.6.2/lib/python3.6/gzip.py +574 -0
- package/python3.6.2/lib/python3.6/hashlib.py +251 -0
- package/python3.6.2/lib/python3.6/heapq.py +607 -0
- package/python3.6.2/lib/python3.6/hmac.py +144 -0
- package/python3.6.2/lib/python3.6/html/__init__.py +132 -0
- package/python3.6.2/lib/python3.6/html/entities.py +2509 -0
- package/python3.6.2/lib/python3.6/html/parser.py +470 -0
- package/python3.6.2/lib/python3.6/http/__init__.py +134 -0
- package/python3.6.2/lib/python3.6/http/client.py +1478 -0
- package/python3.6.2/lib/python3.6/http/cookiejar.py +2098 -0
- package/python3.6.2/lib/python3.6/http/cookies.py +635 -0
- package/python3.6.2/lib/python3.6/http/server.py +1211 -0
- package/python3.6.2/lib/python3.6/idlelib/CREDITS.txt +37 -0
- package/python3.6.2/lib/python3.6/idlelib/ChangeLog +1591 -0
- package/python3.6.2/lib/python3.6/idlelib/HISTORY.txt +296 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/folder.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle.icns +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle.ico +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_16.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_16.png +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_32.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_32.png +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_48.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/idle_48.png +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/minusnode.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/openfolder.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/plusnode.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/python.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/Icons/tk.gif +0 -0
- package/python3.6.2/lib/python3.6/idlelib/NEWS.txt +749 -0
- package/python3.6.2/lib/python3.6/idlelib/NEWS2x.txt +660 -0
- package/python3.6.2/lib/python3.6/idlelib/README.txt +251 -0
- package/python3.6.2/lib/python3.6/idlelib/TODO.txt +210 -0
- package/python3.6.2/lib/python3.6/idlelib/__init__.py +10 -0
- package/python3.6.2/lib/python3.6/idlelib/__main__.py +8 -0
- package/python3.6.2/lib/python3.6/idlelib/_pyclbr.py +402 -0
- package/python3.6.2/lib/python3.6/idlelib/autocomplete.py +232 -0
- package/python3.6.2/lib/python3.6/idlelib/autocomplete_w.py +460 -0
- package/python3.6.2/lib/python3.6/idlelib/autoexpand.py +96 -0
- package/python3.6.2/lib/python3.6/idlelib/browser.py +248 -0
- package/python3.6.2/lib/python3.6/idlelib/calltip_w.py +164 -0
- package/python3.6.2/lib/python3.6/idlelib/calltips.py +178 -0
- package/python3.6.2/lib/python3.6/idlelib/codecontext.py +185 -0
- package/python3.6.2/lib/python3.6/idlelib/colorizer.py +289 -0
- package/python3.6.2/lib/python3.6/idlelib/config-extensions.def +65 -0
- package/python3.6.2/lib/python3.6/idlelib/config-highlight.def +93 -0
- package/python3.6.2/lib/python3.6/idlelib/config-keys.def +304 -0
- package/python3.6.2/lib/python3.6/idlelib/config-main.def +88 -0
- package/python3.6.2/lib/python3.6/idlelib/config.py +929 -0
- package/python3.6.2/lib/python3.6/idlelib/config_key.py +298 -0
- package/python3.6.2/lib/python3.6/idlelib/configdialog.py +2254 -0
- package/python3.6.2/lib/python3.6/idlelib/debugger.py +544 -0
- package/python3.6.2/lib/python3.6/idlelib/debugger_r.py +388 -0
- package/python3.6.2/lib/python3.6/idlelib/debugobj.py +139 -0
- package/python3.6.2/lib/python3.6/idlelib/debugobj_r.py +36 -0
- package/python3.6.2/lib/python3.6/idlelib/delegator.py +33 -0
- package/python3.6.2/lib/python3.6/idlelib/dynoption.py +58 -0
- package/python3.6.2/lib/python3.6/idlelib/editor.py +1688 -0
- package/python3.6.2/lib/python3.6/idlelib/extend.txt +83 -0
- package/python3.6.2/lib/python3.6/idlelib/filelist.py +132 -0
- package/python3.6.2/lib/python3.6/idlelib/grep.py +200 -0
- package/python3.6.2/lib/python3.6/idlelib/help.html +791 -0
- package/python3.6.2/lib/python3.6/idlelib/help.py +275 -0
- package/python3.6.2/lib/python3.6/idlelib/help_about.py +205 -0
- package/python3.6.2/lib/python3.6/idlelib/history.py +106 -0
- package/python3.6.2/lib/python3.6/idlelib/hyperparser.py +312 -0
- package/python3.6.2/lib/python3.6/idlelib/idle.bat +4 -0
- package/python3.6.2/lib/python3.6/idlelib/idle.py +14 -0
- package/python3.6.2/lib/python3.6/idlelib/idle.pyw +17 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/README.txt +226 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/__init__.py +17 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/htest.py +421 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/mock_idle.py +60 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/mock_tk.py +303 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_autocomplete.py +149 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_autoexpand.py +143 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_browser.py +253 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_calltips.py +203 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_colorizer.py +56 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_config.py +824 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_config_key.py +102 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_configdialog.py +1415 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_debugger.py +29 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_delegator.py +40 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_editmenu.py +74 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_editor.py +14 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_grep.py +80 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_help.py +34 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_help_about.py +177 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_history.py +168 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_hyperparser.py +274 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_iomenu.py +234 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_macosx.py +106 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_outwin.py +172 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_paragraph.py +376 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_parenmatch.py +112 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_pathbrowser.py +88 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_percolator.py +118 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_query.py +354 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_redirector.py +124 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_replace.py +293 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_rstrip.py +49 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_run.py +35 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_scrolledlist.py +29 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_search.py +82 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_searchbase.py +156 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_searchengine.py +329 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_text.py +236 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_textview.py +179 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_tree.py +35 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_undo.py +135 -0
- package/python3.6.2/lib/python3.6/idlelib/idle_test/test_warning.py +73 -0
- package/python3.6.2/lib/python3.6/idlelib/iomenu.py +574 -0
- package/python3.6.2/lib/python3.6/idlelib/macosx.py +252 -0
- package/python3.6.2/lib/python3.6/idlelib/mainmenu.py +108 -0
- package/python3.6.2/lib/python3.6/idlelib/multicall.py +445 -0
- package/python3.6.2/lib/python3.6/idlelib/outwin.py +188 -0
- package/python3.6.2/lib/python3.6/idlelib/paragraph.py +195 -0
- package/python3.6.2/lib/python3.6/idlelib/parenmatch.py +183 -0
- package/python3.6.2/lib/python3.6/idlelib/pathbrowser.py +111 -0
- package/python3.6.2/lib/python3.6/idlelib/percolator.py +104 -0
- package/python3.6.2/lib/python3.6/idlelib/pyparse.py +617 -0
- package/python3.6.2/lib/python3.6/idlelib/pyshell.py +1542 -0
- package/python3.6.2/lib/python3.6/idlelib/query.py +308 -0
- package/python3.6.2/lib/python3.6/idlelib/redirector.py +175 -0
- package/python3.6.2/lib/python3.6/idlelib/replace.py +243 -0
- package/python3.6.2/lib/python3.6/idlelib/rpc.py +627 -0
- package/python3.6.2/lib/python3.6/idlelib/rstrip.py +29 -0
- package/python3.6.2/lib/python3.6/idlelib/run.py +525 -0
- package/python3.6.2/lib/python3.6/idlelib/runscript.py +195 -0
- package/python3.6.2/lib/python3.6/idlelib/scrolledlist.py +147 -0
- package/python3.6.2/lib/python3.6/idlelib/search.py +102 -0
- package/python3.6.2/lib/python3.6/idlelib/searchbase.py +200 -0
- package/python3.6.2/lib/python3.6/idlelib/searchengine.py +236 -0
- package/python3.6.2/lib/python3.6/idlelib/stackviewer.py +152 -0
- package/python3.6.2/lib/python3.6/idlelib/statusbar.py +46 -0
- package/python3.6.2/lib/python3.6/idlelib/textview.py +136 -0
- package/python3.6.2/lib/python3.6/idlelib/tooltip.py +96 -0
- package/python3.6.2/lib/python3.6/idlelib/tree.py +467 -0
- package/python3.6.2/lib/python3.6/idlelib/undo.py +366 -0
- package/python3.6.2/lib/python3.6/idlelib/windows.py +92 -0
- package/python3.6.2/lib/python3.6/idlelib/zoomheight.py +48 -0
- package/python3.6.2/lib/python3.6/idlelib/zzdummy.py +42 -0
- package/python3.6.2/lib/python3.6/imaplib.py +1609 -0
- package/python3.6.2/lib/python3.6/imghdr.py +168 -0
- package/python3.6.2/lib/python3.6/imp.py +346 -0
- package/python3.6.2/lib/python3.6/importlib/__init__.py +173 -0
- package/python3.6.2/lib/python3.6/importlib/_bootstrap.py +1161 -0
- package/python3.6.2/lib/python3.6/importlib/_bootstrap_external.py +1443 -0
- package/python3.6.2/lib/python3.6/importlib/abc.py +329 -0
- package/python3.6.2/lib/python3.6/importlib/machinery.py +21 -0
- package/python3.6.2/lib/python3.6/importlib/util.py +288 -0
- package/python3.6.2/lib/python3.6/inspect.py +3098 -0
- package/python3.6.2/lib/python3.6/io.py +99 -0
- package/python3.6.2/lib/python3.6/ipaddress.py +2299 -0
- package/python3.6.2/lib/python3.6/json/__init__.py +367 -0
- package/python3.6.2/lib/python3.6/json/decoder.py +358 -0
- package/python3.6.2/lib/python3.6/json/encoder.py +441 -0
- package/python3.6.2/lib/python3.6/json/scanner.py +73 -0
- package/python3.6.2/lib/python3.6/json/tool.py +50 -0
- package/python3.6.2/lib/python3.6/keyword.py +94 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_asyncio.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_bisect.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_blake2.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_bz2.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_cn.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_hk.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_iso2022.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_jp.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_kr.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_codecs_tw.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_crypt.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_csv.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_ctypes.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_ctypes_test.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_curses.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_curses_panel.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_datetime.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_elementtree.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_hashlib.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_heapq.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_json.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_lsprof.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_md5.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_multibytecodec.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_multiprocessing.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_opcode.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_pickle.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_random.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sha1.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sha256.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sha3.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sha512.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_socket.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_ssl.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_struct.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_arm-linux-androideabi.py +743 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_testbuffer.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_testcapi.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_testimportmultiple.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/_testmultiphase.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/array.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/audioop.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/binascii.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/cmath.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/fcntl.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/grp.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/math.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/mmap.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/ossaudiodev.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/parser.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/pyexpat.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/readline.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/resource.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/select.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/syslog.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/termios.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/unicodedata.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/xxlimited.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib-dynload/zlib.cpython-36m-arm-linux-androideabi.so +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/__init__.py +1 -0
- package/python3.6.2/lib/python3.6/lib2to3/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/lib2to3/btm_matcher.py +168 -0
- package/python3.6.2/lib/python3.6/lib2to3/btm_utils.py +281 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixer_base.py +186 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixer_util.py +453 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/__init__.py +1 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_apply.py +70 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_asserts.py +34 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_basestring.py +14 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_buffer.py +22 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_dict.py +106 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_except.py +93 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exec.py +39 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_execfile.py +52 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exitfunc.py +72 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_filter.py +90 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_funcattrs.py +21 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_future.py +22 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_getcwdu.py +19 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_has_key.py +109 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_idioms.py +152 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_import.py +99 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports.py +145 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports2.py +16 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_input.py +26 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_intern.py +41 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_isinstance.py +52 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools.py +43 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools_imports.py +57 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_long.py +19 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_map.py +110 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_metaclass.py +228 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_methodattrs.py +24 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ne.py +23 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_next.py +103 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_nonzero.py +21 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_numliterals.py +28 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_operator.py +98 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_paren.py +44 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_print.py +87 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raise.py +90 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raw_input.py +17 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reduce.py +35 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reload.py +38 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_renames.py +70 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_repr.py +23 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_set_literal.py +53 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_standarderror.py +18 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_sys_exc.py +30 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_throw.py +56 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_tuple_params.py +175 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_types.py +61 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_unicode.py +42 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_urllib.py +196 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ws_comma.py +39 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xrange.py +73 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xreadlines.py +25 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_zip.py +46 -0
- package/python3.6.2/lib/python3.6/lib2to3/main.py +268 -0
- package/python3.6.2/lib/python3.6/lib2to3/patcomp.py +205 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/__init__.py +4 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/conv.py +257 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/driver.py +160 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/grammar.py +207 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/literals.py +60 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/parse.py +201 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/pgen.py +386 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/token.py +85 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/tokenize.py +590 -0
- package/python3.6.2/lib/python3.6/lib2to3/pygram.py +40 -0
- package/python3.6.2/lib/python3.6/lib2to3/pytree.py +854 -0
- package/python3.6.2/lib/python3.6/lib2to3/refactor.py +744 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/__init__.py +9 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/README +6 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/bom.py +2 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/crlf.py +3 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/different_encoding.py +6 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/false_encoding.py +2 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/bad_order.py +5 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/parrot_example.py +2 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/infinite_recursion.py +2669 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/py2_test_grammar.py +974 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/data/py3_test_grammar.py +945 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/pytree_idempotency.py +94 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/support.py +52 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_all_fixers.py +27 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_fixers.py +4640 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_main.py +139 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_parser.py +472 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_pytree.py +472 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_refactor.py +316 -0
- package/python3.6.2/lib/python3.6/lib2to3/tests/test_util.py +591 -0
- package/python3.6.2/lib/python3.6/linecache.py +177 -0
- package/python3.6.2/lib/python3.6/locale.py +1684 -0
- package/python3.6.2/lib/python3.6/logging/__init__.py +2019 -0
- package/python3.6.2/lib/python3.6/logging/config.py +933 -0
- package/python3.6.2/lib/python3.6/logging/handlers.py +1505 -0
- package/python3.6.2/lib/python3.6/lzma.py +347 -0
- package/python3.6.2/lib/python3.6/macpath.py +211 -0
- package/python3.6.2/lib/python3.6/macurl2path.py +77 -0
- package/python3.6.2/lib/python3.6/mailbox.py +2146 -0
- package/python3.6.2/lib/python3.6/mailcap.py +275 -0
- package/python3.6.2/lib/python3.6/mimetypes.py +598 -0
- package/python3.6.2/lib/python3.6/modulefinder.py +633 -0
- package/python3.6.2/lib/python3.6/msilib/__init__.py +483 -0
- package/python3.6.2/lib/python3.6/msilib/schema.py +1007 -0
- package/python3.6.2/lib/python3.6/msilib/sequence.py +126 -0
- package/python3.6.2/lib/python3.6/msilib/text.py +129 -0
- package/python3.6.2/lib/python3.6/multiprocessing/__init__.py +38 -0
- package/python3.6.2/lib/python3.6/multiprocessing/connection.py +953 -0
- package/python3.6.2/lib/python3.6/multiprocessing/context.py +357 -0
- package/python3.6.2/lib/python3.6/multiprocessing/dummy/__init__.py +119 -0
- package/python3.6.2/lib/python3.6/multiprocessing/dummy/connection.py +73 -0
- package/python3.6.2/lib/python3.6/multiprocessing/forkserver.py +266 -0
- package/python3.6.2/lib/python3.6/multiprocessing/heap.py +254 -0
- package/python3.6.2/lib/python3.6/multiprocessing/managers.py +1160 -0
- package/python3.6.2/lib/python3.6/multiprocessing/pool.py +803 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_fork.py +86 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_forkserver.py +68 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_posix.py +68 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_win32.py +98 -0
- package/python3.6.2/lib/python3.6/multiprocessing/process.py +336 -0
- package/python3.6.2/lib/python3.6/multiprocessing/queues.py +347 -0
- package/python3.6.2/lib/python3.6/multiprocessing/reduction.py +274 -0
- package/python3.6.2/lib/python3.6/multiprocessing/resource_sharer.py +158 -0
- package/python3.6.2/lib/python3.6/multiprocessing/semaphore_tracker.py +157 -0
- package/python3.6.2/lib/python3.6/multiprocessing/sharedctypes.py +239 -0
- package/python3.6.2/lib/python3.6/multiprocessing/spawn.py +286 -0
- package/python3.6.2/lib/python3.6/multiprocessing/synchronize.py +406 -0
- package/python3.6.2/lib/python3.6/multiprocessing/util.py +406 -0
- package/python3.6.2/lib/python3.6/netrc.py +142 -0
- package/python3.6.2/lib/python3.6/nntplib.py +1147 -0
- package/python3.6.2/lib/python3.6/ntpath.py +692 -0
- package/python3.6.2/lib/python3.6/nturl2path.py +68 -0
- package/python3.6.2/lib/python3.6/numbers.py +389 -0
- package/python3.6.2/lib/python3.6/opcode.py +215 -0
- package/python3.6.2/lib/python3.6/operator.py +464 -0
- package/python3.6.2/lib/python3.6/optparse.py +1681 -0
- package/python3.6.2/lib/python3.6/os.py +1069 -0
- package/python3.6.2/lib/python3.6/pathlib.py +1434 -0
- package/python3.6.2/lib/python3.6/pdb.py +1694 -0
- package/python3.6.2/lib/python3.6/pickle.py +1605 -0
- package/python3.6.2/lib/python3.6/pickletools.py +2840 -0
- package/python3.6.2/lib/python3.6/pipes.py +247 -0
- package/python3.6.2/lib/python3.6/pkgutil.py +634 -0
- package/python3.6.2/lib/python3.6/platform.py +1400 -0
- package/python3.6.2/lib/python3.6/plistlib.py +1043 -0
- package/python3.6.2/lib/python3.6/poplib.py +478 -0
- package/python3.6.2/lib/python3.6/posixpath.py +520 -0
- package/python3.6.2/lib/python3.6/pprint.py +597 -0
- package/python3.6.2/lib/python3.6/profile.py +589 -0
- package/python3.6.2/lib/python3.6/pstats.py +697 -0
- package/python3.6.2/lib/python3.6/pty.py +170 -0
- package/python3.6.2/lib/python3.6/py_compile.py +186 -0
- package/python3.6.2/lib/python3.6/pyclbr.py +352 -0
- package/python3.6.2/lib/python3.6/pydoc.py +2663 -0
- package/python3.6.2/lib/python3.6/pydoc_data/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/pydoc_data/topics.py +12951 -0
- package/python3.6.2/lib/python3.6/queue.py +246 -0
- package/python3.6.2/lib/python3.6/quopri.py +242 -0
- package/python3.6.2/lib/python3.6/random.py +768 -0
- package/python3.6.2/lib/python3.6/re.py +381 -0
- package/python3.6.2/lib/python3.6/reprlib.py +164 -0
- package/python3.6.2/lib/python3.6/rlcompleter.py +205 -0
- package/python3.6.2/lib/python3.6/runpy.py +294 -0
- package/python3.6.2/lib/python3.6/sched.py +170 -0
- package/python3.6.2/lib/python3.6/secrets.py +73 -0
- package/python3.6.2/lib/python3.6/selectors.py +611 -0
- package/python3.6.2/lib/python3.6/shelve.py +243 -0
- package/python3.6.2/lib/python3.6/shlex.py +335 -0
- package/python3.6.2/lib/python3.6/shutil.py +1153 -0
- package/python3.6.2/lib/python3.6/signal.py +79 -0
- package/python3.6.2/lib/python3.6/site.py +598 -0
- package/python3.6.2/lib/python3.6/smtpd.py +965 -0
- package/python3.6.2/lib/python3.6/smtplib.py +1115 -0
- package/python3.6.2/lib/python3.6/sndhdr.py +257 -0
- package/python3.6.2/lib/python3.6/socket.py +750 -0
- package/python3.6.2/lib/python3.6/socketserver.py +793 -0
- package/python3.6.2/lib/python3.6/sqlite3/__init__.py +23 -0
- package/python3.6.2/lib/python3.6/sqlite3/dbapi2.py +89 -0
- package/python3.6.2/lib/python3.6/sqlite3/dump.py +70 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/dbapi.py +938 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/dump.py +81 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/factory.py +293 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/hooks.py +264 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/regression.py +410 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/transactions.py +214 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/types.py +421 -0
- package/python3.6.2/lib/python3.6/sqlite3/test/userfunctions.py +473 -0
- package/python3.6.2/lib/python3.6/sre_compile.py +580 -0
- package/python3.6.2/lib/python3.6/sre_constants.py +233 -0
- package/python3.6.2/lib/python3.6/sre_parse.py +973 -0
- package/python3.6.2/lib/python3.6/ssl.py +1228 -0
- package/python3.6.2/lib/python3.6/stat.py +178 -0
- package/python3.6.2/lib/python3.6/statistics.py +670 -0
- package/python3.6.2/lib/python3.6/string.py +309 -0
- package/python3.6.2/lib/python3.6/stringprep.py +272 -0
- package/python3.6.2/lib/python3.6/struct.py +15 -0
- package/python3.6.2/lib/python3.6/subprocess.py +1590 -0
- package/python3.6.2/lib/python3.6/sunau.py +525 -0
- package/python3.6.2/lib/python3.6/symbol.py +115 -0
- package/python3.6.2/lib/python3.6/symtable.py +238 -0
- package/python3.6.2/lib/python3.6/sysconfig.py +721 -0
- package/python3.6.2/lib/python3.6/tabnanny.py +332 -0
- package/python3.6.2/lib/python3.6/tarfile.py +2547 -0
- package/python3.6.2/lib/python3.6/telnetlib.py +675 -0
- package/python3.6.2/lib/python3.6/tempfile.py +811 -0
- package/python3.6.2/lib/python3.6/test/Sine-1000Hz-300ms.aif +0 -0
- package/python3.6.2/lib/python3.6/test/__init__.py +1 -0
- package/python3.6.2/lib/python3.6/test/__main__.py +2 -0
- package/python3.6.2/lib/python3.6/test/_test_multiprocessing.py +4458 -0
- package/python3.6.2/lib/python3.6/test/allsans.pem +37 -0
- package/python3.6.2/lib/python3.6/test/ann_module.py +53 -0
- package/python3.6.2/lib/python3.6/test/ann_module2.py +36 -0
- package/python3.6.2/lib/python3.6/test/ann_module3.py +18 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-alaw.aifc +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.aiff +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.wav +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.aiff +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.wav +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.aiff +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.wav +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.aiff +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.wav +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-ulaw.aifc +0 -0
- package/python3.6.2/lib/python3.6/test/audiodata/pluck-ulaw.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiotest.au +0 -0
- package/python3.6.2/lib/python3.6/test/audiotests.py +329 -0
- package/python3.6.2/lib/python3.6/test/autotest.py +5 -0
- package/python3.6.2/lib/python3.6/test/bad_coding.py +1 -0
- package/python3.6.2/lib/python3.6/test/bad_coding2.py +2 -0
- package/python3.6.2/lib/python3.6/test/badcert.pem +36 -0
- package/python3.6.2/lib/python3.6/test/badkey.pem +40 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_3131.py +2 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future10.py +3 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future3.py +10 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future4.py +10 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future5.py +12 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future6.py +10 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future7.py +11 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future8.py +10 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_future9.py +10 -0
- package/python3.6.2/lib/python3.6/test/badsyntax_pep3120.py +1 -0
- package/python3.6.2/lib/python3.6/test/bisect.py +167 -0
- package/python3.6.2/lib/python3.6/test/bytecode_helper.py +41 -0
- package/python3.6.2/lib/python3.6/test/capath/4e1295a3.0 +14 -0
- package/python3.6.2/lib/python3.6/test/capath/5ed36f99.0 +41 -0
- package/python3.6.2/lib/python3.6/test/capath/6e88d7b8.0 +14 -0
- package/python3.6.2/lib/python3.6/test/capath/99d0fa06.0 +41 -0
- package/python3.6.2/lib/python3.6/test/capath/b1930218.0 +21 -0
- package/python3.6.2/lib/python3.6/test/capath/ceff1710.0 +21 -0
- package/python3.6.2/lib/python3.6/test/cfgparser.1 +3 -0
- package/python3.6.2/lib/python3.6/test/cfgparser.2 +537 -0
- package/python3.6.2/lib/python3.6/test/cfgparser.3 +69 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/big5-utf8.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/big5.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/big5hkscs-utf8.txt +2 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/big5hkscs.txt +2 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/cp949-utf8.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/cp949.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jisx0213.txt +8 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jp-utf8.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jp.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_kr-utf8.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/euc_kr.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gb18030-utf8.txt +15 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gb18030.txt +15 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gb2312-utf8.txt +6 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gb2312.txt +6 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gbk-utf8.txt +14 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/gbk.txt +14 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/hz-utf8.txt +2 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/hz.txt +2 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_jp.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_kr.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/johab-utf8.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/johab.txt +9 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jis-utf8.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jis.txt +7 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
- package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jisx0213.txt +8 -0
- package/python3.6.2/lib/python3.6/test/cmath_testcases.txt +2511 -0
- package/python3.6.2/lib/python3.6/test/coding20731.py +4 -0
- package/python3.6.2/lib/python3.6/test/crashers/README +20 -0
- package/python3.6.2/lib/python3.6/test/crashers/bogus_code_obj.py +19 -0
- package/python3.6.2/lib/python3.6/test/crashers/gc_inspection.py +32 -0
- package/python3.6.2/lib/python3.6/test/crashers/infinite_loop_re.py +16 -0
- package/python3.6.2/lib/python3.6/test/crashers/mutation_inside_cyclegc.py +31 -0
- package/python3.6.2/lib/python3.6/test/crashers/recursive_call.py +15 -0
- package/python3.6.2/lib/python3.6/test/crashers/trace_at_recursion_limit.py +27 -0
- package/python3.6.2/lib/python3.6/test/crashers/underlying_dict.py +20 -0
- package/python3.6.2/lib/python3.6/test/curses_tests.py +46 -0
- package/python3.6.2/lib/python3.6/test/data/README +2 -0
- package/python3.6.2/lib/python3.6/test/datetimetester.py +4929 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/abs.decTest +161 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/add.decTest +2716 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/and.decTest +338 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/base.decTest +1411 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/clamp.decTest +211 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/class.decTest +131 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/compare.decTest +758 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/comparetotal.decTest +798 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/comparetotmag.decTest +790 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/copy.decTest +86 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/copyabs.decTest +86 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/copynegate.decTest +86 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/copysign.decTest +177 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAbs.decTest +126 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAdd.decTest +1328 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAnd.decTest +347 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddBase.decTest +1104 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCanonical.decTest +357 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddClass.decTest +76 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompare.decTest +744 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareSig.decTest +647 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareTotal.decTest +706 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopy.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopyAbs.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopyNegate.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopySign.decTest +175 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddDivide.decTest +863 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddDivideInt.decTest +449 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddEncode.decTest +495 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddFMA.decTest +1698 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddInvert.decTest +202 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddLogB.decTest +159 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMax.decTest +322 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMaxMag.decTest +304 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMin.decTest +309 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMinMag.decTest +293 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMinus.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMultiply.decTest +553 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextMinus.decTest +126 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextPlus.decTest +124 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextToward.decTest +374 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddOr.decTest +292 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddPlus.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddQuantize.decTest +833 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddReduce.decTest +182 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRemainder.decTest +600 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRemainderNear.decTest +629 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRotate.decTest +262 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddSameQuantum.decTest +389 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddScaleB.decTest +243 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddShift.decTest +262 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddSubtract.decTest +629 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddToIntegral.decTest +257 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ddXor.decTest +337 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/decDouble.decTest +65 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/decQuad.decTest +65 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/decSingle.decTest +25 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/divide.decTest +854 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/divideint.decTest +486 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAbs.decTest +126 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAdd.decTest +1215 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAnd.decTest +420 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqBase.decTest +1081 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCanonical.decTest +372 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqClass.decTest +77 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompare.decTest +753 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareSig.decTest +647 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareTotal.decTest +706 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopy.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopyAbs.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopyNegate.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopySign.decTest +175 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqDivide.decTest +808 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqDivideInt.decTest +453 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqEncode.decTest +477 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqFMA.decTest +1786 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqInvert.decTest +245 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqLogB.decTest +160 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMax.decTest +322 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMaxMag.decTest +304 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMin.decTest +309 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMinMag.decTest +293 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMinus.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMultiply.decTest +589 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextMinus.decTest +126 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextPlus.decTest +124 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextToward.decTest +375 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqOr.decTest +401 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqPlus.decTest +88 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqQuantize.decTest +836 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqReduce.decTest +183 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRemainder.decTest +597 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRemainderNear.decTest +631 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRotate.decTest +298 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqSameQuantum.decTest +389 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqScaleB.decTest +260 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqShift.decTest +298 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqSubtract.decTest +635 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqToIntegral.decTest +257 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dqXor.decTest +410 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dsBase.decTest +1062 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/dsEncode.decTest +372 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/exp.decTest +674 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/extra.decTest +2830 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/fma.decTest +3426 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/inexact.decTest +215 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/invert.decTest +176 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/ln.decTest +611 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/log10.decTest +551 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/logb.decTest +188 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/max.decTest +424 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/maxmag.decTest +404 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/min.decTest +407 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/minmag.decTest +390 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/minus.decTest +182 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/multiply.decTest +731 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/nextminus.decTest +148 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/nextplus.decTest +150 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/nexttoward.decTest +426 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/or.decTest +334 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/plus.decTest +195 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/power.decTest +1624 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/powersqrt.decTest +2970 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/quantize.decTest +948 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/randomBound32.decTest +2443 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/randoms.decTest +4030 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/reduce.decTest +234 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/remainder.decTest +640 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/remainderNear.decTest +572 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/rescale.decTest +764 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/rotate.decTest +247 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/rounding.decTest +1303 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/samequantum.decTest +389 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/scaleb.decTest +209 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/shift.decTest +250 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/squareroot.decTest +3834 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/subtract.decTest +873 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/testall.decTest +87 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/tointegral.decTest +241 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/tointegralx.decTest +255 -0
- package/python3.6.2/lib/python3.6/test/decimaltestdata/xor.decTest +335 -0
- package/python3.6.2/lib/python3.6/test/dh1024.pem +7 -0
- package/python3.6.2/lib/python3.6/test/dis_module.py +5 -0
- package/python3.6.2/lib/python3.6/test/doctest_aliases.py +13 -0
- package/python3.6.2/lib/python3.6/test/double_const.py +30 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/assert_usable.d +5 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/assert_usable.stp +5 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.d +31 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.d.expected +18 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.py +30 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.stp +41 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.stp.expected +14 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/gc.d +18 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/gc.d.expected +8 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/gc.py +13 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/gc.stp +26 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/gc.stp.expected +8 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/instance.py +24 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/line.d +7 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/line.d.expected +20 -0
- package/python3.6.2/lib/python3.6/test/dtracedata/line.py +17 -0
- package/python3.6.2/lib/python3.6/test/eintrdata/eintr_tester.py +493 -0
- package/python3.6.2/lib/python3.6/test/empty.vbs +1 -0
- package/python3.6.2/lib/python3.6/test/encoded_modules/__init__.py +23 -0
- package/python3.6.2/lib/python3.6/test/encoded_modules/module_iso_8859_1.py +5 -0
- package/python3.6.2/lib/python3.6/test/encoded_modules/module_koi8_r.py +3 -0
- package/python3.6.2/lib/python3.6/test/exception_hierarchy.txt +64 -0
- package/python3.6.2/lib/python3.6/test/final_a.py +19 -0
- package/python3.6.2/lib/python3.6/test/final_b.py +19 -0
- package/python3.6.2/lib/python3.6/test/floating_points.txt +1028 -0
- package/python3.6.2/lib/python3.6/test/fork_wait.py +91 -0
- package/python3.6.2/lib/python3.6/test/formatfloat_testcases.txt +355 -0
- package/python3.6.2/lib/python3.6/test/future_test1.py +11 -0
- package/python3.6.2/lib/python3.6/test/future_test2.py +10 -0
- package/python3.6.2/lib/python3.6/test/gdb_sample.py +12 -0
- package/python3.6.2/lib/python3.6/test/ieee754.txt +185 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.bmp +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.exr +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.gif +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.jpg +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.pbm +3 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.pgm +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.png +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.ppm +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.ras +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.sgi +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.tiff +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.webp +0 -0
- package/python3.6.2/lib/python3.6/test/imghdrdata/python.xbm +6 -0
- package/python3.6.2/lib/python3.6/test/imp_dummy.py +3 -0
- package/python3.6.2/lib/python3.6/test/inspect_fodder.py +76 -0
- package/python3.6.2/lib/python3.6/test/inspect_fodder2.py +139 -0
- package/python3.6.2/lib/python3.6/test/keycert.passwd.pem +33 -0
- package/python3.6.2/lib/python3.6/test/keycert.pem +31 -0
- package/python3.6.2/lib/python3.6/test/keycert2.pem +31 -0
- package/python3.6.2/lib/python3.6/test/keycert3.pem +73 -0
- package/python3.6.2/lib/python3.6/test/keycert4.pem +73 -0
- package/python3.6.2/lib/python3.6/test/leakers/README.txt +32 -0
- package/python3.6.2/lib/python3.6/test/leakers/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/test/leakers/test_ctypes.py +15 -0
- package/python3.6.2/lib/python3.6/test/leakers/test_selftype.py +13 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/cmdline.py +387 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/main.py +584 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/refleak.py +294 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/runtest.py +254 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/runtest_mp.py +244 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/save_env.py +284 -0
- package/python3.6.2/lib/python3.6/test/libregrtest/setup.py +140 -0
- package/python3.6.2/lib/python3.6/test/list_tests.py +618 -0
- package/python3.6.2/lib/python3.6/test/lock_tests.py +936 -0
- package/python3.6.2/lib/python3.6/test/mailcap.txt +39 -0
- package/python3.6.2/lib/python3.6/test/make_ssl_certs.py +216 -0
- package/python3.6.2/lib/python3.6/test/mapping_tests.py +657 -0
- package/python3.6.2/lib/python3.6/test/math_testcases.txt +633 -0
- package/python3.6.2/lib/python3.6/test/memory_watchdog.py +28 -0
- package/python3.6.2/lib/python3.6/test/mime.types +1445 -0
- package/python3.6.2/lib/python3.6/test/mock_socket.py +159 -0
- package/python3.6.2/lib/python3.6/test/mod_generics_cache.py +53 -0
- package/python3.6.2/lib/python3.6/test/mp_fork_bomb.py +18 -0
- package/python3.6.2/lib/python3.6/test/mp_preload.py +18 -0
- package/python3.6.2/lib/python3.6/test/multibytecodec_support.py +384 -0
- package/python3.6.2/lib/python3.6/test/nokia.pem +31 -0
- package/python3.6.2/lib/python3.6/test/nullbytecert.pem +90 -0
- package/python3.6.2/lib/python3.6/test/nullcert.pem +0 -0
- package/python3.6.2/lib/python3.6/test/outstanding_bugs.py +18 -0
- package/python3.6.2/lib/python3.6/test/pickletester.py +2922 -0
- package/python3.6.2/lib/python3.6/test/profilee.py +115 -0
- package/python3.6.2/lib/python3.6/test/pstats.pck +0 -0
- package/python3.6.2/lib/python3.6/test/pycacert.pem +78 -0
- package/python3.6.2/lib/python3.6/test/pycakey.pem +28 -0
- package/python3.6.2/lib/python3.6/test/pyclbr_input.py +33 -0
- package/python3.6.2/lib/python3.6/test/pydoc_mod.py +37 -0
- package/python3.6.2/lib/python3.6/test/pydocfodder.py +216 -0
- package/python3.6.2/lib/python3.6/test/pystone.py +277 -0
- package/python3.6.2/lib/python3.6/test/pythoninfo.py +486 -0
- package/python3.6.2/lib/python3.6/test/randv2_32.pck +633 -0
- package/python3.6.2/lib/python3.6/test/randv2_64.pck +633 -0
- package/python3.6.2/lib/python3.6/test/randv3.pck +633 -0
- package/python3.6.2/lib/python3.6/test/re_tests.py +670 -0
- package/python3.6.2/lib/python3.6/test/regrtest.py +50 -0
- package/python3.6.2/lib/python3.6/test/relimport.py +1 -0
- package/python3.6.2/lib/python3.6/test/reperf.py +23 -0
- package/python3.6.2/lib/python3.6/test/revocation.crl +11 -0
- package/python3.6.2/lib/python3.6/test/sample_doctest.py +76 -0
- package/python3.6.2/lib/python3.6/test/sample_doctest_no_docstrings.py +12 -0
- package/python3.6.2/lib/python3.6/test/sample_doctest_no_doctests.py +15 -0
- package/python3.6.2/lib/python3.6/test/selfsigned_pythontestdotnet.pem +16 -0
- package/python3.6.2/lib/python3.6/test/seq_tests.py +414 -0
- package/python3.6.2/lib/python3.6/test/sgml_input.html +212 -0
- package/python3.6.2/lib/python3.6/test/signalinterproctester.py +84 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/README +5 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.8svx +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.aifc +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.aiff +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.au +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.hcom +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.sndt +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.voc +0 -0
- package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.wav +0 -0
- package/python3.6.2/lib/python3.6/test/sortperf.py +169 -0
- package/python3.6.2/lib/python3.6/test/ssl_cert.pem +15 -0
- package/python3.6.2/lib/python3.6/test/ssl_key.passwd.pem +18 -0
- package/python3.6.2/lib/python3.6/test/ssl_key.pem +16 -0
- package/python3.6.2/lib/python3.6/test/ssl_servers.py +209 -0
- package/python3.6.2/lib/python3.6/test/ssltests.py +37 -0
- package/python3.6.2/lib/python3.6/test/string_tests.py +1383 -0
- package/python3.6.2/lib/python3.6/test/subprocessdata/fd_status.py +34 -0
- package/python3.6.2/lib/python3.6/test/subprocessdata/input_reader.py +7 -0
- package/python3.6.2/lib/python3.6/test/subprocessdata/qcat.py +7 -0
- package/python3.6.2/lib/python3.6/test/subprocessdata/qgrep.py +10 -0
- package/python3.6.2/lib/python3.6/test/subprocessdata/sigchild_ignore.py +15 -0
- package/python3.6.2/lib/python3.6/test/support/__init__.py +2706 -0
- package/python3.6.2/lib/python3.6/test/support/script_helper.py +259 -0
- package/python3.6.2/lib/python3.6/test/test___all__.py +109 -0
- package/python3.6.2/lib/python3.6/test/test___future__.py +61 -0
- package/python3.6.2/lib/python3.6/test/test__locale.py +193 -0
- package/python3.6.2/lib/python3.6/test/test__opcode.py +20 -0
- package/python3.6.2/lib/python3.6/test/test__osx_support.py +276 -0
- package/python3.6.2/lib/python3.6/test/test_abc.py +420 -0
- package/python3.6.2/lib/python3.6/test/test_abstract_numbers.py +44 -0
- package/python3.6.2/lib/python3.6/test/test_aifc.py +399 -0
- package/python3.6.2/lib/python3.6/test/test_argparse.py +5006 -0
- package/python3.6.2/lib/python3.6/test/test_array.py +1388 -0
- package/python3.6.2/lib/python3.6/test/test_asdl_parser.py +122 -0
- package/python3.6.2/lib/python3.6/test/test_ast.py +1170 -0
- package/python3.6.2/lib/python3.6/test/test_asyncgen.py +1044 -0
- package/python3.6.2/lib/python3.6/test/test_asynchat.py +308 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/__init__.py +10 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/echo.py +8 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/echo2.py +6 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/echo3.py +11 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/keycert3.pem +73 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/pycacert.pem +78 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/ssl_cert.pem +15 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/ssl_key.pem +16 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_base_events.py +1761 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_events.py +2791 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_futures.py +692 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_locks.py +943 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_pep492.py +232 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_proactor_events.py +593 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_queues.py +643 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_selector_events.py +1833 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_sslproto.py +134 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_streams.py +868 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_subprocess.py +532 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_tasks.py +2598 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_transports.py +91 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_unix_events.py +1621 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_windows_events.py +164 -0
- package/python3.6.2/lib/python3.6/test/test_asyncio/test_windows_utils.py +182 -0
- package/python3.6.2/lib/python3.6/test/test_asyncore.py +847 -0
- package/python3.6.2/lib/python3.6/test/test_atexit.py +192 -0
- package/python3.6.2/lib/python3.6/test/test_audioop.py +565 -0
- package/python3.6.2/lib/python3.6/test/test_augassign.py +326 -0
- package/python3.6.2/lib/python3.6/test/test_base64.py +681 -0
- package/python3.6.2/lib/python3.6/test/test_baseexception.py +183 -0
- package/python3.6.2/lib/python3.6/test/test_bigaddrspace.py +101 -0
- package/python3.6.2/lib/python3.6/test/test_bigmem.py +1256 -0
- package/python3.6.2/lib/python3.6/test/test_binascii.py +373 -0
- package/python3.6.2/lib/python3.6/test/test_binhex.py +55 -0
- package/python3.6.2/lib/python3.6/test/test_binop.py +441 -0
- package/python3.6.2/lib/python3.6/test/test_bisect.py +328 -0
- package/python3.6.2/lib/python3.6/test/test_bool.py +368 -0
- package/python3.6.2/lib/python3.6/test/test_buffer.py +4396 -0
- package/python3.6.2/lib/python3.6/test/test_bufio.py +73 -0
- package/python3.6.2/lib/python3.6/test/test_builtin.py +1851 -0
- package/python3.6.2/lib/python3.6/test/test_bytes.py +1759 -0
- package/python3.6.2/lib/python3.6/test/test_bz2.py +1002 -0
- package/python3.6.2/lib/python3.6/test/test_calendar.py +848 -0
- package/python3.6.2/lib/python3.6/test/test_call.py +302 -0
- package/python3.6.2/lib/python3.6/test/test_capi.py +753 -0
- package/python3.6.2/lib/python3.6/test/test_cgi.py +539 -0
- package/python3.6.2/lib/python3.6/test/test_cgitb.py +67 -0
- package/python3.6.2/lib/python3.6/test/test_charmapcodec.py +53 -0
- package/python3.6.2/lib/python3.6/test/test_class.py +599 -0
- package/python3.6.2/lib/python3.6/test/test_cmath.py +643 -0
- package/python3.6.2/lib/python3.6/test/test_cmd.py +243 -0
- package/python3.6.2/lib/python3.6/test/test_cmd_line.py +494 -0
- package/python3.6.2/lib/python3.6/test/test_cmd_line_script.py +648 -0
- package/python3.6.2/lib/python3.6/test/test_code.py +367 -0
- package/python3.6.2/lib/python3.6/test/test_code_module.py +154 -0
- package/python3.6.2/lib/python3.6/test/test_codeccallbacks.py +1074 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_cn.py +96 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_hk.py +22 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_iso2022.py +41 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_jp.py +126 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_kr.py +69 -0
- package/python3.6.2/lib/python3.6/test/test_codecencodings_tw.py +22 -0
- package/python3.6.2/lib/python3.6/test/test_codecmaps_cn.py +26 -0
- package/python3.6.2/lib/python3.6/test/test_codecmaps_hk.py +15 -0
- package/python3.6.2/lib/python3.6/test/test_codecmaps_jp.py +60 -0
- package/python3.6.2/lib/python3.6/test/test_codecmaps_kr.py +37 -0
- package/python3.6.2/lib/python3.6/test/test_codecmaps_tw.py +27 -0
- package/python3.6.2/lib/python3.6/test/test_codecs.py +3272 -0
- package/python3.6.2/lib/python3.6/test/test_codeop.py +299 -0
- package/python3.6.2/lib/python3.6/test/test_collections.py +1926 -0
- package/python3.6.2/lib/python3.6/test/test_colorsys.py +100 -0
- package/python3.6.2/lib/python3.6/test/test_compare.py +124 -0
- package/python3.6.2/lib/python3.6/test/test_compile.py +720 -0
- package/python3.6.2/lib/python3.6/test/test_compileall.py +547 -0
- package/python3.6.2/lib/python3.6/test/test_complex.py +688 -0
- package/python3.6.2/lib/python3.6/test/test_concurrent_futures.py +836 -0
- package/python3.6.2/lib/python3.6/test/test_configparser.py +2096 -0
- package/python3.6.2/lib/python3.6/test/test_contains.py +114 -0
- package/python3.6.2/lib/python3.6/test/test_contextlib.py +990 -0
- package/python3.6.2/lib/python3.6/test/test_copy.py +888 -0
- package/python3.6.2/lib/python3.6/test/test_copyreg.py +126 -0
- package/python3.6.2/lib/python3.6/test/test_coroutines.py +2151 -0
- package/python3.6.2/lib/python3.6/test/test_cprofile.py +98 -0
- package/python3.6.2/lib/python3.6/test/test_crashers.py +37 -0
- package/python3.6.2/lib/python3.6/test/test_crypt.py +45 -0
- package/python3.6.2/lib/python3.6/test/test_csv.py +1175 -0
- package/python3.6.2/lib/python3.6/test/test_ctypes.py +9 -0
- package/python3.6.2/lib/python3.6/test/test_curses.py +549 -0
- package/python3.6.2/lib/python3.6/test/test_datetime.py +57 -0
- package/python3.6.2/lib/python3.6/test/test_dbm.py +192 -0
- package/python3.6.2/lib/python3.6/test/test_dbm_dumb.py +286 -0
- package/python3.6.2/lib/python3.6/test/test_dbm_gnu.py +97 -0
- package/python3.6.2/lib/python3.6/test/test_dbm_ndbm.py +52 -0
- package/python3.6.2/lib/python3.6/test/test_decimal.py +5707 -0
- package/python3.6.2/lib/python3.6/test/test_decorators.py +304 -0
- package/python3.6.2/lib/python3.6/test/test_defaultdict.py +187 -0
- package/python3.6.2/lib/python3.6/test/test_deque.py +1059 -0
- package/python3.6.2/lib/python3.6/test/test_descr.py +5452 -0
- package/python3.6.2/lib/python3.6/test/test_descrtut.py +486 -0
- package/python3.6.2/lib/python3.6/test/test_devpoll.py +145 -0
- package/python3.6.2/lib/python3.6/test/test_dict.py +1217 -0
- package/python3.6.2/lib/python3.6/test/test_dict_version.py +186 -0
- package/python3.6.2/lib/python3.6/test/test_dictcomps.py +86 -0
- package/python3.6.2/lib/python3.6/test/test_dictviews.py +272 -0
- package/python3.6.2/lib/python3.6/test/test_difflib.py +478 -0
- package/python3.6.2/lib/python3.6/test/test_difflib_expect.html +526 -0
- package/python3.6.2/lib/python3.6/test/test_dis.py +960 -0
- package/python3.6.2/lib/python3.6/test/test_distutils.py +18 -0
- package/python3.6.2/lib/python3.6/test/test_doctest.py +2962 -0
- package/python3.6.2/lib/python3.6/test/test_doctest.txt +17 -0
- package/python3.6.2/lib/python3.6/test/test_doctest2.py +123 -0
- package/python3.6.2/lib/python3.6/test/test_doctest2.txt +14 -0
- package/python3.6.2/lib/python3.6/test/test_doctest3.txt +5 -0
- package/python3.6.2/lib/python3.6/test/test_doctest4.txt +11 -0
- package/python3.6.2/lib/python3.6/test/test_docxmlrpc.py +198 -0
- package/python3.6.2/lib/python3.6/test/test_dtrace.py +178 -0
- package/python3.6.2/lib/python3.6/test/test_dummy_thread.py +256 -0
- package/python3.6.2/lib/python3.6/test/test_dummy_threading.py +60 -0
- package/python3.6.2/lib/python3.6/test/test_dynamic.py +138 -0
- package/python3.6.2/lib/python3.6/test/test_dynamicclassattribute.py +300 -0
- package/python3.6.2/lib/python3.6/test/test_eintr.py +22 -0
- package/python3.6.2/lib/python3.6/test/test_email/__init__.py +166 -0
- package/python3.6.2/lib/python3.6/test/test_email/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/PyBanner048.gif +0 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/audiotest.au +0 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_01.txt +19 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_02.txt +136 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_03.txt +16 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_04.txt +37 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_05.txt +28 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_06.txt +33 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_07.txt +83 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_08.txt +24 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_09.txt +24 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_10.txt +39 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_11.txt +7 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_12.txt +36 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_12a.txt +38 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_13.txt +94 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_14.txt +23 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_15.txt +52 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_16.txt +123 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_17.txt +12 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_18.txt +6 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_19.txt +43 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_20.txt +22 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_21.txt +20 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_22.txt +46 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_23.txt +8 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_24.txt +10 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_25.txt +117 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_26.txt +46 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_27.txt +15 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_28.txt +25 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_29.txt +22 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_30.txt +23 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_31.txt +15 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_32.txt +14 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_33.txt +29 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_34.txt +19 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_35.txt +4 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_36.txt +40 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_37.txt +22 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_38.txt +101 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_39.txt +83 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_40.txt +10 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_41.txt +8 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_42.txt +20 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_43.txt +217 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_44.txt +33 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_45.txt +33 -0
- package/python3.6.2/lib/python3.6/test/test_email/data/msg_46.txt +23 -0
- package/python3.6.2/lib/python3.6/test/test_email/test__encoded_words.py +192 -0
- package/python3.6.2/lib/python3.6/test/test_email/test__header_value_parser.py +2723 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_asian_codecs.py +81 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_contentmanager.py +796 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_defect_handling.py +320 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_email.py +5402 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_generator.py +296 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_headerregistry.py +1653 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_inversion.py +70 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_message.py +803 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_parser.py +110 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_pickleable.py +76 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_policy.py +346 -0
- package/python3.6.2/lib/python3.6/test/test_email/test_utils.py +163 -0
- package/python3.6.2/lib/python3.6/test/test_email/torture_test.py +133 -0
- package/python3.6.2/lib/python3.6/test/test_ensurepip.py +310 -0
- package/python3.6.2/lib/python3.6/test/test_enum.py +2618 -0
- package/python3.6.2/lib/python3.6/test/test_enumerate.py +269 -0
- package/python3.6.2/lib/python3.6/test/test_eof.py +28 -0
- package/python3.6.2/lib/python3.6/test/test_epoll.py +255 -0
- package/python3.6.2/lib/python3.6/test/test_errno.py +35 -0
- package/python3.6.2/lib/python3.6/test/test_exception_hierarchy.py +204 -0
- package/python3.6.2/lib/python3.6/test/test_exception_variations.py +176 -0
- package/python3.6.2/lib/python3.6/test/test_exceptions.py +1288 -0
- package/python3.6.2/lib/python3.6/test/test_extcall.py +465 -0
- package/python3.6.2/lib/python3.6/test/test_faulthandler.py +817 -0
- package/python3.6.2/lib/python3.6/test/test_fcntl.py +152 -0
- package/python3.6.2/lib/python3.6/test/test_file.py +329 -0
- package/python3.6.2/lib/python3.6/test/test_file_eintr.py +252 -0
- package/python3.6.2/lib/python3.6/test/test_filecmp.py +217 -0
- package/python3.6.2/lib/python3.6/test/test_fileinput.py +1015 -0
- package/python3.6.2/lib/python3.6/test/test_fileio.py +595 -0
- package/python3.6.2/lib/python3.6/test/test_finalization.py +519 -0
- package/python3.6.2/lib/python3.6/test/test_float.py +1422 -0
- package/python3.6.2/lib/python3.6/test/test_flufl.py +22 -0
- package/python3.6.2/lib/python3.6/test/test_fnmatch.py +128 -0
- package/python3.6.2/lib/python3.6/test/test_fork1.py +112 -0
- package/python3.6.2/lib/python3.6/test/test_format.py +494 -0
- package/python3.6.2/lib/python3.6/test/test_fractions.py +635 -0
- package/python3.6.2/lib/python3.6/test/test_frame.py +165 -0
- package/python3.6.2/lib/python3.6/test/test_fstring.py +1038 -0
- package/python3.6.2/lib/python3.6/test/test_ftplib.py +1091 -0
- package/python3.6.2/lib/python3.6/test/test_funcattrs.py +377 -0
- package/python3.6.2/lib/python3.6/test/test_functools.py +2083 -0
- package/python3.6.2/lib/python3.6/test/test_future.py +108 -0
- package/python3.6.2/lib/python3.6/test/test_future3.py +26 -0
- package/python3.6.2/lib/python3.6/test/test_future4.py +6 -0
- package/python3.6.2/lib/python3.6/test/test_future5.py +21 -0
- package/python3.6.2/lib/python3.6/test/test_gc.py +1031 -0
- package/python3.6.2/lib/python3.6/test/test_gdb.py +936 -0
- package/python3.6.2/lib/python3.6/test/test_generator_stop.py +34 -0
- package/python3.6.2/lib/python3.6/test/test_generators.py +2232 -0
- package/python3.6.2/lib/python3.6/test/test_genericpath.py +537 -0
- package/python3.6.2/lib/python3.6/test/test_genexps.py +285 -0
- package/python3.6.2/lib/python3.6/test/test_getargs2.py +958 -0
- package/python3.6.2/lib/python3.6/test/test_getopt.py +184 -0
- package/python3.6.2/lib/python3.6/test/test_getpass.py +163 -0
- package/python3.6.2/lib/python3.6/test/test_gettext.py +770 -0
- package/python3.6.2/lib/python3.6/test/test_glob.py +317 -0
- package/python3.6.2/lib/python3.6/test/test_global.py +61 -0
- package/python3.6.2/lib/python3.6/test/test_grammar.py +1417 -0
- package/python3.6.2/lib/python3.6/test/test_grp.py +108 -0
- package/python3.6.2/lib/python3.6/test/test_gzip.py +672 -0
- package/python3.6.2/lib/python3.6/test/test_hash.py +346 -0
- package/python3.6.2/lib/python3.6/test/test_hashlib.py +954 -0
- package/python3.6.2/lib/python3.6/test/test_heapq.py +427 -0
- package/python3.6.2/lib/python3.6/test/test_hmac.py +496 -0
- package/python3.6.2/lib/python3.6/test/test_html.py +103 -0
- package/python3.6.2/lib/python3.6/test/test_htmlparser.py +778 -0
- package/python3.6.2/lib/python3.6/test/test_http_cookiejar.py +1772 -0
- package/python3.6.2/lib/python3.6/test/test_http_cookies.py +472 -0
- package/python3.6.2/lib/python3.6/test/test_httplib.py +1903 -0
- package/python3.6.2/lib/python3.6/test/test_httpservers.py +1060 -0
- package/python3.6.2/lib/python3.6/test/test_idle.py +23 -0
- package/python3.6.2/lib/python3.6/test/test_imaplib.py +998 -0
- package/python3.6.2/lib/python3.6/test/test_imghdr.py +140 -0
- package/python3.6.2/lib/python3.6/test/test_imp.py +416 -0
- package/python3.6.2/lib/python3.6/test/test_import/__init__.py +1199 -0
- package/python3.6.2/lib/python3.6/test/test_import/__main__.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/basic.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/basic2.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/indirect.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/rebinding.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/rebinding2.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpackage.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpkg/subpackage2.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpkg/util.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/util.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/package/__init__.py +2 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/package/submodule.py +0 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/package2/submodule1.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_import/data/package2/submodule2.py +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/abc.py +94 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/builtin/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/builtin/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/builtin/test_finder.py +90 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/builtin/test_loader.py +108 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_case_sensitivity.py +46 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_finder.py +44 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_loader.py +277 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_path_hook.py +31 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/frozen/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/frozen/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/frozen/test_finder.py +84 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/frozen/test_loader.py +225 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test___loader__.py +75 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test___package__.py +163 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_api.py +119 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_caching.py +93 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_fromlist.py +175 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_meta_path.py +125 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_packages.py +110 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_path.py +257 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_relative_imports.py +232 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/__init__.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/test_case_sensitivity.py +85 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/test_file_loader.py +602 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/test_finder.py +236 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/test_path_hook.py +41 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/source/test_source_encoding.py +175 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_abc.py +953 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_api.py +449 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_lazy.py +145 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_locks.py +175 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_namespace_pkgs.py +321 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_spec.py +819 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_util.py +805 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/test_windows.py +109 -0
- package/python3.6.2/lib/python3.6/test/test_importlib/util.py +388 -0
- package/python3.6.2/lib/python3.6/test/test_index.py +275 -0
- package/python3.6.2/lib/python3.6/test/test_inspect.py +3725 -0
- package/python3.6.2/lib/python3.6/test/test_int.py +518 -0
- package/python3.6.2/lib/python3.6/test/test_int_literal.py +143 -0
- package/python3.6.2/lib/python3.6/test/test_io.py +4054 -0
- package/python3.6.2/lib/python3.6/test/test_ioctl.py +91 -0
- package/python3.6.2/lib/python3.6/test/test_ipaddress.py +1972 -0
- package/python3.6.2/lib/python3.6/test/test_isinstance.py +280 -0
- package/python3.6.2/lib/python3.6/test/test_iter.py +1016 -0
- package/python3.6.2/lib/python3.6/test/test_iterlen.py +228 -0
- package/python3.6.2/lib/python3.6/test/test_itertools.py +2340 -0
- package/python3.6.2/lib/python3.6/test/test_json/__init__.py +56 -0
- package/python3.6.2/lib/python3.6/test/test_json/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_decode.py +97 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_default.py +12 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_dump.py +68 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_encode_basestring_ascii.py +48 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_enum.py +120 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_fail.py +216 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_float.py +33 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_indent.py +67 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_pass1.py +75 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_pass2.py +18 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_pass3.py +24 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_recursion.py +100 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_scanstring.py +141 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_separators.py +50 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_speedups.py +71 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_tool.py +107 -0
- package/python3.6.2/lib/python3.6/test/test_json/test_unicode.py +98 -0
- package/python3.6.2/lib/python3.6/test/test_keyword.py +138 -0
- package/python3.6.2/lib/python3.6/test/test_keywordonlyarg.py +189 -0
- package/python3.6.2/lib/python3.6/test/test_kqueue.py +263 -0
- package/python3.6.2/lib/python3.6/test/test_largefile.py +180 -0
- package/python3.6.2/lib/python3.6/test/test_lib2to3.py +5 -0
- package/python3.6.2/lib/python3.6/test/test_linecache.py +242 -0
- package/python3.6.2/lib/python3.6/test/test_list.py +155 -0
- package/python3.6.2/lib/python3.6/test/test_listcomps.py +148 -0
- package/python3.6.2/lib/python3.6/test/test_locale.py +587 -0
- package/python3.6.2/lib/python3.6/test/test_logging.py +4442 -0
- package/python3.6.2/lib/python3.6/test/test_long.py +1322 -0
- package/python3.6.2/lib/python3.6/test/test_longexp.py +10 -0
- package/python3.6.2/lib/python3.6/test/test_lzma.py +1764 -0
- package/python3.6.2/lib/python3.6/test/test_macpath.py +149 -0
- package/python3.6.2/lib/python3.6/test/test_macurl2path.py +31 -0
- package/python3.6.2/lib/python3.6/test/test_mailbox.py +2288 -0
- package/python3.6.2/lib/python3.6/test/test_mailcap.py +239 -0
- package/python3.6.2/lib/python3.6/test/test_marshal.py +556 -0
- package/python3.6.2/lib/python3.6/test/test_math.py +1422 -0
- package/python3.6.2/lib/python3.6/test/test_memoryio.py +842 -0
- package/python3.6.2/lib/python3.6/test/test_memoryview.py +537 -0
- package/python3.6.2/lib/python3.6/test/test_metaclass.py +265 -0
- package/python3.6.2/lib/python3.6/test/test_mimetypes.py +111 -0
- package/python3.6.2/lib/python3.6/test/test_minidom.py +1574 -0
- package/python3.6.2/lib/python3.6/test/test_mmap.py +803 -0
- package/python3.6.2/lib/python3.6/test/test_module.py +244 -0
- package/python3.6.2/lib/python3.6/test/test_modulefinder.py +337 -0
- package/python3.6.2/lib/python3.6/test/test_msilib.py +99 -0
- package/python3.6.2/lib/python3.6/test/test_multibytecodec.py +270 -0
- package/python3.6.2/lib/python3.6/test/test_multiprocessing_fork.py +13 -0
- package/python3.6.2/lib/python3.6/test/test_multiprocessing_forkserver.py +12 -0
- package/python3.6.2/lib/python3.6/test/test_multiprocessing_main_handling.py +290 -0
- package/python3.6.2/lib/python3.6/test/test_multiprocessing_spawn.py +12 -0
- package/python3.6.2/lib/python3.6/test/test_netrc.py +133 -0
- package/python3.6.2/lib/python3.6/test/test_nis.py +39 -0
- package/python3.6.2/lib/python3.6/test/test_nntplib.py +1581 -0
- package/python3.6.2/lib/python3.6/test/test_normalization.py +108 -0
- package/python3.6.2/lib/python3.6/test/test_ntpath.py +539 -0
- package/python3.6.2/lib/python3.6/test/test_numeric_tower.py +202 -0
- package/python3.6.2/lib/python3.6/test/test_opcodes.py +135 -0
- package/python3.6.2/lib/python3.6/test/test_openpty.py +21 -0
- package/python3.6.2/lib/python3.6/test/test_operator.py +609 -0
- package/python3.6.2/lib/python3.6/test/test_optparse.py +1664 -0
- package/python3.6.2/lib/python3.6/test/test_ordered_dict.py +787 -0
- package/python3.6.2/lib/python3.6/test/test_os.py +3548 -0
- package/python3.6.2/lib/python3.6/test/test_ossaudiodev.py +202 -0
- package/python3.6.2/lib/python3.6/test/test_osx_env.py +34 -0
- package/python3.6.2/lib/python3.6/test/test_parser.py +905 -0
- package/python3.6.2/lib/python3.6/test/test_pathlib.py +2252 -0
- package/python3.6.2/lib/python3.6/test/test_pdb.py +1124 -0
- package/python3.6.2/lib/python3.6/test/test_peepholer.py +325 -0
- package/python3.6.2/lib/python3.6/test/test_pickle.py +514 -0
- package/python3.6.2/lib/python3.6/test/test_pickletools.py +99 -0
- package/python3.6.2/lib/python3.6/test/test_pipes.py +203 -0
- package/python3.6.2/lib/python3.6/test/test_pkg.py +295 -0
- package/python3.6.2/lib/python3.6/test/test_pkgimport.py +80 -0
- package/python3.6.2/lib/python3.6/test/test_pkgutil.py +491 -0
- package/python3.6.2/lib/python3.6/test/test_platform.py +370 -0
- package/python3.6.2/lib/python3.6/test/test_plistlib.py +662 -0
- package/python3.6.2/lib/python3.6/test/test_poll.py +238 -0
- package/python3.6.2/lib/python3.6/test/test_popen.py +65 -0
- package/python3.6.2/lib/python3.6/test/test_poplib.py +520 -0
- package/python3.6.2/lib/python3.6/test/test_posix.py +1298 -0
- package/python3.6.2/lib/python3.6/test/test_posixpath.py +680 -0
- package/python3.6.2/lib/python3.6/test/test_pow.py +123 -0
- package/python3.6.2/lib/python3.6/test/test_pprint.py +1012 -0
- package/python3.6.2/lib/python3.6/test/test_print.py +193 -0
- package/python3.6.2/lib/python3.6/test/test_profile.py +187 -0
- package/python3.6.2/lib/python3.6/test/test_property.py +272 -0
- package/python3.6.2/lib/python3.6/test/test_pstats.py +38 -0
- package/python3.6.2/lib/python3.6/test/test_pty.py +316 -0
- package/python3.6.2/lib/python3.6/test/test_pulldom.py +342 -0
- package/python3.6.2/lib/python3.6/test/test_pwd.py +125 -0
- package/python3.6.2/lib/python3.6/test/test_py_compile.py +127 -0
- package/python3.6.2/lib/python3.6/test/test_pyclbr.py +176 -0
- package/python3.6.2/lib/python3.6/test/test_pydoc.py +1107 -0
- package/python3.6.2/lib/python3.6/test/test_pyexpat.py +733 -0
- package/python3.6.2/lib/python3.6/test/test_queue.py +362 -0
- package/python3.6.2/lib/python3.6/test/test_quopri.py +210 -0
- package/python3.6.2/lib/python3.6/test/test_raise.py +419 -0
- package/python3.6.2/lib/python3.6/test/test_random.py +939 -0
- package/python3.6.2/lib/python3.6/test/test_range.py +693 -0
- package/python3.6.2/lib/python3.6/test/test_re.py +2087 -0
- package/python3.6.2/lib/python3.6/test/test_readline.py +309 -0
- package/python3.6.2/lib/python3.6/test/test_regrtest.py +967 -0
- package/python3.6.2/lib/python3.6/test/test_repl.py +62 -0
- package/python3.6.2/lib/python3.6/test/test_reprlib.py +405 -0
- package/python3.6.2/lib/python3.6/test/test_resource.py +180 -0
- package/python3.6.2/lib/python3.6/test/test_richcmp.py +355 -0
- package/python3.6.2/lib/python3.6/test/test_rlcompleter.py +141 -0
- package/python3.6.2/lib/python3.6/test/test_robotparser.py +335 -0
- package/python3.6.2/lib/python3.6/test/test_runpy.py +749 -0
- package/python3.6.2/lib/python3.6/test/test_sax.py +1273 -0
- package/python3.6.2/lib/python3.6/test/test_sched.py +204 -0
- package/python3.6.2/lib/python3.6/test/test_scope.py +761 -0
- package/python3.6.2/lib/python3.6/test/test_script_helper.py +110 -0
- package/python3.6.2/lib/python3.6/test/test_secrets.py +124 -0
- package/python3.6.2/lib/python3.6/test/test_select.py +82 -0
- package/python3.6.2/lib/python3.6/test/test_selectors.py +526 -0
- package/python3.6.2/lib/python3.6/test/test_set.py +1903 -0
- package/python3.6.2/lib/python3.6/test/test_setcomps.py +151 -0
- package/python3.6.2/lib/python3.6/test/test_shelve.py +228 -0
- package/python3.6.2/lib/python3.6/test/test_shlex.py +318 -0
- package/python3.6.2/lib/python3.6/test/test_shutil.py +1925 -0
- package/python3.6.2/lib/python3.6/test/test_signal.py +1093 -0
- package/python3.6.2/lib/python3.6/test/test_site.py +595 -0
- package/python3.6.2/lib/python3.6/test/test_slice.py +255 -0
- package/python3.6.2/lib/python3.6/test/test_smtpd.py +1013 -0
- package/python3.6.2/lib/python3.6/test/test_smtplib.py +1292 -0
- package/python3.6.2/lib/python3.6/test/test_smtpnet.py +83 -0
- package/python3.6.2/lib/python3.6/test/test_sndhdr.py +37 -0
- package/python3.6.2/lib/python3.6/test/test_socket.py +5648 -0
- package/python3.6.2/lib/python3.6/test/test_socketserver.py +505 -0
- package/python3.6.2/lib/python3.6/test/test_sort.py +265 -0
- package/python3.6.2/lib/python3.6/test/test_source_encoding.py +225 -0
- package/python3.6.2/lib/python3.6/test/test_spwd.py +75 -0
- package/python3.6.2/lib/python3.6/test/test_sqlite.py +24 -0
- package/python3.6.2/lib/python3.6/test/test_ssl.py +3663 -0
- package/python3.6.2/lib/python3.6/test/test_startfile.py +34 -0
- package/python3.6.2/lib/python3.6/test/test_stat.py +234 -0
- package/python3.6.2/lib/python3.6/test/test_statistics.py +1992 -0
- package/python3.6.2/lib/python3.6/test/test_strftime.py +206 -0
- package/python3.6.2/lib/python3.6/test/test_string.py +439 -0
- package/python3.6.2/lib/python3.6/test/test_string_literals.py +249 -0
- package/python3.6.2/lib/python3.6/test/test_stringprep.py +92 -0
- package/python3.6.2/lib/python3.6/test/test_strptime.py +673 -0
- package/python3.6.2/lib/python3.6/test/test_strtod.py +433 -0
- package/python3.6.2/lib/python3.6/test/test_struct.py +756 -0
- package/python3.6.2/lib/python3.6/test/test_structmembers.py +144 -0
- package/python3.6.2/lib/python3.6/test/test_structseq.py +126 -0
- package/python3.6.2/lib/python3.6/test/test_subclassinit.py +284 -0
- package/python3.6.2/lib/python3.6/test/test_subprocess.py +3005 -0
- package/python3.6.2/lib/python3.6/test/test_sunau.py +121 -0
- package/python3.6.2/lib/python3.6/test/test_sundry.py +57 -0
- package/python3.6.2/lib/python3.6/test/test_super.py +347 -0
- package/python3.6.2/lib/python3.6/test/test_support.py +459 -0
- package/python3.6.2/lib/python3.6/test/test_symbol.py +54 -0
- package/python3.6.2/lib/python3.6/test/test_symtable.py +193 -0
- package/python3.6.2/lib/python3.6/test/test_syntax.py +618 -0
- package/python3.6.2/lib/python3.6/test/test_sys.py +1270 -0
- package/python3.6.2/lib/python3.6/test/test_sys_setprofile.py +376 -0
- package/python3.6.2/lib/python3.6/test/test_sys_settrace.py +854 -0
- package/python3.6.2/lib/python3.6/test/test_sysconfig.py +445 -0
- package/python3.6.2/lib/python3.6/test/test_syslog.py +40 -0
- package/python3.6.2/lib/python3.6/test/test_tarfile.py +2635 -0
- package/python3.6.2/lib/python3.6/test/test_tcl.py +715 -0
- package/python3.6.2/lib/python3.6/test/test_telnetlib.py +401 -0
- package/python3.6.2/lib/python3.6/test/test_tempfile.py +1458 -0
- package/python3.6.2/lib/python3.6/test/test_textwrap.py +981 -0
- package/python3.6.2/lib/python3.6/test/test_thread.py +269 -0
- package/python3.6.2/lib/python3.6/test/test_threaded_import.py +254 -0
- package/python3.6.2/lib/python3.6/test/test_threadedtempfile.py +62 -0
- package/python3.6.2/lib/python3.6/test/test_threading.py +1170 -0
- package/python3.6.2/lib/python3.6/test/test_threading_local.py +220 -0
- package/python3.6.2/lib/python3.6/test/test_threadsignals.py +227 -0
- package/python3.6.2/lib/python3.6/test/test_time.py +1000 -0
- package/python3.6.2/lib/python3.6/test/test_timeit.py +381 -0
- package/python3.6.2/lib/python3.6/test/test_timeout.py +303 -0
- package/python3.6.2/lib/python3.6/test/test_tix.py +32 -0
- package/python3.6.2/lib/python3.6/test/test_tk.py +15 -0
- package/python3.6.2/lib/python3.6/test/test_tokenize.py +1590 -0
- package/python3.6.2/lib/python3.6/test/test_tools/__init__.py +24 -0
- package/python3.6.2/lib/python3.6/test/test_tools/__main__.py +4 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_fixcid.py +92 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_gprof2html.py +35 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_i18n.py +72 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_md5sum.py +76 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_pdeps.py +32 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_pindent.py +339 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_reindent.py +35 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_sundry.py +53 -0
- package/python3.6.2/lib/python3.6/test/test_tools/test_unparse.py +313 -0
- package/python3.6.2/lib/python3.6/test/test_trace.py +391 -0
- package/python3.6.2/lib/python3.6/test/test_traceback.py +1111 -0
- package/python3.6.2/lib/python3.6/test/test_tracemalloc.py +994 -0
- package/python3.6.2/lib/python3.6/test/test_ttk_guionly.py +34 -0
- package/python3.6.2/lib/python3.6/test/test_ttk_textonly.py +13 -0
- package/python3.6.2/lib/python3.6/test/test_tuple.py +221 -0
- package/python3.6.2/lib/python3.6/test/test_turtle.py +436 -0
- package/python3.6.2/lib/python3.6/test/test_typechecks.py +71 -0
- package/python3.6.2/lib/python3.6/test/test_types.py +1550 -0
- package/python3.6.2/lib/python3.6/test/test_typing.py +2577 -0
- package/python3.6.2/lib/python3.6/test/test_ucn.py +237 -0
- package/python3.6.2/lib/python3.6/test/test_unary.py +53 -0
- package/python3.6.2/lib/python3.6/test/test_unicode.py +2894 -0
- package/python3.6.2/lib/python3.6/test/test_unicode_file.py +140 -0
- package/python3.6.2/lib/python3.6/test/test_unicode_file_functions.py +195 -0
- package/python3.6.2/lib/python3.6/test/test_unicode_identifiers.py +31 -0
- package/python3.6.2/lib/python3.6/test/test_unicodedata.py +316 -0
- package/python3.6.2/lib/python3.6/test/test_unittest.py +16 -0
- package/python3.6.2/lib/python3.6/test/test_univnewlines.py +123 -0
- package/python3.6.2/lib/python3.6/test/test_unpack.py +151 -0
- package/python3.6.2/lib/python3.6/test/test_unpack_ex.py +365 -0
- package/python3.6.2/lib/python3.6/test/test_urllib.py +1572 -0
- package/python3.6.2/lib/python3.6/test/test_urllib2.py +1930 -0
- package/python3.6.2/lib/python3.6/test/test_urllib2_localnet.py +679 -0
- package/python3.6.2/lib/python3.6/test/test_urllib2net.py +329 -0
- package/python3.6.2/lib/python3.6/test/test_urllib_response.py +59 -0
- package/python3.6.2/lib/python3.6/test/test_urllibnet.py +218 -0
- package/python3.6.2/lib/python3.6/test/test_urlparse.py +1122 -0
- package/python3.6.2/lib/python3.6/test/test_userdict.py +220 -0
- package/python3.6.2/lib/python3.6/test/test_userlist.py +63 -0
- package/python3.6.2/lib/python3.6/test/test_userstring.py +44 -0
- package/python3.6.2/lib/python3.6/test/test_utf8source.py +43 -0
- package/python3.6.2/lib/python3.6/test/test_uu.py +260 -0
- package/python3.6.2/lib/python3.6/test/test_uuid.py +511 -0
- package/python3.6.2/lib/python3.6/test/test_venv.py +433 -0
- package/python3.6.2/lib/python3.6/test/test_wait3.py +38 -0
- package/python3.6.2/lib/python3.6/test/test_wait4.py +39 -0
- package/python3.6.2/lib/python3.6/test/test_warnings/__init__.py +1216 -0
- package/python3.6.2/lib/python3.6/test/test_warnings/__main__.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_warnings/data/import_warning.py +3 -0
- package/python3.6.2/lib/python3.6/test/test_warnings/data/stacklevel.py +9 -0
- package/python3.6.2/lib/python3.6/test/test_wave.py +113 -0
- package/python3.6.2/lib/python3.6/test/test_weakref.py +1952 -0
- package/python3.6.2/lib/python3.6/test/test_weakset.py +439 -0
- package/python3.6.2/lib/python3.6/test/test_webbrowser.py +217 -0
- package/python3.6.2/lib/python3.6/test/test_winconsoleio.py +191 -0
- package/python3.6.2/lib/python3.6/test/test_winreg.py +498 -0
- package/python3.6.2/lib/python3.6/test/test_winsound.py +150 -0
- package/python3.6.2/lib/python3.6/test/test_with.py +746 -0
- package/python3.6.2/lib/python3.6/test/test_wsgiref.py +785 -0
- package/python3.6.2/lib/python3.6/test/test_xdrlib.py +77 -0
- package/python3.6.2/lib/python3.6/test/test_xml_dom_minicompat.py +138 -0
- package/python3.6.2/lib/python3.6/test/test_xml_etree.py +3166 -0
- package/python3.6.2/lib/python3.6/test/test_xml_etree_c.py +188 -0
- package/python3.6.2/lib/python3.6/test/test_xmlrpc.py +1415 -0
- package/python3.6.2/lib/python3.6/test/test_xmlrpc_net.py +32 -0
- package/python3.6.2/lib/python3.6/test/test_yield_from.py +1052 -0
- package/python3.6.2/lib/python3.6/test/test_zipapp.py +349 -0
- package/python3.6.2/lib/python3.6/test/test_zipfile.py +2241 -0
- package/python3.6.2/lib/python3.6/test/test_zipfile64.py +155 -0
- package/python3.6.2/lib/python3.6/test/test_zipimport.py +759 -0
- package/python3.6.2/lib/python3.6/test/test_zipimport_support.py +244 -0
- package/python3.6.2/lib/python3.6/test/test_zlib.py +898 -0
- package/python3.6.2/lib/python3.6/test/testcodec.py +48 -0
- package/python3.6.2/lib/python3.6/test/testtar.tar +0 -0
- package/python3.6.2/lib/python3.6/test/tf_inherit_check.py +27 -0
- package/python3.6.2/lib/python3.6/test/threaded_import_hangers.py +45 -0
- package/python3.6.2/lib/python3.6/test/time_hashlib.py +88 -0
- package/python3.6.2/lib/python3.6/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
- package/python3.6.2/lib/python3.6/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
- package/python3.6.2/lib/python3.6/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
- package/python3.6.2/lib/python3.6/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
- package/python3.6.2/lib/python3.6/test/tokenize_tests.txt +189 -0
- package/python3.6.2/lib/python3.6/test/tracedmodules/__init__.py +4 -0
- package/python3.6.2/lib/python3.6/test/tracedmodules/testmod.py +9 -0
- package/python3.6.2/lib/python3.6/test/win_console_handler.py +49 -0
- package/python3.6.2/lib/python3.6/test/wrongcert.pem +32 -0
- package/python3.6.2/lib/python3.6/test/xmltestdata/expat224_utf8_bug.xml +2 -0
- package/python3.6.2/lib/python3.6/test/xmltestdata/simple-ns.xml +7 -0
- package/python3.6.2/lib/python3.6/test/xmltestdata/simple.xml +6 -0
- package/python3.6.2/lib/python3.6/test/xmltestdata/test.xml +115 -0
- package/python3.6.2/lib/python3.6/test/xmltestdata/test.xml.out +115 -0
- package/python3.6.2/lib/python3.6/test/xmltests.py +21 -0
- package/python3.6.2/lib/python3.6/test/zip_cp437_header.zip +0 -0
- package/python3.6.2/lib/python3.6/test/zipdir.zip +0 -0
- package/python3.6.2/lib/python3.6/textwrap.py +488 -0
- package/python3.6.2/lib/python3.6/this.py +28 -0
- package/python3.6.2/lib/python3.6/threading.py +1357 -0
- package/python3.6.2/lib/python3.6/timeit.py +362 -0
- package/python3.6.2/lib/python3.6/tkinter/__init__.py +4002 -0
- package/python3.6.2/lib/python3.6/tkinter/__main__.py +7 -0
- package/python3.6.2/lib/python3.6/tkinter/colorchooser.py +72 -0
- package/python3.6.2/lib/python3.6/tkinter/commondialog.py +55 -0
- package/python3.6.2/lib/python3.6/tkinter/constants.py +110 -0
- package/python3.6.2/lib/python3.6/tkinter/dialog.py +46 -0
- package/python3.6.2/lib/python3.6/tkinter/dnd.py +321 -0
- package/python3.6.2/lib/python3.6/tkinter/filedialog.py +479 -0
- package/python3.6.2/lib/python3.6/tkinter/font.py +232 -0
- package/python3.6.2/lib/python3.6/tkinter/messagebox.py +134 -0
- package/python3.6.2/lib/python3.6/tkinter/scrolledtext.py +54 -0
- package/python3.6.2/lib/python3.6/tkinter/simpledialog.py +423 -0
- package/python3.6.2/lib/python3.6/tkinter/test/README +14 -0
- package/python3.6.2/lib/python3.6/tkinter/test/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/tkinter/test/runtktests.py +69 -0
- package/python3.6.2/lib/python3.6/tkinter/test/support.py +105 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_font.py +96 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_geometry_managers.py +906 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_images.py +327 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_loadtk.py +46 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_misc.py +55 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_text.py +47 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_variables.py +310 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_widgets.py +1204 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_extensions.py +323 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_functions.py +461 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_style.py +92 -0
- package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_widgets.py +1707 -0
- package/python3.6.2/lib/python3.6/tkinter/test/widget_tests.py +548 -0
- package/python3.6.2/lib/python3.6/tkinter/tix.py +1946 -0
- package/python3.6.2/lib/python3.6/tkinter/ttk.py +1655 -0
- package/python3.6.2/lib/python3.6/token.py +143 -0
- package/python3.6.2/lib/python3.6/tokenize.py +793 -0
- package/python3.6.2/lib/python3.6/trace.py +742 -0
- package/python3.6.2/lib/python3.6/traceback.py +600 -0
- package/python3.6.2/lib/python3.6/tracemalloc.py +524 -0
- package/python3.6.2/lib/python3.6/tty.py +36 -0
- package/python3.6.2/lib/python3.6/turtle.py +4139 -0
- package/python3.6.2/lib/python3.6/turtledemo/__init__.py +14 -0
- package/python3.6.2/lib/python3.6/turtledemo/__main__.py +386 -0
- package/python3.6.2/lib/python3.6/turtledemo/bytedesign.py +161 -0
- package/python3.6.2/lib/python3.6/turtledemo/chaos.py +59 -0
- package/python3.6.2/lib/python3.6/turtledemo/clock.py +132 -0
- package/python3.6.2/lib/python3.6/turtledemo/colormixer.py +58 -0
- package/python3.6.2/lib/python3.6/turtledemo/forest.py +108 -0
- package/python3.6.2/lib/python3.6/turtledemo/fractalcurves.py +138 -0
- package/python3.6.2/lib/python3.6/turtledemo/lindenmayer.py +119 -0
- package/python3.6.2/lib/python3.6/turtledemo/minimal_hanoi.py +79 -0
- package/python3.6.2/lib/python3.6/turtledemo/nim.py +226 -0
- package/python3.6.2/lib/python3.6/turtledemo/paint.py +54 -0
- package/python3.6.2/lib/python3.6/turtledemo/peace.py +61 -0
- package/python3.6.2/lib/python3.6/turtledemo/penrose.py +181 -0
- package/python3.6.2/lib/python3.6/turtledemo/planet_and_moon.py +111 -0
- package/python3.6.2/lib/python3.6/turtledemo/round_dance.py +86 -0
- package/python3.6.2/lib/python3.6/turtledemo/sorting_animate.py +204 -0
- package/python3.6.2/lib/python3.6/turtledemo/tree.py +63 -0
- package/python3.6.2/lib/python3.6/turtledemo/turtle.cfg +10 -0
- package/python3.6.2/lib/python3.6/turtledemo/two_canvases.py +54 -0
- package/python3.6.2/lib/python3.6/turtledemo/wikipedia.py +65 -0
- package/python3.6.2/lib/python3.6/turtledemo/yinyang.py +49 -0
- package/python3.6.2/lib/python3.6/types.py +266 -0
- package/python3.6.2/lib/python3.6/typing.py +2403 -0
- package/python3.6.2/lib/python3.6/unittest/__init__.py +78 -0
- package/python3.6.2/lib/python3.6/unittest/__main__.py +18 -0
- package/python3.6.2/lib/python3.6/unittest/case.py +1429 -0
- package/python3.6.2/lib/python3.6/unittest/loader.py +508 -0
- package/python3.6.2/lib/python3.6/unittest/main.py +260 -0
- package/python3.6.2/lib/python3.6/unittest/mock.py +2407 -0
- package/python3.6.2/lib/python3.6/unittest/result.py +216 -0
- package/python3.6.2/lib/python3.6/unittest/runner.py +221 -0
- package/python3.6.2/lib/python3.6/unittest/signals.py +71 -0
- package/python3.6.2/lib/python3.6/unittest/suite.py +321 -0
- package/python3.6.2/lib/python3.6/unittest/test/__init__.py +22 -0
- package/python3.6.2/lib/python3.6/unittest/test/__main__.py +18 -0
- package/python3.6.2/lib/python3.6/unittest/test/_test_warnings.py +73 -0
- package/python3.6.2/lib/python3.6/unittest/test/dummy.py +1 -0
- package/python3.6.2/lib/python3.6/unittest/test/support.py +138 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_assertions.py +411 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_break.py +291 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_case.py +1833 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_discovery.py +872 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_functiontestcase.py +148 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_loader.py +1529 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_program.py +414 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_result.py +695 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_runner.py +353 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_setups.py +507 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_skipping.py +260 -0
- package/python3.6.2/lib/python3.6/unittest/test/test_suite.py +447 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/__init__.py +17 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/__main__.py +18 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/support.py +21 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testcallable.py +151 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testhelpers.py +946 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testmagicmethods.py +468 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testmock.py +1569 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testpatch.py +1853 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testsentinel.py +28 -0
- package/python3.6.2/lib/python3.6/unittest/test/testmock/testwith.py +301 -0
- package/python3.6.2/lib/python3.6/unittest/util.py +177 -0
- package/python3.6.2/lib/python3.6/urllib/__init__.py +0 -0
- package/python3.6.2/lib/python3.6/urllib/error.py +77 -0
- package/python3.6.2/lib/python3.6/urllib/parse.py +1021 -0
- package/python3.6.2/lib/python3.6/urllib/request.py +2739 -0
- package/python3.6.2/lib/python3.6/urllib/response.py +80 -0
- package/python3.6.2/lib/python3.6/urllib/robotparser.py +250 -0
- package/python3.6.2/lib/python3.6/uu.py +199 -0
- package/python3.6.2/lib/python3.6/uuid.py +629 -0
- package/python3.6.2/lib/python3.6/venv/__init__.py +425 -0
- package/python3.6.2/lib/python3.6/venv/__main__.py +10 -0
- package/python3.6.2/lib/python3.6/venv/scripts/nt/Activate.ps1 +51 -0
- package/python3.6.2/lib/python3.6/venv/scripts/nt/activate.bat +32 -0
- package/python3.6.2/lib/python3.6/venv/scripts/nt/deactivate.bat +21 -0
- package/python3.6.2/lib/python3.6/warnings.py +526 -0
- package/python3.6.2/lib/python3.6/wave.py +505 -0
- package/python3.6.2/lib/python3.6/weakref.py +632 -0
- package/python3.6.2/lib/python3.6/webbrowser.py +664 -0
- package/python3.6.2/lib/python3.6/wsgiref/__init__.py +23 -0
- package/python3.6.2/lib/python3.6/wsgiref/handlers.py +557 -0
- package/python3.6.2/lib/python3.6/wsgiref/headers.py +184 -0
- package/python3.6.2/lib/python3.6/wsgiref/simple_server.py +164 -0
- package/python3.6.2/lib/python3.6/wsgiref/util.py +165 -0
- package/python3.6.2/lib/python3.6/wsgiref/validate.py +443 -0
- package/python3.6.2/lib/python3.6/xdrlib.py +241 -0
- package/python3.6.2/lib/python3.6/xml/__init__.py +20 -0
- package/python3.6.2/lib/python3.6/xml/dom/NodeFilter.py +27 -0
- package/python3.6.2/lib/python3.6/xml/dom/__init__.py +140 -0
- package/python3.6.2/lib/python3.6/xml/dom/domreg.py +97 -0
- package/python3.6.2/lib/python3.6/xml/dom/expatbuilder.py +965 -0
- package/python3.6.2/lib/python3.6/xml/dom/minicompat.py +109 -0
- package/python3.6.2/lib/python3.6/xml/dom/minidom.py +1981 -0
- package/python3.6.2/lib/python3.6/xml/dom/pulldom.py +342 -0
- package/python3.6.2/lib/python3.6/xml/dom/xmlbuilder.py +410 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementInclude.py +143 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementPath.py +314 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementTree.py +1656 -0
- package/python3.6.2/lib/python3.6/xml/etree/__init__.py +33 -0
- package/python3.6.2/lib/python3.6/xml/etree/cElementTree.py +3 -0
- package/python3.6.2/lib/python3.6/xml/parsers/__init__.py +8 -0
- package/python3.6.2/lib/python3.6/xml/parsers/expat.py +8 -0
- package/python3.6.2/lib/python3.6/xml/sax/__init__.py +107 -0
- package/python3.6.2/lib/python3.6/xml/sax/_exceptions.py +131 -0
- package/python3.6.2/lib/python3.6/xml/sax/expatreader.py +446 -0
- package/python3.6.2/lib/python3.6/xml/sax/handler.py +342 -0
- package/python3.6.2/lib/python3.6/xml/sax/saxutils.py +368 -0
- package/python3.6.2/lib/python3.6/xml/sax/xmlreader.py +380 -0
- package/python3.6.2/lib/python3.6/xmlrpc/__init__.py +1 -0
- package/python3.6.2/lib/python3.6/xmlrpc/client.py +1518 -0
- package/python3.6.2/lib/python3.6/xmlrpc/server.py +1002 -0
- package/python3.6.2/lib/python3.6/zipapp.py +201 -0
- package/python3.6.2/lib/python3.6/zipfile.py +2036 -0
- package/python3.6.2/lib/python3.6/LICENSE.txt +0 -254
- package/python3.6.2/lib/python3.6/__future__.pyc +0 -0
- package/python3.6.2/lib/python3.6/__phello__.foo.pyc +0 -0
- package/python3.6.2/lib/python3.6/_bootlocale.pyc +0 -0
- package/python3.6.2/lib/python3.6/_collections_abc.pyc +0 -0
- package/python3.6.2/lib/python3.6/_compat_pickle.pyc +0 -0
- package/python3.6.2/lib/python3.6/_compression.pyc +0 -0
- package/python3.6.2/lib/python3.6/_dummy_thread.pyc +0 -0
- package/python3.6.2/lib/python3.6/_markupbase.pyc +0 -0
- package/python3.6.2/lib/python3.6/_osx_support.pyc +0 -0
- package/python3.6.2/lib/python3.6/_pydecimal.pyc +0 -0
- package/python3.6.2/lib/python3.6/_pyio.pyc +0 -0
- package/python3.6.2/lib/python3.6/_sitebuiltins.pyc +0 -0
- package/python3.6.2/lib/python3.6/_strptime.pyc +0 -0
- package/python3.6.2/lib/python3.6/_threading_local.pyc +0 -0
- package/python3.6.2/lib/python3.6/_weakrefset.pyc +0 -0
- package/python3.6.2/lib/python3.6/abc.pyc +0 -0
- package/python3.6.2/lib/python3.6/aifc.pyc +0 -0
- package/python3.6.2/lib/python3.6/android.pyc +0 -0
- package/python3.6.2/lib/python3.6/antigravity.pyc +0 -0
- package/python3.6.2/lib/python3.6/argparse.pyc +0 -0
- package/python3.6.2/lib/python3.6/ast.pyc +0 -0
- package/python3.6.2/lib/python3.6/asynchat.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/base_events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/base_futures.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/base_subprocess.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/base_tasks.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/compat.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/constants.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/coroutines.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/futures.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/locks.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/log.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/proactor_events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/protocols.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/queues.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/selector_events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/sslproto.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/streams.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/subprocess.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/tasks.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/test_utils.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/transports.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/unix_events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/windows_events.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncio/windows_utils.pyc +0 -0
- package/python3.6.2/lib/python3.6/asyncore.pyc +0 -0
- package/python3.6.2/lib/python3.6/base64.pyc +0 -0
- package/python3.6.2/lib/python3.6/bdb.pyc +0 -0
- package/python3.6.2/lib/python3.6/binhex.pyc +0 -0
- package/python3.6.2/lib/python3.6/bisect.pyc +0 -0
- package/python3.6.2/lib/python3.6/bz2.pyc +0 -0
- package/python3.6.2/lib/python3.6/cProfile.pyc +0 -0
- package/python3.6.2/lib/python3.6/calendar.pyc +0 -0
- package/python3.6.2/lib/python3.6/cgi.pyc +0 -0
- package/python3.6.2/lib/python3.6/cgitb.pyc +0 -0
- package/python3.6.2/lib/python3.6/chunk.pyc +0 -0
- package/python3.6.2/lib/python3.6/cmd.pyc +0 -0
- package/python3.6.2/lib/python3.6/code.pyc +0 -0
- package/python3.6.2/lib/python3.6/codecs.pyc +0 -0
- package/python3.6.2/lib/python3.6/codeop.pyc +0 -0
- package/python3.6.2/lib/python3.6/collections/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/collections/abc.pyc +0 -0
- package/python3.6.2/lib/python3.6/colorsys.pyc +0 -0
- package/python3.6.2/lib/python3.6/compileall.pyc +0 -0
- package/python3.6.2/lib/python3.6/concurrent/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/_base.pyc +0 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/process.pyc +0 -0
- package/python3.6.2/lib/python3.6/concurrent/futures/thread.pyc +0 -0
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Makefile +0 -1808
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup +0 -397
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup.config +0 -10
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup.local +0 -1
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/config.c +0 -114
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/config.c.in +0 -67
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/install-sh +0 -294
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/makesetup +0 -296
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/python-config.pyc +0 -0
- package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/python.o +0 -0
- package/python3.6.2/lib/python3.6/configparser.pyc +0 -0
- package/python3.6.2/lib/python3.6/contextlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/copy.pyc +0 -0
- package/python3.6.2/lib/python3.6/copyreg.pyc +0 -0
- package/python3.6.2/lib/python3.6/crypt.pyc +0 -0
- package/python3.6.2/lib/python3.6/csv.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/_endian.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/dyld.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/dylib.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/macholib/framework.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/ctypes/wintypes.pyc +0 -0
- package/python3.6.2/lib/python3.6/curses/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/curses/ascii.pyc +0 -0
- package/python3.6.2/lib/python3.6/curses/has_key.pyc +0 -0
- package/python3.6.2/lib/python3.6/curses/panel.pyc +0 -0
- package/python3.6.2/lib/python3.6/curses/textpad.pyc +0 -0
- package/python3.6.2/lib/python3.6/datetime.pyc +0 -0
- package/python3.6.2/lib/python3.6/dbm/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/dbm/dumb.pyc +0 -0
- package/python3.6.2/lib/python3.6/dbm/gnu.pyc +0 -0
- package/python3.6.2/lib/python3.6/dbm/ndbm.pyc +0 -0
- package/python3.6.2/lib/python3.6/decimal.pyc +0 -0
- package/python3.6.2/lib/python3.6/difflib.pyc +0 -0
- package/python3.6.2/lib/python3.6/dis.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/_msvccompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/archive_util.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/bcppcompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/ccompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/cmd.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_dumb.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_msi.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_rpm.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/bdist_wininst.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/build.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_clib.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_ext.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_py.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/build_scripts.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/check.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/clean.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/config.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_data.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_egg_info.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_headers.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_lib.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/install_scripts.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/register.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/sdist.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/command/upload.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/config.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/core.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/cygwinccompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/debug.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/dep_util.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/dir_util.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/dist.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/errors.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/extension.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/fancy_getopt.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/file_util.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/filelist.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/log.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/msvc9compiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/msvccompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/spawn.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/sysconfig.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/text_file.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/unixccompiler.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/version.pyc +0 -0
- package/python3.6.2/lib/python3.6/distutils/versionpredicate.pyc +0 -0
- package/python3.6.2/lib/python3.6/doctest.pyc +0 -0
- package/python3.6.2/lib/python3.6/dummy_threading.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/_encoded_words.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/_header_value_parser.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/_parseaddr.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/_policybase.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/base64mime.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/charset.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/contentmanager.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/encoders.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/errors.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/feedparser.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/generator.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/header.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/headerregistry.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/iterators.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/message.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/application.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/audio.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/base.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/image.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/message.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/multipart.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/nonmultipart.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/mime/text.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/parser.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/policy.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/quoprimime.pyc +0 -0
- package/python3.6.2/lib/python3.6/email/utils.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/aliases.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/ascii.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/base64_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/big5.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/big5hkscs.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/bz2_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/charmap.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp037.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1006.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1026.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1125.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1140.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1250.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1251.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1252.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1253.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1254.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1255.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1256.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1257.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp1258.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp273.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp424.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp437.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp500.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp65001.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp720.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp737.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp775.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp850.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp852.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp855.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp856.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp857.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp858.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp860.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp861.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp862.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp863.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp864.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp865.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp866.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp869.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp874.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp875.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp932.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp949.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/cp950.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jis_2004.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jisx0213.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/euc_jp.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/euc_kr.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/gb18030.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/gb2312.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/gbk.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/hex_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/hp_roman8.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/hz.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/idna.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_1.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2004.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_3.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_jp_ext.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso2022_kr.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_1.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_10.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_11.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_13.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_14.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_15.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_16.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_2.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_3.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_4.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_5.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_6.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_7.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_8.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/iso8859_9.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/johab.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_r.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_t.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/koi8_u.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/kz1048.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/latin_1.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_arabic.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_centeuro.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_croatian.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_cyrillic.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_farsi.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_greek.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_iceland.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_latin2.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_roman.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_romanian.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mac_turkish.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/mbcs.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/oem.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/palmos.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/ptcp154.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/punycode.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/quopri_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/raw_unicode_escape.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/rot_13.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jis.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jis_2004.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/shift_jisx0213.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/tis_620.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/undefined.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/unicode_escape.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/unicode_internal.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16_be.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_16_le.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32_be.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_32_le.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_7.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_8.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/utf_8_sig.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/uu_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/encodings/zlib_codec.pyc +0 -0
- package/python3.6.2/lib/python3.6/ensurepip/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/ensurepip/__main__.pyc +0 -0
- package/python3.6.2/lib/python3.6/ensurepip/_uninstall.pyc +0 -0
- package/python3.6.2/lib/python3.6/enum.pyc +0 -0
- package/python3.6.2/lib/python3.6/filecmp.pyc +0 -0
- package/python3.6.2/lib/python3.6/fileinput.pyc +0 -0
- package/python3.6.2/lib/python3.6/fnmatch.pyc +0 -0
- package/python3.6.2/lib/python3.6/formatter.pyc +0 -0
- package/python3.6.2/lib/python3.6/fractions.pyc +0 -0
- package/python3.6.2/lib/python3.6/ftplib.pyc +0 -0
- package/python3.6.2/lib/python3.6/functools.pyc +0 -0
- package/python3.6.2/lib/python3.6/genericpath.pyc +0 -0
- package/python3.6.2/lib/python3.6/getopt.pyc +0 -0
- package/python3.6.2/lib/python3.6/getpass.pyc +0 -0
- package/python3.6.2/lib/python3.6/gettext.pyc +0 -0
- package/python3.6.2/lib/python3.6/glob.pyc +0 -0
- package/python3.6.2/lib/python3.6/gzip.pyc +0 -0
- package/python3.6.2/lib/python3.6/hashlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/heapq.pyc +0 -0
- package/python3.6.2/lib/python3.6/hmac.pyc +0 -0
- package/python3.6.2/lib/python3.6/html/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/html/entities.pyc +0 -0
- package/python3.6.2/lib/python3.6/html/parser.pyc +0 -0
- package/python3.6.2/lib/python3.6/http/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/http/client.pyc +0 -0
- package/python3.6.2/lib/python3.6/http/cookiejar.pyc +0 -0
- package/python3.6.2/lib/python3.6/http/cookies.pyc +0 -0
- package/python3.6.2/lib/python3.6/http/server.pyc +0 -0
- package/python3.6.2/lib/python3.6/imaplib.pyc +0 -0
- package/python3.6.2/lib/python3.6/imghdr.pyc +0 -0
- package/python3.6.2/lib/python3.6/imp.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/_bootstrap.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/_bootstrap_external.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/abc.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/machinery.pyc +0 -0
- package/python3.6.2/lib/python3.6/importlib/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/inspect.pyc +0 -0
- package/python3.6.2/lib/python3.6/io.pyc +0 -0
- package/python3.6.2/lib/python3.6/ipaddress.pyc +0 -0
- package/python3.6.2/lib/python3.6/json/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/json/decoder.pyc +0 -0
- package/python3.6.2/lib/python3.6/json/encoder.pyc +0 -0
- package/python3.6.2/lib/python3.6/json/scanner.pyc +0 -0
- package/python3.6.2/lib/python3.6/json/tool.pyc +0 -0
- package/python3.6.2/lib/python3.6/keyword.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/Grammar3.6.3.final.0.pickle +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/PatternGrammar3.6.3.final.0.pickle +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/__main__.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/btm_matcher.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/btm_utils.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixer_base.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixer_util.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_apply.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_asserts.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_basestring.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_buffer.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_dict.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_except.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exec.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_execfile.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exitfunc.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_filter.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_funcattrs.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_future.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_getcwdu.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_has_key.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_idioms.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_import.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports2.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_input.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_intern.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_isinstance.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools_imports.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_long.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_map.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_metaclass.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_methodattrs.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ne.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_next.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_nonzero.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_numliterals.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_operator.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_paren.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_print.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raise.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raw_input.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reduce.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reload.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_renames.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_repr.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_set_literal.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_standarderror.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_sys_exc.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_throw.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_tuple_params.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_types.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_unicode.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_urllib.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ws_comma.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xrange.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xreadlines.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_zip.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/main.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/patcomp.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/conv.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/driver.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/grammar.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/literals.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/parse.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/pgen.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/token.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pgen2/tokenize.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pygram.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/pytree.pyc +0 -0
- package/python3.6.2/lib/python3.6/lib2to3/refactor.pyc +0 -0
- package/python3.6.2/lib/python3.6/linecache.pyc +0 -0
- package/python3.6.2/lib/python3.6/locale.pyc +0 -0
- package/python3.6.2/lib/python3.6/logging/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/logging/config.pyc +0 -0
- package/python3.6.2/lib/python3.6/logging/handlers.pyc +0 -0
- package/python3.6.2/lib/python3.6/lzma.pyc +0 -0
- package/python3.6.2/lib/python3.6/macpath.pyc +0 -0
- package/python3.6.2/lib/python3.6/macurl2path.pyc +0 -0
- package/python3.6.2/lib/python3.6/mailbox.pyc +0 -0
- package/python3.6.2/lib/python3.6/mailcap.pyc +0 -0
- package/python3.6.2/lib/python3.6/mimetypes.pyc +0 -0
- package/python3.6.2/lib/python3.6/modulefinder.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/connection.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/context.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/dummy/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/dummy/connection.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/forkserver.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/heap.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/managers.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/pool.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_fork.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_forkserver.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_posix.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_win32.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/process.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/queues.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/reduction.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/resource_sharer.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/semaphore_tracker.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/sharedctypes.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/spawn.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/synchronize.pyc +0 -0
- package/python3.6.2/lib/python3.6/multiprocessing/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/netrc.pyc +0 -0
- package/python3.6.2/lib/python3.6/nntplib.pyc +0 -0
- package/python3.6.2/lib/python3.6/ntpath.pyc +0 -0
- package/python3.6.2/lib/python3.6/nturl2path.pyc +0 -0
- package/python3.6.2/lib/python3.6/numbers.pyc +0 -0
- package/python3.6.2/lib/python3.6/opcode.pyc +0 -0
- package/python3.6.2/lib/python3.6/operator.pyc +0 -0
- package/python3.6.2/lib/python3.6/optparse.pyc +0 -0
- package/python3.6.2/lib/python3.6/os.pyc +0 -0
- package/python3.6.2/lib/python3.6/pathlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/pdb.pyc +0 -0
- package/python3.6.2/lib/python3.6/pickle.pyc +0 -0
- package/python3.6.2/lib/python3.6/pickletools.pyc +0 -0
- package/python3.6.2/lib/python3.6/pipes.pyc +0 -0
- package/python3.6.2/lib/python3.6/pkgutil.pyc +0 -0
- package/python3.6.2/lib/python3.6/platform.pyc +0 -0
- package/python3.6.2/lib/python3.6/plistlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/poplib.pyc +0 -0
- package/python3.6.2/lib/python3.6/posixpath.pyc +0 -0
- package/python3.6.2/lib/python3.6/pprint.pyc +0 -0
- package/python3.6.2/lib/python3.6/profile.pyc +0 -0
- package/python3.6.2/lib/python3.6/pstats.pyc +0 -0
- package/python3.6.2/lib/python3.6/pty.pyc +0 -0
- package/python3.6.2/lib/python3.6/py_compile.pyc +0 -0
- package/python3.6.2/lib/python3.6/pyclbr.pyc +0 -0
- package/python3.6.2/lib/python3.6/pydoc.pyc +0 -0
- package/python3.6.2/lib/python3.6/pydoc_data/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/pydoc_data/topics.pyc +0 -0
- package/python3.6.2/lib/python3.6/queue.pyc +0 -0
- package/python3.6.2/lib/python3.6/quopri.pyc +0 -0
- package/python3.6.2/lib/python3.6/random.pyc +0 -0
- package/python3.6.2/lib/python3.6/re.pyc +0 -0
- package/python3.6.2/lib/python3.6/reprlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/rlcompleter.pyc +0 -0
- package/python3.6.2/lib/python3.6/runpy.pyc +0 -0
- package/python3.6.2/lib/python3.6/sched.pyc +0 -0
- package/python3.6.2/lib/python3.6/secrets.pyc +0 -0
- package/python3.6.2/lib/python3.6/selectors.pyc +0 -0
- package/python3.6.2/lib/python3.6/shelve.pyc +0 -0
- package/python3.6.2/lib/python3.6/shlex.pyc +0 -0
- package/python3.6.2/lib/python3.6/shutil.pyc +0 -0
- package/python3.6.2/lib/python3.6/signal.pyc +0 -0
- package/python3.6.2/lib/python3.6/site.pyc +0 -0
- package/python3.6.2/lib/python3.6/smtpd.pyc +0 -0
- package/python3.6.2/lib/python3.6/smtplib.pyc +0 -0
- package/python3.6.2/lib/python3.6/sndhdr.pyc +0 -0
- package/python3.6.2/lib/python3.6/socket.pyc +0 -0
- package/python3.6.2/lib/python3.6/socketserver.pyc +0 -0
- package/python3.6.2/lib/python3.6/sqlite3/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/sqlite3/dbapi2.pyc +0 -0
- package/python3.6.2/lib/python3.6/sqlite3/dump.pyc +0 -0
- package/python3.6.2/lib/python3.6/sre_compile.pyc +0 -0
- package/python3.6.2/lib/python3.6/sre_constants.pyc +0 -0
- package/python3.6.2/lib/python3.6/sre_parse.pyc +0 -0
- package/python3.6.2/lib/python3.6/ssl.pyc +0 -0
- package/python3.6.2/lib/python3.6/stat.pyc +0 -0
- package/python3.6.2/lib/python3.6/statistics.pyc +0 -0
- package/python3.6.2/lib/python3.6/string.pyc +0 -0
- package/python3.6.2/lib/python3.6/stringprep.pyc +0 -0
- package/python3.6.2/lib/python3.6/struct.pyc +0 -0
- package/python3.6.2/lib/python3.6/subprocess.pyc +0 -0
- package/python3.6.2/lib/python3.6/sunau.pyc +0 -0
- package/python3.6.2/lib/python3.6/symbol.pyc +0 -0
- package/python3.6.2/lib/python3.6/symtable.pyc +0 -0
- package/python3.6.2/lib/python3.6/sysconfig.pyc +0 -0
- package/python3.6.2/lib/python3.6/tabnanny.pyc +0 -0
- package/python3.6.2/lib/python3.6/tarfile.pyc +0 -0
- package/python3.6.2/lib/python3.6/telnetlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/tempfile.pyc +0 -0
- package/python3.6.2/lib/python3.6/textwrap.pyc +0 -0
- package/python3.6.2/lib/python3.6/this.pyc +0 -0
- package/python3.6.2/lib/python3.6/threading.pyc +0 -0
- package/python3.6.2/lib/python3.6/timeit.pyc +0 -0
- package/python3.6.2/lib/python3.6/token.pyc +0 -0
- package/python3.6.2/lib/python3.6/tokenize.pyc +0 -0
- package/python3.6.2/lib/python3.6/trace.pyc +0 -0
- package/python3.6.2/lib/python3.6/traceback.pyc +0 -0
- package/python3.6.2/lib/python3.6/tracemalloc.pyc +0 -0
- package/python3.6.2/lib/python3.6/tty.pyc +0 -0
- package/python3.6.2/lib/python3.6/turtle.pyc +0 -0
- package/python3.6.2/lib/python3.6/types.pyc +0 -0
- package/python3.6.2/lib/python3.6/typing.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/__main__.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/case.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/loader.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/main.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/mock.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/result.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/runner.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/signals.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/suite.pyc +0 -0
- package/python3.6.2/lib/python3.6/unittest/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/error.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/parse.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/request.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/response.pyc +0 -0
- package/python3.6.2/lib/python3.6/urllib/robotparser.pyc +0 -0
- package/python3.6.2/lib/python3.6/uu.pyc +0 -0
- package/python3.6.2/lib/python3.6/uuid.pyc +0 -0
- package/python3.6.2/lib/python3.6/venv/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/venv/__main__.pyc +0 -0
- package/python3.6.2/lib/python3.6/warnings.pyc +0 -0
- package/python3.6.2/lib/python3.6/wave.pyc +0 -0
- package/python3.6.2/lib/python3.6/weakref.pyc +0 -0
- package/python3.6.2/lib/python3.6/webbrowser.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/handlers.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/headers.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/simple_server.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/util.pyc +0 -0
- package/python3.6.2/lib/python3.6/wsgiref/validate.pyc +0 -0
- package/python3.6.2/lib/python3.6/xdrlib.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/NodeFilter.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/domreg.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/expatbuilder.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/minicompat.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/minidom.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/pulldom.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/dom/xmlbuilder.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementInclude.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementPath.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/etree/ElementTree.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/etree/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/etree/cElementTree.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/parsers/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/parsers/expat.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/_exceptions.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/expatreader.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/handler.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/saxutils.pyc +0 -0
- package/python3.6.2/lib/python3.6/xml/sax/xmlreader.pyc +0 -0
- package/python3.6.2/lib/python3.6/xmlrpc/__init__.pyc +0 -0
- package/python3.6.2/lib/python3.6/xmlrpc/client.pyc +0 -0
- package/python3.6.2/lib/python3.6/xmlrpc/server.pyc +0 -0
- package/python3.6.2/lib/python3.6/zipapp.pyc +0 -0
- package/python3.6.2/lib/python3.6/zipfile.pyc +0 -0
|
@@ -0,0 +1,2299 @@
|
|
|
1
|
+
# Copyright 2007 Google Inc.
|
|
2
|
+
# Licensed to PSF under a Contributor Agreement.
|
|
3
|
+
|
|
4
|
+
"""A fast, lightweight IPv4/IPv6 manipulation library in Python.
|
|
5
|
+
|
|
6
|
+
This library is used to create/poke/manipulate IPv4 and IPv6 addresses
|
|
7
|
+
and networks.
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
__version__ = '1.0'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import functools
|
|
15
|
+
|
|
16
|
+
IPV4LENGTH = 32
|
|
17
|
+
IPV6LENGTH = 128
|
|
18
|
+
|
|
19
|
+
class AddressValueError(ValueError):
|
|
20
|
+
"""A Value Error related to the address."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class NetmaskValueError(ValueError):
|
|
24
|
+
"""A Value Error related to the netmask."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def ip_address(address):
|
|
28
|
+
"""Take an IP string/int and return an object of the correct type.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
address: A string or integer, the IP address. Either IPv4 or
|
|
32
|
+
IPv6 addresses may be supplied; integers less than 2**32 will
|
|
33
|
+
be considered to be IPv4 by default.
|
|
34
|
+
|
|
35
|
+
Returns:
|
|
36
|
+
An IPv4Address or IPv6Address object.
|
|
37
|
+
|
|
38
|
+
Raises:
|
|
39
|
+
ValueError: if the *address* passed isn't either a v4 or a v6
|
|
40
|
+
address
|
|
41
|
+
|
|
42
|
+
"""
|
|
43
|
+
try:
|
|
44
|
+
return IPv4Address(address)
|
|
45
|
+
except (AddressValueError, NetmaskValueError):
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
try:
|
|
49
|
+
return IPv6Address(address)
|
|
50
|
+
except (AddressValueError, NetmaskValueError):
|
|
51
|
+
pass
|
|
52
|
+
|
|
53
|
+
raise ValueError('%r does not appear to be an IPv4 or IPv6 address' %
|
|
54
|
+
address)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def ip_network(address, strict=True):
|
|
58
|
+
"""Take an IP string/int and return an object of the correct type.
|
|
59
|
+
|
|
60
|
+
Args:
|
|
61
|
+
address: A string or integer, the IP network. Either IPv4 or
|
|
62
|
+
IPv6 networks may be supplied; integers less than 2**32 will
|
|
63
|
+
be considered to be IPv4 by default.
|
|
64
|
+
|
|
65
|
+
Returns:
|
|
66
|
+
An IPv4Network or IPv6Network object.
|
|
67
|
+
|
|
68
|
+
Raises:
|
|
69
|
+
ValueError: if the string passed isn't either a v4 or a v6
|
|
70
|
+
address. Or if the network has host bits set.
|
|
71
|
+
|
|
72
|
+
"""
|
|
73
|
+
try:
|
|
74
|
+
return IPv4Network(address, strict)
|
|
75
|
+
except (AddressValueError, NetmaskValueError):
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
return IPv6Network(address, strict)
|
|
80
|
+
except (AddressValueError, NetmaskValueError):
|
|
81
|
+
pass
|
|
82
|
+
|
|
83
|
+
raise ValueError('%r does not appear to be an IPv4 or IPv6 network' %
|
|
84
|
+
address)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def ip_interface(address):
|
|
88
|
+
"""Take an IP string/int and return an object of the correct type.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
address: A string or integer, the IP address. Either IPv4 or
|
|
92
|
+
IPv6 addresses may be supplied; integers less than 2**32 will
|
|
93
|
+
be considered to be IPv4 by default.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
An IPv4Interface or IPv6Interface object.
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
ValueError: if the string passed isn't either a v4 or a v6
|
|
100
|
+
address.
|
|
101
|
+
|
|
102
|
+
Notes:
|
|
103
|
+
The IPv?Interface classes describe an Address on a particular
|
|
104
|
+
Network, so they're basically a combination of both the Address
|
|
105
|
+
and Network classes.
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
return IPv4Interface(address)
|
|
110
|
+
except (AddressValueError, NetmaskValueError):
|
|
111
|
+
pass
|
|
112
|
+
|
|
113
|
+
try:
|
|
114
|
+
return IPv6Interface(address)
|
|
115
|
+
except (AddressValueError, NetmaskValueError):
|
|
116
|
+
pass
|
|
117
|
+
|
|
118
|
+
raise ValueError('%r does not appear to be an IPv4 or IPv6 interface' %
|
|
119
|
+
address)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def v4_int_to_packed(address):
|
|
123
|
+
"""Represent an address as 4 packed bytes in network (big-endian) order.
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
address: An integer representation of an IPv4 IP address.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
The integer address packed as 4 bytes in network (big-endian) order.
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
ValueError: If the integer is negative or too large to be an
|
|
133
|
+
IPv4 IP address.
|
|
134
|
+
|
|
135
|
+
"""
|
|
136
|
+
try:
|
|
137
|
+
return address.to_bytes(4, 'big')
|
|
138
|
+
except OverflowError:
|
|
139
|
+
raise ValueError("Address negative or too large for IPv4")
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def v6_int_to_packed(address):
|
|
143
|
+
"""Represent an address as 16 packed bytes in network (big-endian) order.
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
address: An integer representation of an IPv6 IP address.
|
|
147
|
+
|
|
148
|
+
Returns:
|
|
149
|
+
The integer address packed as 16 bytes in network (big-endian) order.
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
return address.to_bytes(16, 'big')
|
|
154
|
+
except OverflowError:
|
|
155
|
+
raise ValueError("Address negative or too large for IPv6")
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def _split_optional_netmask(address):
|
|
159
|
+
"""Helper to split the netmask and raise AddressValueError if needed"""
|
|
160
|
+
addr = str(address).split('/')
|
|
161
|
+
if len(addr) > 2:
|
|
162
|
+
raise AddressValueError("Only one '/' permitted in %r" % address)
|
|
163
|
+
return addr
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def _find_address_range(addresses):
|
|
167
|
+
"""Find a sequence of sorted deduplicated IPv#Address.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
addresses: a list of IPv#Address objects.
|
|
171
|
+
|
|
172
|
+
Yields:
|
|
173
|
+
A tuple containing the first and last IP addresses in the sequence.
|
|
174
|
+
|
|
175
|
+
"""
|
|
176
|
+
it = iter(addresses)
|
|
177
|
+
first = last = next(it)
|
|
178
|
+
for ip in it:
|
|
179
|
+
if ip._ip != last._ip + 1:
|
|
180
|
+
yield first, last
|
|
181
|
+
first = ip
|
|
182
|
+
last = ip
|
|
183
|
+
yield first, last
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
def _count_righthand_zero_bits(number, bits):
|
|
187
|
+
"""Count the number of zero bits on the right hand side.
|
|
188
|
+
|
|
189
|
+
Args:
|
|
190
|
+
number: an integer.
|
|
191
|
+
bits: maximum number of bits to count.
|
|
192
|
+
|
|
193
|
+
Returns:
|
|
194
|
+
The number of zero bits on the right hand side of the number.
|
|
195
|
+
|
|
196
|
+
"""
|
|
197
|
+
if number == 0:
|
|
198
|
+
return bits
|
|
199
|
+
return min(bits, (~number & (number-1)).bit_length())
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def summarize_address_range(first, last):
|
|
203
|
+
"""Summarize a network range given the first and last IP addresses.
|
|
204
|
+
|
|
205
|
+
Example:
|
|
206
|
+
>>> list(summarize_address_range(IPv4Address('192.0.2.0'),
|
|
207
|
+
... IPv4Address('192.0.2.130')))
|
|
208
|
+
... #doctest: +NORMALIZE_WHITESPACE
|
|
209
|
+
[IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/31'),
|
|
210
|
+
IPv4Network('192.0.2.130/32')]
|
|
211
|
+
|
|
212
|
+
Args:
|
|
213
|
+
first: the first IPv4Address or IPv6Address in the range.
|
|
214
|
+
last: the last IPv4Address or IPv6Address in the range.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
An iterator of the summarized IPv(4|6) network objects.
|
|
218
|
+
|
|
219
|
+
Raise:
|
|
220
|
+
TypeError:
|
|
221
|
+
If the first and last objects are not IP addresses.
|
|
222
|
+
If the first and last objects are not the same version.
|
|
223
|
+
ValueError:
|
|
224
|
+
If the last object is not greater than the first.
|
|
225
|
+
If the version of the first address is not 4 or 6.
|
|
226
|
+
|
|
227
|
+
"""
|
|
228
|
+
if (not (isinstance(first, _BaseAddress) and
|
|
229
|
+
isinstance(last, _BaseAddress))):
|
|
230
|
+
raise TypeError('first and last must be IP addresses, not networks')
|
|
231
|
+
if first.version != last.version:
|
|
232
|
+
raise TypeError("%s and %s are not of the same version" % (
|
|
233
|
+
first, last))
|
|
234
|
+
if first > last:
|
|
235
|
+
raise ValueError('last IP address must be greater than first')
|
|
236
|
+
|
|
237
|
+
if first.version == 4:
|
|
238
|
+
ip = IPv4Network
|
|
239
|
+
elif first.version == 6:
|
|
240
|
+
ip = IPv6Network
|
|
241
|
+
else:
|
|
242
|
+
raise ValueError('unknown IP version')
|
|
243
|
+
|
|
244
|
+
ip_bits = first._max_prefixlen
|
|
245
|
+
first_int = first._ip
|
|
246
|
+
last_int = last._ip
|
|
247
|
+
while first_int <= last_int:
|
|
248
|
+
nbits = min(_count_righthand_zero_bits(first_int, ip_bits),
|
|
249
|
+
(last_int - first_int + 1).bit_length() - 1)
|
|
250
|
+
net = ip((first_int, ip_bits - nbits))
|
|
251
|
+
yield net
|
|
252
|
+
first_int += 1 << nbits
|
|
253
|
+
if first_int - 1 == ip._ALL_ONES:
|
|
254
|
+
break
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def _collapse_addresses_internal(addresses):
|
|
258
|
+
"""Loops through the addresses, collapsing concurrent netblocks.
|
|
259
|
+
|
|
260
|
+
Example:
|
|
261
|
+
|
|
262
|
+
ip1 = IPv4Network('192.0.2.0/26')
|
|
263
|
+
ip2 = IPv4Network('192.0.2.64/26')
|
|
264
|
+
ip3 = IPv4Network('192.0.2.128/26')
|
|
265
|
+
ip4 = IPv4Network('192.0.2.192/26')
|
|
266
|
+
|
|
267
|
+
_collapse_addresses_internal([ip1, ip2, ip3, ip4]) ->
|
|
268
|
+
[IPv4Network('192.0.2.0/24')]
|
|
269
|
+
|
|
270
|
+
This shouldn't be called directly; it is called via
|
|
271
|
+
collapse_addresses([]).
|
|
272
|
+
|
|
273
|
+
Args:
|
|
274
|
+
addresses: A list of IPv4Network's or IPv6Network's
|
|
275
|
+
|
|
276
|
+
Returns:
|
|
277
|
+
A list of IPv4Network's or IPv6Network's depending on what we were
|
|
278
|
+
passed.
|
|
279
|
+
|
|
280
|
+
"""
|
|
281
|
+
# First merge
|
|
282
|
+
to_merge = list(addresses)
|
|
283
|
+
subnets = {}
|
|
284
|
+
while to_merge:
|
|
285
|
+
net = to_merge.pop()
|
|
286
|
+
supernet = net.supernet()
|
|
287
|
+
existing = subnets.get(supernet)
|
|
288
|
+
if existing is None:
|
|
289
|
+
subnets[supernet] = net
|
|
290
|
+
elif existing != net:
|
|
291
|
+
# Merge consecutive subnets
|
|
292
|
+
del subnets[supernet]
|
|
293
|
+
to_merge.append(supernet)
|
|
294
|
+
# Then iterate over resulting networks, skipping subsumed subnets
|
|
295
|
+
last = None
|
|
296
|
+
for net in sorted(subnets.values()):
|
|
297
|
+
if last is not None:
|
|
298
|
+
# Since they are sorted, last.network_address <= net.network_address
|
|
299
|
+
# is a given.
|
|
300
|
+
if last.broadcast_address >= net.broadcast_address:
|
|
301
|
+
continue
|
|
302
|
+
yield net
|
|
303
|
+
last = net
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def collapse_addresses(addresses):
|
|
307
|
+
"""Collapse a list of IP objects.
|
|
308
|
+
|
|
309
|
+
Example:
|
|
310
|
+
collapse_addresses([IPv4Network('192.0.2.0/25'),
|
|
311
|
+
IPv4Network('192.0.2.128/25')]) ->
|
|
312
|
+
[IPv4Network('192.0.2.0/24')]
|
|
313
|
+
|
|
314
|
+
Args:
|
|
315
|
+
addresses: An iterator of IPv4Network or IPv6Network objects.
|
|
316
|
+
|
|
317
|
+
Returns:
|
|
318
|
+
An iterator of the collapsed IPv(4|6)Network objects.
|
|
319
|
+
|
|
320
|
+
Raises:
|
|
321
|
+
TypeError: If passed a list of mixed version objects.
|
|
322
|
+
|
|
323
|
+
"""
|
|
324
|
+
addrs = []
|
|
325
|
+
ips = []
|
|
326
|
+
nets = []
|
|
327
|
+
|
|
328
|
+
# split IP addresses and networks
|
|
329
|
+
for ip in addresses:
|
|
330
|
+
if isinstance(ip, _BaseAddress):
|
|
331
|
+
if ips and ips[-1]._version != ip._version:
|
|
332
|
+
raise TypeError("%s and %s are not of the same version" % (
|
|
333
|
+
ip, ips[-1]))
|
|
334
|
+
ips.append(ip)
|
|
335
|
+
elif ip._prefixlen == ip._max_prefixlen:
|
|
336
|
+
if ips and ips[-1]._version != ip._version:
|
|
337
|
+
raise TypeError("%s and %s are not of the same version" % (
|
|
338
|
+
ip, ips[-1]))
|
|
339
|
+
try:
|
|
340
|
+
ips.append(ip.ip)
|
|
341
|
+
except AttributeError:
|
|
342
|
+
ips.append(ip.network_address)
|
|
343
|
+
else:
|
|
344
|
+
if nets and nets[-1]._version != ip._version:
|
|
345
|
+
raise TypeError("%s and %s are not of the same version" % (
|
|
346
|
+
ip, nets[-1]))
|
|
347
|
+
nets.append(ip)
|
|
348
|
+
|
|
349
|
+
# sort and dedup
|
|
350
|
+
ips = sorted(set(ips))
|
|
351
|
+
|
|
352
|
+
# find consecutive address ranges in the sorted sequence and summarize them
|
|
353
|
+
if ips:
|
|
354
|
+
for first, last in _find_address_range(ips):
|
|
355
|
+
addrs.extend(summarize_address_range(first, last))
|
|
356
|
+
|
|
357
|
+
return _collapse_addresses_internal(addrs + nets)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
def get_mixed_type_key(obj):
|
|
361
|
+
"""Return a key suitable for sorting between networks and addresses.
|
|
362
|
+
|
|
363
|
+
Address and Network objects are not sortable by default; they're
|
|
364
|
+
fundamentally different so the expression
|
|
365
|
+
|
|
366
|
+
IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24')
|
|
367
|
+
|
|
368
|
+
doesn't make any sense. There are some times however, where you may wish
|
|
369
|
+
to have ipaddress sort these for you anyway. If you need to do this, you
|
|
370
|
+
can use this function as the key= argument to sorted().
|
|
371
|
+
|
|
372
|
+
Args:
|
|
373
|
+
obj: either a Network or Address object.
|
|
374
|
+
Returns:
|
|
375
|
+
appropriate key.
|
|
376
|
+
|
|
377
|
+
"""
|
|
378
|
+
if isinstance(obj, _BaseNetwork):
|
|
379
|
+
return obj._get_networks_key()
|
|
380
|
+
elif isinstance(obj, _BaseAddress):
|
|
381
|
+
return obj._get_address_key()
|
|
382
|
+
return NotImplemented
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
class _IPAddressBase:
|
|
386
|
+
|
|
387
|
+
"""The mother class."""
|
|
388
|
+
|
|
389
|
+
__slots__ = ()
|
|
390
|
+
|
|
391
|
+
@property
|
|
392
|
+
def exploded(self):
|
|
393
|
+
"""Return the longhand version of the IP address as a string."""
|
|
394
|
+
return self._explode_shorthand_ip_string()
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
def compressed(self):
|
|
398
|
+
"""Return the shorthand version of the IP address as a string."""
|
|
399
|
+
return str(self)
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
def reverse_pointer(self):
|
|
403
|
+
"""The name of the reverse DNS pointer for the IP address, e.g.:
|
|
404
|
+
>>> ipaddress.ip_address("127.0.0.1").reverse_pointer
|
|
405
|
+
'1.0.0.127.in-addr.arpa'
|
|
406
|
+
>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
|
|
407
|
+
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa'
|
|
408
|
+
|
|
409
|
+
"""
|
|
410
|
+
return self._reverse_pointer()
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
def version(self):
|
|
414
|
+
msg = '%200s has no version specified' % (type(self),)
|
|
415
|
+
raise NotImplementedError(msg)
|
|
416
|
+
|
|
417
|
+
def _check_int_address(self, address):
|
|
418
|
+
if address < 0:
|
|
419
|
+
msg = "%d (< 0) is not permitted as an IPv%d address"
|
|
420
|
+
raise AddressValueError(msg % (address, self._version))
|
|
421
|
+
if address > self._ALL_ONES:
|
|
422
|
+
msg = "%d (>= 2**%d) is not permitted as an IPv%d address"
|
|
423
|
+
raise AddressValueError(msg % (address, self._max_prefixlen,
|
|
424
|
+
self._version))
|
|
425
|
+
|
|
426
|
+
def _check_packed_address(self, address, expected_len):
|
|
427
|
+
address_len = len(address)
|
|
428
|
+
if address_len != expected_len:
|
|
429
|
+
msg = "%r (len %d != %d) is not permitted as an IPv%d address"
|
|
430
|
+
raise AddressValueError(msg % (address, address_len,
|
|
431
|
+
expected_len, self._version))
|
|
432
|
+
|
|
433
|
+
@classmethod
|
|
434
|
+
def _ip_int_from_prefix(cls, prefixlen):
|
|
435
|
+
"""Turn the prefix length into a bitwise netmask
|
|
436
|
+
|
|
437
|
+
Args:
|
|
438
|
+
prefixlen: An integer, the prefix length.
|
|
439
|
+
|
|
440
|
+
Returns:
|
|
441
|
+
An integer.
|
|
442
|
+
|
|
443
|
+
"""
|
|
444
|
+
return cls._ALL_ONES ^ (cls._ALL_ONES >> prefixlen)
|
|
445
|
+
|
|
446
|
+
@classmethod
|
|
447
|
+
def _prefix_from_ip_int(cls, ip_int):
|
|
448
|
+
"""Return prefix length from the bitwise netmask.
|
|
449
|
+
|
|
450
|
+
Args:
|
|
451
|
+
ip_int: An integer, the netmask in expanded bitwise format
|
|
452
|
+
|
|
453
|
+
Returns:
|
|
454
|
+
An integer, the prefix length.
|
|
455
|
+
|
|
456
|
+
Raises:
|
|
457
|
+
ValueError: If the input intermingles zeroes & ones
|
|
458
|
+
"""
|
|
459
|
+
trailing_zeroes = _count_righthand_zero_bits(ip_int,
|
|
460
|
+
cls._max_prefixlen)
|
|
461
|
+
prefixlen = cls._max_prefixlen - trailing_zeroes
|
|
462
|
+
leading_ones = ip_int >> trailing_zeroes
|
|
463
|
+
all_ones = (1 << prefixlen) - 1
|
|
464
|
+
if leading_ones != all_ones:
|
|
465
|
+
byteslen = cls._max_prefixlen // 8
|
|
466
|
+
details = ip_int.to_bytes(byteslen, 'big')
|
|
467
|
+
msg = 'Netmask pattern %r mixes zeroes & ones'
|
|
468
|
+
raise ValueError(msg % details)
|
|
469
|
+
return prefixlen
|
|
470
|
+
|
|
471
|
+
@classmethod
|
|
472
|
+
def _report_invalid_netmask(cls, netmask_str):
|
|
473
|
+
msg = '%r is not a valid netmask' % netmask_str
|
|
474
|
+
raise NetmaskValueError(msg) from None
|
|
475
|
+
|
|
476
|
+
@classmethod
|
|
477
|
+
def _prefix_from_prefix_string(cls, prefixlen_str):
|
|
478
|
+
"""Return prefix length from a numeric string
|
|
479
|
+
|
|
480
|
+
Args:
|
|
481
|
+
prefixlen_str: The string to be converted
|
|
482
|
+
|
|
483
|
+
Returns:
|
|
484
|
+
An integer, the prefix length.
|
|
485
|
+
|
|
486
|
+
Raises:
|
|
487
|
+
NetmaskValueError: If the input is not a valid netmask
|
|
488
|
+
"""
|
|
489
|
+
# int allows a leading +/- as well as surrounding whitespace,
|
|
490
|
+
# so we ensure that isn't the case
|
|
491
|
+
if not _BaseV4._DECIMAL_DIGITS.issuperset(prefixlen_str):
|
|
492
|
+
cls._report_invalid_netmask(prefixlen_str)
|
|
493
|
+
try:
|
|
494
|
+
prefixlen = int(prefixlen_str)
|
|
495
|
+
except ValueError:
|
|
496
|
+
cls._report_invalid_netmask(prefixlen_str)
|
|
497
|
+
if not (0 <= prefixlen <= cls._max_prefixlen):
|
|
498
|
+
cls._report_invalid_netmask(prefixlen_str)
|
|
499
|
+
return prefixlen
|
|
500
|
+
|
|
501
|
+
@classmethod
|
|
502
|
+
def _prefix_from_ip_string(cls, ip_str):
|
|
503
|
+
"""Turn a netmask/hostmask string into a prefix length
|
|
504
|
+
|
|
505
|
+
Args:
|
|
506
|
+
ip_str: The netmask/hostmask to be converted
|
|
507
|
+
|
|
508
|
+
Returns:
|
|
509
|
+
An integer, the prefix length.
|
|
510
|
+
|
|
511
|
+
Raises:
|
|
512
|
+
NetmaskValueError: If the input is not a valid netmask/hostmask
|
|
513
|
+
"""
|
|
514
|
+
# Parse the netmask/hostmask like an IP address.
|
|
515
|
+
try:
|
|
516
|
+
ip_int = cls._ip_int_from_string(ip_str)
|
|
517
|
+
except AddressValueError:
|
|
518
|
+
cls._report_invalid_netmask(ip_str)
|
|
519
|
+
|
|
520
|
+
# Try matching a netmask (this would be /1*0*/ as a bitwise regexp).
|
|
521
|
+
# Note that the two ambiguous cases (all-ones and all-zeroes) are
|
|
522
|
+
# treated as netmasks.
|
|
523
|
+
try:
|
|
524
|
+
return cls._prefix_from_ip_int(ip_int)
|
|
525
|
+
except ValueError:
|
|
526
|
+
pass
|
|
527
|
+
|
|
528
|
+
# Invert the bits, and try matching a /0+1+/ hostmask instead.
|
|
529
|
+
ip_int ^= cls._ALL_ONES
|
|
530
|
+
try:
|
|
531
|
+
return cls._prefix_from_ip_int(ip_int)
|
|
532
|
+
except ValueError:
|
|
533
|
+
cls._report_invalid_netmask(ip_str)
|
|
534
|
+
|
|
535
|
+
def __reduce__(self):
|
|
536
|
+
return self.__class__, (str(self),)
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
@functools.total_ordering
|
|
540
|
+
class _BaseAddress(_IPAddressBase):
|
|
541
|
+
|
|
542
|
+
"""A generic IP object.
|
|
543
|
+
|
|
544
|
+
This IP class contains the version independent methods which are
|
|
545
|
+
used by single IP addresses.
|
|
546
|
+
"""
|
|
547
|
+
|
|
548
|
+
__slots__ = ()
|
|
549
|
+
|
|
550
|
+
def __int__(self):
|
|
551
|
+
return self._ip
|
|
552
|
+
|
|
553
|
+
def __eq__(self, other):
|
|
554
|
+
try:
|
|
555
|
+
return (self._ip == other._ip
|
|
556
|
+
and self._version == other._version)
|
|
557
|
+
except AttributeError:
|
|
558
|
+
return NotImplemented
|
|
559
|
+
|
|
560
|
+
def __lt__(self, other):
|
|
561
|
+
if not isinstance(other, _BaseAddress):
|
|
562
|
+
return NotImplemented
|
|
563
|
+
if self._version != other._version:
|
|
564
|
+
raise TypeError('%s and %s are not of the same version' % (
|
|
565
|
+
self, other))
|
|
566
|
+
if self._ip != other._ip:
|
|
567
|
+
return self._ip < other._ip
|
|
568
|
+
return False
|
|
569
|
+
|
|
570
|
+
# Shorthand for Integer addition and subtraction. This is not
|
|
571
|
+
# meant to ever support addition/subtraction of addresses.
|
|
572
|
+
def __add__(self, other):
|
|
573
|
+
if not isinstance(other, int):
|
|
574
|
+
return NotImplemented
|
|
575
|
+
return self.__class__(int(self) + other)
|
|
576
|
+
|
|
577
|
+
def __sub__(self, other):
|
|
578
|
+
if not isinstance(other, int):
|
|
579
|
+
return NotImplemented
|
|
580
|
+
return self.__class__(int(self) - other)
|
|
581
|
+
|
|
582
|
+
def __repr__(self):
|
|
583
|
+
return '%s(%r)' % (self.__class__.__name__, str(self))
|
|
584
|
+
|
|
585
|
+
def __str__(self):
|
|
586
|
+
return str(self._string_from_ip_int(self._ip))
|
|
587
|
+
|
|
588
|
+
def __hash__(self):
|
|
589
|
+
return hash(hex(int(self._ip)))
|
|
590
|
+
|
|
591
|
+
def _get_address_key(self):
|
|
592
|
+
return (self._version, self)
|
|
593
|
+
|
|
594
|
+
def __reduce__(self):
|
|
595
|
+
return self.__class__, (self._ip,)
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
@functools.total_ordering
|
|
599
|
+
class _BaseNetwork(_IPAddressBase):
|
|
600
|
+
|
|
601
|
+
"""A generic IP network object.
|
|
602
|
+
|
|
603
|
+
This IP class contains the version independent methods which are
|
|
604
|
+
used by networks.
|
|
605
|
+
|
|
606
|
+
"""
|
|
607
|
+
def __init__(self, address):
|
|
608
|
+
self._cache = {}
|
|
609
|
+
|
|
610
|
+
def __repr__(self):
|
|
611
|
+
return '%s(%r)' % (self.__class__.__name__, str(self))
|
|
612
|
+
|
|
613
|
+
def __str__(self):
|
|
614
|
+
return '%s/%d' % (self.network_address, self.prefixlen)
|
|
615
|
+
|
|
616
|
+
def hosts(self):
|
|
617
|
+
"""Generate Iterator over usable hosts in a network.
|
|
618
|
+
|
|
619
|
+
This is like __iter__ except it doesn't return the network
|
|
620
|
+
or broadcast addresses.
|
|
621
|
+
|
|
622
|
+
"""
|
|
623
|
+
network = int(self.network_address)
|
|
624
|
+
broadcast = int(self.broadcast_address)
|
|
625
|
+
for x in range(network + 1, broadcast):
|
|
626
|
+
yield self._address_class(x)
|
|
627
|
+
|
|
628
|
+
def __iter__(self):
|
|
629
|
+
network = int(self.network_address)
|
|
630
|
+
broadcast = int(self.broadcast_address)
|
|
631
|
+
for x in range(network, broadcast + 1):
|
|
632
|
+
yield self._address_class(x)
|
|
633
|
+
|
|
634
|
+
def __getitem__(self, n):
|
|
635
|
+
network = int(self.network_address)
|
|
636
|
+
broadcast = int(self.broadcast_address)
|
|
637
|
+
if n >= 0:
|
|
638
|
+
if network + n > broadcast:
|
|
639
|
+
raise IndexError('address out of range')
|
|
640
|
+
return self._address_class(network + n)
|
|
641
|
+
else:
|
|
642
|
+
n += 1
|
|
643
|
+
if broadcast + n < network:
|
|
644
|
+
raise IndexError('address out of range')
|
|
645
|
+
return self._address_class(broadcast + n)
|
|
646
|
+
|
|
647
|
+
def __lt__(self, other):
|
|
648
|
+
if not isinstance(other, _BaseNetwork):
|
|
649
|
+
return NotImplemented
|
|
650
|
+
if self._version != other._version:
|
|
651
|
+
raise TypeError('%s and %s are not of the same version' % (
|
|
652
|
+
self, other))
|
|
653
|
+
if self.network_address != other.network_address:
|
|
654
|
+
return self.network_address < other.network_address
|
|
655
|
+
if self.netmask != other.netmask:
|
|
656
|
+
return self.netmask < other.netmask
|
|
657
|
+
return False
|
|
658
|
+
|
|
659
|
+
def __eq__(self, other):
|
|
660
|
+
try:
|
|
661
|
+
return (self._version == other._version and
|
|
662
|
+
self.network_address == other.network_address and
|
|
663
|
+
int(self.netmask) == int(other.netmask))
|
|
664
|
+
except AttributeError:
|
|
665
|
+
return NotImplemented
|
|
666
|
+
|
|
667
|
+
def __hash__(self):
|
|
668
|
+
return hash(int(self.network_address) ^ int(self.netmask))
|
|
669
|
+
|
|
670
|
+
def __contains__(self, other):
|
|
671
|
+
# always false if one is v4 and the other is v6.
|
|
672
|
+
if self._version != other._version:
|
|
673
|
+
return False
|
|
674
|
+
# dealing with another network.
|
|
675
|
+
if isinstance(other, _BaseNetwork):
|
|
676
|
+
return False
|
|
677
|
+
# dealing with another address
|
|
678
|
+
else:
|
|
679
|
+
# address
|
|
680
|
+
return (int(self.network_address) <= int(other._ip) <=
|
|
681
|
+
int(self.broadcast_address))
|
|
682
|
+
|
|
683
|
+
def overlaps(self, other):
|
|
684
|
+
"""Tell if self is partly contained in other."""
|
|
685
|
+
return self.network_address in other or (
|
|
686
|
+
self.broadcast_address in other or (
|
|
687
|
+
other.network_address in self or (
|
|
688
|
+
other.broadcast_address in self)))
|
|
689
|
+
|
|
690
|
+
@property
|
|
691
|
+
def broadcast_address(self):
|
|
692
|
+
x = self._cache.get('broadcast_address')
|
|
693
|
+
if x is None:
|
|
694
|
+
x = self._address_class(int(self.network_address) |
|
|
695
|
+
int(self.hostmask))
|
|
696
|
+
self._cache['broadcast_address'] = x
|
|
697
|
+
return x
|
|
698
|
+
|
|
699
|
+
@property
|
|
700
|
+
def hostmask(self):
|
|
701
|
+
x = self._cache.get('hostmask')
|
|
702
|
+
if x is None:
|
|
703
|
+
x = self._address_class(int(self.netmask) ^ self._ALL_ONES)
|
|
704
|
+
self._cache['hostmask'] = x
|
|
705
|
+
return x
|
|
706
|
+
|
|
707
|
+
@property
|
|
708
|
+
def with_prefixlen(self):
|
|
709
|
+
return '%s/%d' % (self.network_address, self._prefixlen)
|
|
710
|
+
|
|
711
|
+
@property
|
|
712
|
+
def with_netmask(self):
|
|
713
|
+
return '%s/%s' % (self.network_address, self.netmask)
|
|
714
|
+
|
|
715
|
+
@property
|
|
716
|
+
def with_hostmask(self):
|
|
717
|
+
return '%s/%s' % (self.network_address, self.hostmask)
|
|
718
|
+
|
|
719
|
+
@property
|
|
720
|
+
def num_addresses(self):
|
|
721
|
+
"""Number of hosts in the current subnet."""
|
|
722
|
+
return int(self.broadcast_address) - int(self.network_address) + 1
|
|
723
|
+
|
|
724
|
+
@property
|
|
725
|
+
def _address_class(self):
|
|
726
|
+
# Returning bare address objects (rather than interfaces) allows for
|
|
727
|
+
# more consistent behaviour across the network address, broadcast
|
|
728
|
+
# address and individual host addresses.
|
|
729
|
+
msg = '%200s has no associated address class' % (type(self),)
|
|
730
|
+
raise NotImplementedError(msg)
|
|
731
|
+
|
|
732
|
+
@property
|
|
733
|
+
def prefixlen(self):
|
|
734
|
+
return self._prefixlen
|
|
735
|
+
|
|
736
|
+
def address_exclude(self, other):
|
|
737
|
+
"""Remove an address from a larger block.
|
|
738
|
+
|
|
739
|
+
For example:
|
|
740
|
+
|
|
741
|
+
addr1 = ip_network('192.0.2.0/28')
|
|
742
|
+
addr2 = ip_network('192.0.2.1/32')
|
|
743
|
+
list(addr1.address_exclude(addr2)) =
|
|
744
|
+
[IPv4Network('192.0.2.0/32'), IPv4Network('192.0.2.2/31'),
|
|
745
|
+
IPv4Network('192.0.2.4/30'), IPv4Network('192.0.2.8/29')]
|
|
746
|
+
|
|
747
|
+
or IPv6:
|
|
748
|
+
|
|
749
|
+
addr1 = ip_network('2001:db8::1/32')
|
|
750
|
+
addr2 = ip_network('2001:db8::1/128')
|
|
751
|
+
list(addr1.address_exclude(addr2)) =
|
|
752
|
+
[ip_network('2001:db8::1/128'),
|
|
753
|
+
ip_network('2001:db8::2/127'),
|
|
754
|
+
ip_network('2001:db8::4/126'),
|
|
755
|
+
ip_network('2001:db8::8/125'),
|
|
756
|
+
...
|
|
757
|
+
ip_network('2001:db8:8000::/33')]
|
|
758
|
+
|
|
759
|
+
Args:
|
|
760
|
+
other: An IPv4Network or IPv6Network object of the same type.
|
|
761
|
+
|
|
762
|
+
Returns:
|
|
763
|
+
An iterator of the IPv(4|6)Network objects which is self
|
|
764
|
+
minus other.
|
|
765
|
+
|
|
766
|
+
Raises:
|
|
767
|
+
TypeError: If self and other are of differing address
|
|
768
|
+
versions, or if other is not a network object.
|
|
769
|
+
ValueError: If other is not completely contained by self.
|
|
770
|
+
|
|
771
|
+
"""
|
|
772
|
+
if not self._version == other._version:
|
|
773
|
+
raise TypeError("%s and %s are not of the same version" % (
|
|
774
|
+
self, other))
|
|
775
|
+
|
|
776
|
+
if not isinstance(other, _BaseNetwork):
|
|
777
|
+
raise TypeError("%s is not a network object" % other)
|
|
778
|
+
|
|
779
|
+
if not (other.network_address >= self.network_address and
|
|
780
|
+
other.broadcast_address <= self.broadcast_address):
|
|
781
|
+
raise ValueError('%s not contained in %s' % (other, self))
|
|
782
|
+
if other == self:
|
|
783
|
+
return
|
|
784
|
+
|
|
785
|
+
# Make sure we're comparing the network of other.
|
|
786
|
+
other = other.__class__('%s/%s' % (other.network_address,
|
|
787
|
+
other.prefixlen))
|
|
788
|
+
|
|
789
|
+
s1, s2 = self.subnets()
|
|
790
|
+
while s1 != other and s2 != other:
|
|
791
|
+
if (other.network_address >= s1.network_address and
|
|
792
|
+
other.broadcast_address <= s1.broadcast_address):
|
|
793
|
+
yield s2
|
|
794
|
+
s1, s2 = s1.subnets()
|
|
795
|
+
elif (other.network_address >= s2.network_address and
|
|
796
|
+
other.broadcast_address <= s2.broadcast_address):
|
|
797
|
+
yield s1
|
|
798
|
+
s1, s2 = s2.subnets()
|
|
799
|
+
else:
|
|
800
|
+
# If we got here, there's a bug somewhere.
|
|
801
|
+
raise AssertionError('Error performing exclusion: '
|
|
802
|
+
's1: %s s2: %s other: %s' %
|
|
803
|
+
(s1, s2, other))
|
|
804
|
+
if s1 == other:
|
|
805
|
+
yield s2
|
|
806
|
+
elif s2 == other:
|
|
807
|
+
yield s1
|
|
808
|
+
else:
|
|
809
|
+
# If we got here, there's a bug somewhere.
|
|
810
|
+
raise AssertionError('Error performing exclusion: '
|
|
811
|
+
's1: %s s2: %s other: %s' %
|
|
812
|
+
(s1, s2, other))
|
|
813
|
+
|
|
814
|
+
def compare_networks(self, other):
|
|
815
|
+
"""Compare two IP objects.
|
|
816
|
+
|
|
817
|
+
This is only concerned about the comparison of the integer
|
|
818
|
+
representation of the network addresses. This means that the
|
|
819
|
+
host bits aren't considered at all in this method. If you want
|
|
820
|
+
to compare host bits, you can easily enough do a
|
|
821
|
+
'HostA._ip < HostB._ip'
|
|
822
|
+
|
|
823
|
+
Args:
|
|
824
|
+
other: An IP object.
|
|
825
|
+
|
|
826
|
+
Returns:
|
|
827
|
+
If the IP versions of self and other are the same, returns:
|
|
828
|
+
|
|
829
|
+
-1 if self < other:
|
|
830
|
+
eg: IPv4Network('192.0.2.0/25') < IPv4Network('192.0.2.128/25')
|
|
831
|
+
IPv6Network('2001:db8::1000/124') <
|
|
832
|
+
IPv6Network('2001:db8::2000/124')
|
|
833
|
+
0 if self == other
|
|
834
|
+
eg: IPv4Network('192.0.2.0/24') == IPv4Network('192.0.2.0/24')
|
|
835
|
+
IPv6Network('2001:db8::1000/124') ==
|
|
836
|
+
IPv6Network('2001:db8::1000/124')
|
|
837
|
+
1 if self > other
|
|
838
|
+
eg: IPv4Network('192.0.2.128/25') > IPv4Network('192.0.2.0/25')
|
|
839
|
+
IPv6Network('2001:db8::2000/124') >
|
|
840
|
+
IPv6Network('2001:db8::1000/124')
|
|
841
|
+
|
|
842
|
+
Raises:
|
|
843
|
+
TypeError if the IP versions are different.
|
|
844
|
+
|
|
845
|
+
"""
|
|
846
|
+
# does this need to raise a ValueError?
|
|
847
|
+
if self._version != other._version:
|
|
848
|
+
raise TypeError('%s and %s are not of the same type' % (
|
|
849
|
+
self, other))
|
|
850
|
+
# self._version == other._version below here:
|
|
851
|
+
if self.network_address < other.network_address:
|
|
852
|
+
return -1
|
|
853
|
+
if self.network_address > other.network_address:
|
|
854
|
+
return 1
|
|
855
|
+
# self.network_address == other.network_address below here:
|
|
856
|
+
if self.netmask < other.netmask:
|
|
857
|
+
return -1
|
|
858
|
+
if self.netmask > other.netmask:
|
|
859
|
+
return 1
|
|
860
|
+
return 0
|
|
861
|
+
|
|
862
|
+
def _get_networks_key(self):
|
|
863
|
+
"""Network-only key function.
|
|
864
|
+
|
|
865
|
+
Returns an object that identifies this address' network and
|
|
866
|
+
netmask. This function is a suitable "key" argument for sorted()
|
|
867
|
+
and list.sort().
|
|
868
|
+
|
|
869
|
+
"""
|
|
870
|
+
return (self._version, self.network_address, self.netmask)
|
|
871
|
+
|
|
872
|
+
def subnets(self, prefixlen_diff=1, new_prefix=None):
|
|
873
|
+
"""The subnets which join to make the current subnet.
|
|
874
|
+
|
|
875
|
+
In the case that self contains only one IP
|
|
876
|
+
(self._prefixlen == 32 for IPv4 or self._prefixlen == 128
|
|
877
|
+
for IPv6), yield an iterator with just ourself.
|
|
878
|
+
|
|
879
|
+
Args:
|
|
880
|
+
prefixlen_diff: An integer, the amount the prefix length
|
|
881
|
+
should be increased by. This should not be set if
|
|
882
|
+
new_prefix is also set.
|
|
883
|
+
new_prefix: The desired new prefix length. This must be a
|
|
884
|
+
larger number (smaller prefix) than the existing prefix.
|
|
885
|
+
This should not be set if prefixlen_diff is also set.
|
|
886
|
+
|
|
887
|
+
Returns:
|
|
888
|
+
An iterator of IPv(4|6) objects.
|
|
889
|
+
|
|
890
|
+
Raises:
|
|
891
|
+
ValueError: The prefixlen_diff is too small or too large.
|
|
892
|
+
OR
|
|
893
|
+
prefixlen_diff and new_prefix are both set or new_prefix
|
|
894
|
+
is a smaller number than the current prefix (smaller
|
|
895
|
+
number means a larger network)
|
|
896
|
+
|
|
897
|
+
"""
|
|
898
|
+
if self._prefixlen == self._max_prefixlen:
|
|
899
|
+
yield self
|
|
900
|
+
return
|
|
901
|
+
|
|
902
|
+
if new_prefix is not None:
|
|
903
|
+
if new_prefix < self._prefixlen:
|
|
904
|
+
raise ValueError('new prefix must be longer')
|
|
905
|
+
if prefixlen_diff != 1:
|
|
906
|
+
raise ValueError('cannot set prefixlen_diff and new_prefix')
|
|
907
|
+
prefixlen_diff = new_prefix - self._prefixlen
|
|
908
|
+
|
|
909
|
+
if prefixlen_diff < 0:
|
|
910
|
+
raise ValueError('prefix length diff must be > 0')
|
|
911
|
+
new_prefixlen = self._prefixlen + prefixlen_diff
|
|
912
|
+
|
|
913
|
+
if new_prefixlen > self._max_prefixlen:
|
|
914
|
+
raise ValueError(
|
|
915
|
+
'prefix length diff %d is invalid for netblock %s' % (
|
|
916
|
+
new_prefixlen, self))
|
|
917
|
+
|
|
918
|
+
start = int(self.network_address)
|
|
919
|
+
end = int(self.broadcast_address) + 1
|
|
920
|
+
step = (int(self.hostmask) + 1) >> prefixlen_diff
|
|
921
|
+
for new_addr in range(start, end, step):
|
|
922
|
+
current = self.__class__((new_addr, new_prefixlen))
|
|
923
|
+
yield current
|
|
924
|
+
|
|
925
|
+
def supernet(self, prefixlen_diff=1, new_prefix=None):
|
|
926
|
+
"""The supernet containing the current network.
|
|
927
|
+
|
|
928
|
+
Args:
|
|
929
|
+
prefixlen_diff: An integer, the amount the prefix length of
|
|
930
|
+
the network should be decreased by. For example, given a
|
|
931
|
+
/24 network and a prefixlen_diff of 3, a supernet with a
|
|
932
|
+
/21 netmask is returned.
|
|
933
|
+
|
|
934
|
+
Returns:
|
|
935
|
+
An IPv4 network object.
|
|
936
|
+
|
|
937
|
+
Raises:
|
|
938
|
+
ValueError: If self.prefixlen - prefixlen_diff < 0. I.e., you have
|
|
939
|
+
a negative prefix length.
|
|
940
|
+
OR
|
|
941
|
+
If prefixlen_diff and new_prefix are both set or new_prefix is a
|
|
942
|
+
larger number than the current prefix (larger number means a
|
|
943
|
+
smaller network)
|
|
944
|
+
|
|
945
|
+
"""
|
|
946
|
+
if self._prefixlen == 0:
|
|
947
|
+
return self
|
|
948
|
+
|
|
949
|
+
if new_prefix is not None:
|
|
950
|
+
if new_prefix > self._prefixlen:
|
|
951
|
+
raise ValueError('new prefix must be shorter')
|
|
952
|
+
if prefixlen_diff != 1:
|
|
953
|
+
raise ValueError('cannot set prefixlen_diff and new_prefix')
|
|
954
|
+
prefixlen_diff = self._prefixlen - new_prefix
|
|
955
|
+
|
|
956
|
+
new_prefixlen = self.prefixlen - prefixlen_diff
|
|
957
|
+
if new_prefixlen < 0:
|
|
958
|
+
raise ValueError(
|
|
959
|
+
'current prefixlen is %d, cannot have a prefixlen_diff of %d' %
|
|
960
|
+
(self.prefixlen, prefixlen_diff))
|
|
961
|
+
return self.__class__((
|
|
962
|
+
int(self.network_address) & (int(self.netmask) << prefixlen_diff),
|
|
963
|
+
new_prefixlen
|
|
964
|
+
))
|
|
965
|
+
|
|
966
|
+
@property
|
|
967
|
+
def is_multicast(self):
|
|
968
|
+
"""Test if the address is reserved for multicast use.
|
|
969
|
+
|
|
970
|
+
Returns:
|
|
971
|
+
A boolean, True if the address is a multicast address.
|
|
972
|
+
See RFC 2373 2.7 for details.
|
|
973
|
+
|
|
974
|
+
"""
|
|
975
|
+
return (self.network_address.is_multicast and
|
|
976
|
+
self.broadcast_address.is_multicast)
|
|
977
|
+
|
|
978
|
+
@property
|
|
979
|
+
def is_reserved(self):
|
|
980
|
+
"""Test if the address is otherwise IETF reserved.
|
|
981
|
+
|
|
982
|
+
Returns:
|
|
983
|
+
A boolean, True if the address is within one of the
|
|
984
|
+
reserved IPv6 Network ranges.
|
|
985
|
+
|
|
986
|
+
"""
|
|
987
|
+
return (self.network_address.is_reserved and
|
|
988
|
+
self.broadcast_address.is_reserved)
|
|
989
|
+
|
|
990
|
+
@property
|
|
991
|
+
def is_link_local(self):
|
|
992
|
+
"""Test if the address is reserved for link-local.
|
|
993
|
+
|
|
994
|
+
Returns:
|
|
995
|
+
A boolean, True if the address is reserved per RFC 4291.
|
|
996
|
+
|
|
997
|
+
"""
|
|
998
|
+
return (self.network_address.is_link_local and
|
|
999
|
+
self.broadcast_address.is_link_local)
|
|
1000
|
+
|
|
1001
|
+
@property
|
|
1002
|
+
def is_private(self):
|
|
1003
|
+
"""Test if this address is allocated for private networks.
|
|
1004
|
+
|
|
1005
|
+
Returns:
|
|
1006
|
+
A boolean, True if the address is reserved per
|
|
1007
|
+
iana-ipv4-special-registry or iana-ipv6-special-registry.
|
|
1008
|
+
|
|
1009
|
+
"""
|
|
1010
|
+
return (self.network_address.is_private and
|
|
1011
|
+
self.broadcast_address.is_private)
|
|
1012
|
+
|
|
1013
|
+
@property
|
|
1014
|
+
def is_global(self):
|
|
1015
|
+
"""Test if this address is allocated for public networks.
|
|
1016
|
+
|
|
1017
|
+
Returns:
|
|
1018
|
+
A boolean, True if the address is not reserved per
|
|
1019
|
+
iana-ipv4-special-registry or iana-ipv6-special-registry.
|
|
1020
|
+
|
|
1021
|
+
"""
|
|
1022
|
+
return not self.is_private
|
|
1023
|
+
|
|
1024
|
+
@property
|
|
1025
|
+
def is_unspecified(self):
|
|
1026
|
+
"""Test if the address is unspecified.
|
|
1027
|
+
|
|
1028
|
+
Returns:
|
|
1029
|
+
A boolean, True if this is the unspecified address as defined in
|
|
1030
|
+
RFC 2373 2.5.2.
|
|
1031
|
+
|
|
1032
|
+
"""
|
|
1033
|
+
return (self.network_address.is_unspecified and
|
|
1034
|
+
self.broadcast_address.is_unspecified)
|
|
1035
|
+
|
|
1036
|
+
@property
|
|
1037
|
+
def is_loopback(self):
|
|
1038
|
+
"""Test if the address is a loopback address.
|
|
1039
|
+
|
|
1040
|
+
Returns:
|
|
1041
|
+
A boolean, True if the address is a loopback address as defined in
|
|
1042
|
+
RFC 2373 2.5.3.
|
|
1043
|
+
|
|
1044
|
+
"""
|
|
1045
|
+
return (self.network_address.is_loopback and
|
|
1046
|
+
self.broadcast_address.is_loopback)
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
class _BaseV4:
|
|
1050
|
+
|
|
1051
|
+
"""Base IPv4 object.
|
|
1052
|
+
|
|
1053
|
+
The following methods are used by IPv4 objects in both single IP
|
|
1054
|
+
addresses and networks.
|
|
1055
|
+
|
|
1056
|
+
"""
|
|
1057
|
+
|
|
1058
|
+
__slots__ = ()
|
|
1059
|
+
_version = 4
|
|
1060
|
+
# Equivalent to 255.255.255.255 or 32 bits of 1's.
|
|
1061
|
+
_ALL_ONES = (2**IPV4LENGTH) - 1
|
|
1062
|
+
_DECIMAL_DIGITS = frozenset('0123456789')
|
|
1063
|
+
|
|
1064
|
+
# the valid octets for host and netmasks. only useful for IPv4.
|
|
1065
|
+
_valid_mask_octets = frozenset({255, 254, 252, 248, 240, 224, 192, 128, 0})
|
|
1066
|
+
|
|
1067
|
+
_max_prefixlen = IPV4LENGTH
|
|
1068
|
+
# There are only a handful of valid v4 netmasks, so we cache them all
|
|
1069
|
+
# when constructed (see _make_netmask()).
|
|
1070
|
+
_netmask_cache = {}
|
|
1071
|
+
|
|
1072
|
+
def _explode_shorthand_ip_string(self):
|
|
1073
|
+
return str(self)
|
|
1074
|
+
|
|
1075
|
+
@classmethod
|
|
1076
|
+
def _make_netmask(cls, arg):
|
|
1077
|
+
"""Make a (netmask, prefix_len) tuple from the given argument.
|
|
1078
|
+
|
|
1079
|
+
Argument can be:
|
|
1080
|
+
- an integer (the prefix length)
|
|
1081
|
+
- a string representing the prefix length (e.g. "24")
|
|
1082
|
+
- a string representing the prefix netmask (e.g. "255.255.255.0")
|
|
1083
|
+
"""
|
|
1084
|
+
if arg not in cls._netmask_cache:
|
|
1085
|
+
if isinstance(arg, int):
|
|
1086
|
+
prefixlen = arg
|
|
1087
|
+
else:
|
|
1088
|
+
try:
|
|
1089
|
+
# Check for a netmask in prefix length form
|
|
1090
|
+
prefixlen = cls._prefix_from_prefix_string(arg)
|
|
1091
|
+
except NetmaskValueError:
|
|
1092
|
+
# Check for a netmask or hostmask in dotted-quad form.
|
|
1093
|
+
# This may raise NetmaskValueError.
|
|
1094
|
+
prefixlen = cls._prefix_from_ip_string(arg)
|
|
1095
|
+
netmask = IPv4Address(cls._ip_int_from_prefix(prefixlen))
|
|
1096
|
+
cls._netmask_cache[arg] = netmask, prefixlen
|
|
1097
|
+
return cls._netmask_cache[arg]
|
|
1098
|
+
|
|
1099
|
+
@classmethod
|
|
1100
|
+
def _ip_int_from_string(cls, ip_str):
|
|
1101
|
+
"""Turn the given IP string into an integer for comparison.
|
|
1102
|
+
|
|
1103
|
+
Args:
|
|
1104
|
+
ip_str: A string, the IP ip_str.
|
|
1105
|
+
|
|
1106
|
+
Returns:
|
|
1107
|
+
The IP ip_str as an integer.
|
|
1108
|
+
|
|
1109
|
+
Raises:
|
|
1110
|
+
AddressValueError: if ip_str isn't a valid IPv4 Address.
|
|
1111
|
+
|
|
1112
|
+
"""
|
|
1113
|
+
if not ip_str:
|
|
1114
|
+
raise AddressValueError('Address cannot be empty')
|
|
1115
|
+
|
|
1116
|
+
octets = ip_str.split('.')
|
|
1117
|
+
if len(octets) != 4:
|
|
1118
|
+
raise AddressValueError("Expected 4 octets in %r" % ip_str)
|
|
1119
|
+
|
|
1120
|
+
try:
|
|
1121
|
+
return int.from_bytes(map(cls._parse_octet, octets), 'big')
|
|
1122
|
+
except ValueError as exc:
|
|
1123
|
+
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
|
|
1124
|
+
|
|
1125
|
+
@classmethod
|
|
1126
|
+
def _parse_octet(cls, octet_str):
|
|
1127
|
+
"""Convert a decimal octet into an integer.
|
|
1128
|
+
|
|
1129
|
+
Args:
|
|
1130
|
+
octet_str: A string, the number to parse.
|
|
1131
|
+
|
|
1132
|
+
Returns:
|
|
1133
|
+
The octet as an integer.
|
|
1134
|
+
|
|
1135
|
+
Raises:
|
|
1136
|
+
ValueError: if the octet isn't strictly a decimal from [0..255].
|
|
1137
|
+
|
|
1138
|
+
"""
|
|
1139
|
+
if not octet_str:
|
|
1140
|
+
raise ValueError("Empty octet not permitted")
|
|
1141
|
+
# Whitelist the characters, since int() allows a lot of bizarre stuff.
|
|
1142
|
+
if not cls._DECIMAL_DIGITS.issuperset(octet_str):
|
|
1143
|
+
msg = "Only decimal digits permitted in %r"
|
|
1144
|
+
raise ValueError(msg % octet_str)
|
|
1145
|
+
# We do the length check second, since the invalid character error
|
|
1146
|
+
# is likely to be more informative for the user
|
|
1147
|
+
if len(octet_str) > 3:
|
|
1148
|
+
msg = "At most 3 characters permitted in %r"
|
|
1149
|
+
raise ValueError(msg % octet_str)
|
|
1150
|
+
# Convert to integer (we know digits are legal)
|
|
1151
|
+
octet_int = int(octet_str, 10)
|
|
1152
|
+
# Any octets that look like they *might* be written in octal,
|
|
1153
|
+
# and which don't look exactly the same in both octal and
|
|
1154
|
+
# decimal are rejected as ambiguous
|
|
1155
|
+
if octet_int > 7 and octet_str[0] == '0':
|
|
1156
|
+
msg = "Ambiguous (octal/decimal) value in %r not permitted"
|
|
1157
|
+
raise ValueError(msg % octet_str)
|
|
1158
|
+
if octet_int > 255:
|
|
1159
|
+
raise ValueError("Octet %d (> 255) not permitted" % octet_int)
|
|
1160
|
+
return octet_int
|
|
1161
|
+
|
|
1162
|
+
@classmethod
|
|
1163
|
+
def _string_from_ip_int(cls, ip_int):
|
|
1164
|
+
"""Turns a 32-bit integer into dotted decimal notation.
|
|
1165
|
+
|
|
1166
|
+
Args:
|
|
1167
|
+
ip_int: An integer, the IP address.
|
|
1168
|
+
|
|
1169
|
+
Returns:
|
|
1170
|
+
The IP address as a string in dotted decimal notation.
|
|
1171
|
+
|
|
1172
|
+
"""
|
|
1173
|
+
return '.'.join(map(str, ip_int.to_bytes(4, 'big')))
|
|
1174
|
+
|
|
1175
|
+
def _is_valid_netmask(self, netmask):
|
|
1176
|
+
"""Verify that the netmask is valid.
|
|
1177
|
+
|
|
1178
|
+
Args:
|
|
1179
|
+
netmask: A string, either a prefix or dotted decimal
|
|
1180
|
+
netmask.
|
|
1181
|
+
|
|
1182
|
+
Returns:
|
|
1183
|
+
A boolean, True if the prefix represents a valid IPv4
|
|
1184
|
+
netmask.
|
|
1185
|
+
|
|
1186
|
+
"""
|
|
1187
|
+
mask = netmask.split('.')
|
|
1188
|
+
if len(mask) == 4:
|
|
1189
|
+
try:
|
|
1190
|
+
for x in mask:
|
|
1191
|
+
if int(x) not in self._valid_mask_octets:
|
|
1192
|
+
return False
|
|
1193
|
+
except ValueError:
|
|
1194
|
+
# Found something that isn't an integer or isn't valid
|
|
1195
|
+
return False
|
|
1196
|
+
for idx, y in enumerate(mask):
|
|
1197
|
+
if idx > 0 and y > mask[idx - 1]:
|
|
1198
|
+
return False
|
|
1199
|
+
return True
|
|
1200
|
+
try:
|
|
1201
|
+
netmask = int(netmask)
|
|
1202
|
+
except ValueError:
|
|
1203
|
+
return False
|
|
1204
|
+
return 0 <= netmask <= self._max_prefixlen
|
|
1205
|
+
|
|
1206
|
+
def _is_hostmask(self, ip_str):
|
|
1207
|
+
"""Test if the IP string is a hostmask (rather than a netmask).
|
|
1208
|
+
|
|
1209
|
+
Args:
|
|
1210
|
+
ip_str: A string, the potential hostmask.
|
|
1211
|
+
|
|
1212
|
+
Returns:
|
|
1213
|
+
A boolean, True if the IP string is a hostmask.
|
|
1214
|
+
|
|
1215
|
+
"""
|
|
1216
|
+
bits = ip_str.split('.')
|
|
1217
|
+
try:
|
|
1218
|
+
parts = [x for x in map(int, bits) if x in self._valid_mask_octets]
|
|
1219
|
+
except ValueError:
|
|
1220
|
+
return False
|
|
1221
|
+
if len(parts) != len(bits):
|
|
1222
|
+
return False
|
|
1223
|
+
if parts[0] < parts[-1]:
|
|
1224
|
+
return True
|
|
1225
|
+
return False
|
|
1226
|
+
|
|
1227
|
+
def _reverse_pointer(self):
|
|
1228
|
+
"""Return the reverse DNS pointer name for the IPv4 address.
|
|
1229
|
+
|
|
1230
|
+
This implements the method described in RFC1035 3.5.
|
|
1231
|
+
|
|
1232
|
+
"""
|
|
1233
|
+
reverse_octets = str(self).split('.')[::-1]
|
|
1234
|
+
return '.'.join(reverse_octets) + '.in-addr.arpa'
|
|
1235
|
+
|
|
1236
|
+
@property
|
|
1237
|
+
def max_prefixlen(self):
|
|
1238
|
+
return self._max_prefixlen
|
|
1239
|
+
|
|
1240
|
+
@property
|
|
1241
|
+
def version(self):
|
|
1242
|
+
return self._version
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
class IPv4Address(_BaseV4, _BaseAddress):
|
|
1246
|
+
|
|
1247
|
+
"""Represent and manipulate single IPv4 Addresses."""
|
|
1248
|
+
|
|
1249
|
+
__slots__ = ('_ip', '__weakref__')
|
|
1250
|
+
|
|
1251
|
+
def __init__(self, address):
|
|
1252
|
+
|
|
1253
|
+
"""
|
|
1254
|
+
Args:
|
|
1255
|
+
address: A string or integer representing the IP
|
|
1256
|
+
|
|
1257
|
+
Additionally, an integer can be passed, so
|
|
1258
|
+
IPv4Address('192.0.2.1') == IPv4Address(3221225985).
|
|
1259
|
+
or, more generally
|
|
1260
|
+
IPv4Address(int(IPv4Address('192.0.2.1'))) ==
|
|
1261
|
+
IPv4Address('192.0.2.1')
|
|
1262
|
+
|
|
1263
|
+
Raises:
|
|
1264
|
+
AddressValueError: If ipaddress isn't a valid IPv4 address.
|
|
1265
|
+
|
|
1266
|
+
"""
|
|
1267
|
+
# Efficient constructor from integer.
|
|
1268
|
+
if isinstance(address, int):
|
|
1269
|
+
self._check_int_address(address)
|
|
1270
|
+
self._ip = address
|
|
1271
|
+
return
|
|
1272
|
+
|
|
1273
|
+
# Constructing from a packed address
|
|
1274
|
+
if isinstance(address, bytes):
|
|
1275
|
+
self._check_packed_address(address, 4)
|
|
1276
|
+
self._ip = int.from_bytes(address, 'big')
|
|
1277
|
+
return
|
|
1278
|
+
|
|
1279
|
+
# Assume input argument to be string or any object representation
|
|
1280
|
+
# which converts into a formatted IP string.
|
|
1281
|
+
addr_str = str(address)
|
|
1282
|
+
if '/' in addr_str:
|
|
1283
|
+
raise AddressValueError("Unexpected '/' in %r" % address)
|
|
1284
|
+
self._ip = self._ip_int_from_string(addr_str)
|
|
1285
|
+
|
|
1286
|
+
@property
|
|
1287
|
+
def packed(self):
|
|
1288
|
+
"""The binary representation of this address."""
|
|
1289
|
+
return v4_int_to_packed(self._ip)
|
|
1290
|
+
|
|
1291
|
+
@property
|
|
1292
|
+
def is_reserved(self):
|
|
1293
|
+
"""Test if the address is otherwise IETF reserved.
|
|
1294
|
+
|
|
1295
|
+
Returns:
|
|
1296
|
+
A boolean, True if the address is within the
|
|
1297
|
+
reserved IPv4 Network range.
|
|
1298
|
+
|
|
1299
|
+
"""
|
|
1300
|
+
return self in self._constants._reserved_network
|
|
1301
|
+
|
|
1302
|
+
@property
|
|
1303
|
+
@functools.lru_cache()
|
|
1304
|
+
def is_private(self):
|
|
1305
|
+
"""Test if this address is allocated for private networks.
|
|
1306
|
+
|
|
1307
|
+
Returns:
|
|
1308
|
+
A boolean, True if the address is reserved per
|
|
1309
|
+
iana-ipv4-special-registry.
|
|
1310
|
+
|
|
1311
|
+
"""
|
|
1312
|
+
return any(self in net for net in self._constants._private_networks)
|
|
1313
|
+
|
|
1314
|
+
@property
|
|
1315
|
+
@functools.lru_cache()
|
|
1316
|
+
def is_global(self):
|
|
1317
|
+
return self not in self._constants._public_network and not self.is_private
|
|
1318
|
+
|
|
1319
|
+
@property
|
|
1320
|
+
def is_multicast(self):
|
|
1321
|
+
"""Test if the address is reserved for multicast use.
|
|
1322
|
+
|
|
1323
|
+
Returns:
|
|
1324
|
+
A boolean, True if the address is multicast.
|
|
1325
|
+
See RFC 3171 for details.
|
|
1326
|
+
|
|
1327
|
+
"""
|
|
1328
|
+
return self in self._constants._multicast_network
|
|
1329
|
+
|
|
1330
|
+
@property
|
|
1331
|
+
def is_unspecified(self):
|
|
1332
|
+
"""Test if the address is unspecified.
|
|
1333
|
+
|
|
1334
|
+
Returns:
|
|
1335
|
+
A boolean, True if this is the unspecified address as defined in
|
|
1336
|
+
RFC 5735 3.
|
|
1337
|
+
|
|
1338
|
+
"""
|
|
1339
|
+
return self == self._constants._unspecified_address
|
|
1340
|
+
|
|
1341
|
+
@property
|
|
1342
|
+
def is_loopback(self):
|
|
1343
|
+
"""Test if the address is a loopback address.
|
|
1344
|
+
|
|
1345
|
+
Returns:
|
|
1346
|
+
A boolean, True if the address is a loopback per RFC 3330.
|
|
1347
|
+
|
|
1348
|
+
"""
|
|
1349
|
+
return self in self._constants._loopback_network
|
|
1350
|
+
|
|
1351
|
+
@property
|
|
1352
|
+
def is_link_local(self):
|
|
1353
|
+
"""Test if the address is reserved for link-local.
|
|
1354
|
+
|
|
1355
|
+
Returns:
|
|
1356
|
+
A boolean, True if the address is link-local per RFC 3927.
|
|
1357
|
+
|
|
1358
|
+
"""
|
|
1359
|
+
return self in self._constants._linklocal_network
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
class IPv4Interface(IPv4Address):
|
|
1363
|
+
|
|
1364
|
+
def __init__(self, address):
|
|
1365
|
+
if isinstance(address, (bytes, int)):
|
|
1366
|
+
IPv4Address.__init__(self, address)
|
|
1367
|
+
self.network = IPv4Network(self._ip)
|
|
1368
|
+
self._prefixlen = self._max_prefixlen
|
|
1369
|
+
return
|
|
1370
|
+
|
|
1371
|
+
if isinstance(address, tuple):
|
|
1372
|
+
IPv4Address.__init__(self, address[0])
|
|
1373
|
+
if len(address) > 1:
|
|
1374
|
+
self._prefixlen = int(address[1])
|
|
1375
|
+
else:
|
|
1376
|
+
self._prefixlen = self._max_prefixlen
|
|
1377
|
+
|
|
1378
|
+
self.network = IPv4Network(address, strict=False)
|
|
1379
|
+
self.netmask = self.network.netmask
|
|
1380
|
+
self.hostmask = self.network.hostmask
|
|
1381
|
+
return
|
|
1382
|
+
|
|
1383
|
+
addr = _split_optional_netmask(address)
|
|
1384
|
+
IPv4Address.__init__(self, addr[0])
|
|
1385
|
+
|
|
1386
|
+
self.network = IPv4Network(address, strict=False)
|
|
1387
|
+
self._prefixlen = self.network._prefixlen
|
|
1388
|
+
|
|
1389
|
+
self.netmask = self.network.netmask
|
|
1390
|
+
self.hostmask = self.network.hostmask
|
|
1391
|
+
|
|
1392
|
+
def __str__(self):
|
|
1393
|
+
return '%s/%d' % (self._string_from_ip_int(self._ip),
|
|
1394
|
+
self.network.prefixlen)
|
|
1395
|
+
|
|
1396
|
+
def __eq__(self, other):
|
|
1397
|
+
address_equal = IPv4Address.__eq__(self, other)
|
|
1398
|
+
if not address_equal or address_equal is NotImplemented:
|
|
1399
|
+
return address_equal
|
|
1400
|
+
try:
|
|
1401
|
+
return self.network == other.network
|
|
1402
|
+
except AttributeError:
|
|
1403
|
+
# An interface with an associated network is NOT the
|
|
1404
|
+
# same as an unassociated address. That's why the hash
|
|
1405
|
+
# takes the extra info into account.
|
|
1406
|
+
return False
|
|
1407
|
+
|
|
1408
|
+
def __lt__(self, other):
|
|
1409
|
+
address_less = IPv4Address.__lt__(self, other)
|
|
1410
|
+
if address_less is NotImplemented:
|
|
1411
|
+
return NotImplemented
|
|
1412
|
+
try:
|
|
1413
|
+
return (self.network < other.network or
|
|
1414
|
+
self.network == other.network and address_less)
|
|
1415
|
+
except AttributeError:
|
|
1416
|
+
# We *do* allow addresses and interfaces to be sorted. The
|
|
1417
|
+
# unassociated address is considered less than all interfaces.
|
|
1418
|
+
return False
|
|
1419
|
+
|
|
1420
|
+
def __hash__(self):
|
|
1421
|
+
return self._ip ^ self._prefixlen ^ int(self.network.network_address)
|
|
1422
|
+
|
|
1423
|
+
__reduce__ = _IPAddressBase.__reduce__
|
|
1424
|
+
|
|
1425
|
+
@property
|
|
1426
|
+
def ip(self):
|
|
1427
|
+
return IPv4Address(self._ip)
|
|
1428
|
+
|
|
1429
|
+
@property
|
|
1430
|
+
def with_prefixlen(self):
|
|
1431
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
1432
|
+
self._prefixlen)
|
|
1433
|
+
|
|
1434
|
+
@property
|
|
1435
|
+
def with_netmask(self):
|
|
1436
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
1437
|
+
self.netmask)
|
|
1438
|
+
|
|
1439
|
+
@property
|
|
1440
|
+
def with_hostmask(self):
|
|
1441
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
1442
|
+
self.hostmask)
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
class IPv4Network(_BaseV4, _BaseNetwork):
|
|
1446
|
+
|
|
1447
|
+
"""This class represents and manipulates 32-bit IPv4 network + addresses..
|
|
1448
|
+
|
|
1449
|
+
Attributes: [examples for IPv4Network('192.0.2.0/27')]
|
|
1450
|
+
.network_address: IPv4Address('192.0.2.0')
|
|
1451
|
+
.hostmask: IPv4Address('0.0.0.31')
|
|
1452
|
+
.broadcast_address: IPv4Address('192.0.2.32')
|
|
1453
|
+
.netmask: IPv4Address('255.255.255.224')
|
|
1454
|
+
.prefixlen: 27
|
|
1455
|
+
|
|
1456
|
+
"""
|
|
1457
|
+
# Class to use when creating address objects
|
|
1458
|
+
_address_class = IPv4Address
|
|
1459
|
+
|
|
1460
|
+
def __init__(self, address, strict=True):
|
|
1461
|
+
|
|
1462
|
+
"""Instantiate a new IPv4 network object.
|
|
1463
|
+
|
|
1464
|
+
Args:
|
|
1465
|
+
address: A string or integer representing the IP [& network].
|
|
1466
|
+
'192.0.2.0/24'
|
|
1467
|
+
'192.0.2.0/255.255.255.0'
|
|
1468
|
+
'192.0.0.2/0.0.0.255'
|
|
1469
|
+
are all functionally the same in IPv4. Similarly,
|
|
1470
|
+
'192.0.2.1'
|
|
1471
|
+
'192.0.2.1/255.255.255.255'
|
|
1472
|
+
'192.0.2.1/32'
|
|
1473
|
+
are also functionally equivalent. That is to say, failing to
|
|
1474
|
+
provide a subnetmask will create an object with a mask of /32.
|
|
1475
|
+
|
|
1476
|
+
If the mask (portion after the / in the argument) is given in
|
|
1477
|
+
dotted quad form, it is treated as a netmask if it starts with a
|
|
1478
|
+
non-zero field (e.g. /255.0.0.0 == /8) and as a hostmask if it
|
|
1479
|
+
starts with a zero field (e.g. 0.255.255.255 == /8), with the
|
|
1480
|
+
single exception of an all-zero mask which is treated as a
|
|
1481
|
+
netmask == /0. If no mask is given, a default of /32 is used.
|
|
1482
|
+
|
|
1483
|
+
Additionally, an integer can be passed, so
|
|
1484
|
+
IPv4Network('192.0.2.1') == IPv4Network(3221225985)
|
|
1485
|
+
or, more generally
|
|
1486
|
+
IPv4Interface(int(IPv4Interface('192.0.2.1'))) ==
|
|
1487
|
+
IPv4Interface('192.0.2.1')
|
|
1488
|
+
|
|
1489
|
+
Raises:
|
|
1490
|
+
AddressValueError: If ipaddress isn't a valid IPv4 address.
|
|
1491
|
+
NetmaskValueError: If the netmask isn't valid for
|
|
1492
|
+
an IPv4 address.
|
|
1493
|
+
ValueError: If strict is True and a network address is not
|
|
1494
|
+
supplied.
|
|
1495
|
+
|
|
1496
|
+
"""
|
|
1497
|
+
_BaseNetwork.__init__(self, address)
|
|
1498
|
+
|
|
1499
|
+
# Constructing from a packed address or integer
|
|
1500
|
+
if isinstance(address, (int, bytes)):
|
|
1501
|
+
self.network_address = IPv4Address(address)
|
|
1502
|
+
self.netmask, self._prefixlen = self._make_netmask(self._max_prefixlen)
|
|
1503
|
+
#fixme: address/network test here.
|
|
1504
|
+
return
|
|
1505
|
+
|
|
1506
|
+
if isinstance(address, tuple):
|
|
1507
|
+
if len(address) > 1:
|
|
1508
|
+
arg = address[1]
|
|
1509
|
+
else:
|
|
1510
|
+
# We weren't given an address[1]
|
|
1511
|
+
arg = self._max_prefixlen
|
|
1512
|
+
self.network_address = IPv4Address(address[0])
|
|
1513
|
+
self.netmask, self._prefixlen = self._make_netmask(arg)
|
|
1514
|
+
packed = int(self.network_address)
|
|
1515
|
+
if packed & int(self.netmask) != packed:
|
|
1516
|
+
if strict:
|
|
1517
|
+
raise ValueError('%s has host bits set' % self)
|
|
1518
|
+
else:
|
|
1519
|
+
self.network_address = IPv4Address(packed &
|
|
1520
|
+
int(self.netmask))
|
|
1521
|
+
return
|
|
1522
|
+
|
|
1523
|
+
# Assume input argument to be string or any object representation
|
|
1524
|
+
# which converts into a formatted IP prefix string.
|
|
1525
|
+
addr = _split_optional_netmask(address)
|
|
1526
|
+
self.network_address = IPv4Address(self._ip_int_from_string(addr[0]))
|
|
1527
|
+
|
|
1528
|
+
if len(addr) == 2:
|
|
1529
|
+
arg = addr[1]
|
|
1530
|
+
else:
|
|
1531
|
+
arg = self._max_prefixlen
|
|
1532
|
+
self.netmask, self._prefixlen = self._make_netmask(arg)
|
|
1533
|
+
|
|
1534
|
+
if strict:
|
|
1535
|
+
if (IPv4Address(int(self.network_address) & int(self.netmask)) !=
|
|
1536
|
+
self.network_address):
|
|
1537
|
+
raise ValueError('%s has host bits set' % self)
|
|
1538
|
+
self.network_address = IPv4Address(int(self.network_address) &
|
|
1539
|
+
int(self.netmask))
|
|
1540
|
+
|
|
1541
|
+
if self._prefixlen == (self._max_prefixlen - 1):
|
|
1542
|
+
self.hosts = self.__iter__
|
|
1543
|
+
|
|
1544
|
+
@property
|
|
1545
|
+
@functools.lru_cache()
|
|
1546
|
+
def is_global(self):
|
|
1547
|
+
"""Test if this address is allocated for public networks.
|
|
1548
|
+
|
|
1549
|
+
Returns:
|
|
1550
|
+
A boolean, True if the address is not reserved per
|
|
1551
|
+
iana-ipv4-special-registry.
|
|
1552
|
+
|
|
1553
|
+
"""
|
|
1554
|
+
return (not (self.network_address in IPv4Network('100.64.0.0/10') and
|
|
1555
|
+
self.broadcast_address in IPv4Network('100.64.0.0/10')) and
|
|
1556
|
+
not self.is_private)
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
class _IPv4Constants:
|
|
1560
|
+
_linklocal_network = IPv4Network('169.254.0.0/16')
|
|
1561
|
+
|
|
1562
|
+
_loopback_network = IPv4Network('127.0.0.0/8')
|
|
1563
|
+
|
|
1564
|
+
_multicast_network = IPv4Network('224.0.0.0/4')
|
|
1565
|
+
|
|
1566
|
+
_public_network = IPv4Network('100.64.0.0/10')
|
|
1567
|
+
|
|
1568
|
+
_private_networks = [
|
|
1569
|
+
IPv4Network('0.0.0.0/8'),
|
|
1570
|
+
IPv4Network('10.0.0.0/8'),
|
|
1571
|
+
IPv4Network('127.0.0.0/8'),
|
|
1572
|
+
IPv4Network('169.254.0.0/16'),
|
|
1573
|
+
IPv4Network('172.16.0.0/12'),
|
|
1574
|
+
IPv4Network('192.0.0.0/29'),
|
|
1575
|
+
IPv4Network('192.0.0.170/31'),
|
|
1576
|
+
IPv4Network('192.0.2.0/24'),
|
|
1577
|
+
IPv4Network('192.168.0.0/16'),
|
|
1578
|
+
IPv4Network('198.18.0.0/15'),
|
|
1579
|
+
IPv4Network('198.51.100.0/24'),
|
|
1580
|
+
IPv4Network('203.0.113.0/24'),
|
|
1581
|
+
IPv4Network('240.0.0.0/4'),
|
|
1582
|
+
IPv4Network('255.255.255.255/32'),
|
|
1583
|
+
]
|
|
1584
|
+
|
|
1585
|
+
_reserved_network = IPv4Network('240.0.0.0/4')
|
|
1586
|
+
|
|
1587
|
+
_unspecified_address = IPv4Address('0.0.0.0')
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
IPv4Address._constants = _IPv4Constants
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
class _BaseV6:
|
|
1594
|
+
|
|
1595
|
+
"""Base IPv6 object.
|
|
1596
|
+
|
|
1597
|
+
The following methods are used by IPv6 objects in both single IP
|
|
1598
|
+
addresses and networks.
|
|
1599
|
+
|
|
1600
|
+
"""
|
|
1601
|
+
|
|
1602
|
+
__slots__ = ()
|
|
1603
|
+
_version = 6
|
|
1604
|
+
_ALL_ONES = (2**IPV6LENGTH) - 1
|
|
1605
|
+
_HEXTET_COUNT = 8
|
|
1606
|
+
_HEX_DIGITS = frozenset('0123456789ABCDEFabcdef')
|
|
1607
|
+
_max_prefixlen = IPV6LENGTH
|
|
1608
|
+
|
|
1609
|
+
# There are only a bunch of valid v6 netmasks, so we cache them all
|
|
1610
|
+
# when constructed (see _make_netmask()).
|
|
1611
|
+
_netmask_cache = {}
|
|
1612
|
+
|
|
1613
|
+
@classmethod
|
|
1614
|
+
def _make_netmask(cls, arg):
|
|
1615
|
+
"""Make a (netmask, prefix_len) tuple from the given argument.
|
|
1616
|
+
|
|
1617
|
+
Argument can be:
|
|
1618
|
+
- an integer (the prefix length)
|
|
1619
|
+
- a string representing the prefix length (e.g. "24")
|
|
1620
|
+
- a string representing the prefix netmask (e.g. "255.255.255.0")
|
|
1621
|
+
"""
|
|
1622
|
+
if arg not in cls._netmask_cache:
|
|
1623
|
+
if isinstance(arg, int):
|
|
1624
|
+
prefixlen = arg
|
|
1625
|
+
else:
|
|
1626
|
+
prefixlen = cls._prefix_from_prefix_string(arg)
|
|
1627
|
+
netmask = IPv6Address(cls._ip_int_from_prefix(prefixlen))
|
|
1628
|
+
cls._netmask_cache[arg] = netmask, prefixlen
|
|
1629
|
+
return cls._netmask_cache[arg]
|
|
1630
|
+
|
|
1631
|
+
@classmethod
|
|
1632
|
+
def _ip_int_from_string(cls, ip_str):
|
|
1633
|
+
"""Turn an IPv6 ip_str into an integer.
|
|
1634
|
+
|
|
1635
|
+
Args:
|
|
1636
|
+
ip_str: A string, the IPv6 ip_str.
|
|
1637
|
+
|
|
1638
|
+
Returns:
|
|
1639
|
+
An int, the IPv6 address
|
|
1640
|
+
|
|
1641
|
+
Raises:
|
|
1642
|
+
AddressValueError: if ip_str isn't a valid IPv6 Address.
|
|
1643
|
+
|
|
1644
|
+
"""
|
|
1645
|
+
if not ip_str:
|
|
1646
|
+
raise AddressValueError('Address cannot be empty')
|
|
1647
|
+
|
|
1648
|
+
parts = ip_str.split(':')
|
|
1649
|
+
|
|
1650
|
+
# An IPv6 address needs at least 2 colons (3 parts).
|
|
1651
|
+
_min_parts = 3
|
|
1652
|
+
if len(parts) < _min_parts:
|
|
1653
|
+
msg = "At least %d parts expected in %r" % (_min_parts, ip_str)
|
|
1654
|
+
raise AddressValueError(msg)
|
|
1655
|
+
|
|
1656
|
+
# If the address has an IPv4-style suffix, convert it to hexadecimal.
|
|
1657
|
+
if '.' in parts[-1]:
|
|
1658
|
+
try:
|
|
1659
|
+
ipv4_int = IPv4Address(parts.pop())._ip
|
|
1660
|
+
except AddressValueError as exc:
|
|
1661
|
+
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
|
|
1662
|
+
parts.append('%x' % ((ipv4_int >> 16) & 0xFFFF))
|
|
1663
|
+
parts.append('%x' % (ipv4_int & 0xFFFF))
|
|
1664
|
+
|
|
1665
|
+
# An IPv6 address can't have more than 8 colons (9 parts).
|
|
1666
|
+
# The extra colon comes from using the "::" notation for a single
|
|
1667
|
+
# leading or trailing zero part.
|
|
1668
|
+
_max_parts = cls._HEXTET_COUNT + 1
|
|
1669
|
+
if len(parts) > _max_parts:
|
|
1670
|
+
msg = "At most %d colons permitted in %r" % (_max_parts-1, ip_str)
|
|
1671
|
+
raise AddressValueError(msg)
|
|
1672
|
+
|
|
1673
|
+
# Disregarding the endpoints, find '::' with nothing in between.
|
|
1674
|
+
# This indicates that a run of zeroes has been skipped.
|
|
1675
|
+
skip_index = None
|
|
1676
|
+
for i in range(1, len(parts) - 1):
|
|
1677
|
+
if not parts[i]:
|
|
1678
|
+
if skip_index is not None:
|
|
1679
|
+
# Can't have more than one '::'
|
|
1680
|
+
msg = "At most one '::' permitted in %r" % ip_str
|
|
1681
|
+
raise AddressValueError(msg)
|
|
1682
|
+
skip_index = i
|
|
1683
|
+
|
|
1684
|
+
# parts_hi is the number of parts to copy from above/before the '::'
|
|
1685
|
+
# parts_lo is the number of parts to copy from below/after the '::'
|
|
1686
|
+
if skip_index is not None:
|
|
1687
|
+
# If we found a '::', then check if it also covers the endpoints.
|
|
1688
|
+
parts_hi = skip_index
|
|
1689
|
+
parts_lo = len(parts) - skip_index - 1
|
|
1690
|
+
if not parts[0]:
|
|
1691
|
+
parts_hi -= 1
|
|
1692
|
+
if parts_hi:
|
|
1693
|
+
msg = "Leading ':' only permitted as part of '::' in %r"
|
|
1694
|
+
raise AddressValueError(msg % ip_str) # ^: requires ^::
|
|
1695
|
+
if not parts[-1]:
|
|
1696
|
+
parts_lo -= 1
|
|
1697
|
+
if parts_lo:
|
|
1698
|
+
msg = "Trailing ':' only permitted as part of '::' in %r"
|
|
1699
|
+
raise AddressValueError(msg % ip_str) # :$ requires ::$
|
|
1700
|
+
parts_skipped = cls._HEXTET_COUNT - (parts_hi + parts_lo)
|
|
1701
|
+
if parts_skipped < 1:
|
|
1702
|
+
msg = "Expected at most %d other parts with '::' in %r"
|
|
1703
|
+
raise AddressValueError(msg % (cls._HEXTET_COUNT-1, ip_str))
|
|
1704
|
+
else:
|
|
1705
|
+
# Otherwise, allocate the entire address to parts_hi. The
|
|
1706
|
+
# endpoints could still be empty, but _parse_hextet() will check
|
|
1707
|
+
# for that.
|
|
1708
|
+
if len(parts) != cls._HEXTET_COUNT:
|
|
1709
|
+
msg = "Exactly %d parts expected without '::' in %r"
|
|
1710
|
+
raise AddressValueError(msg % (cls._HEXTET_COUNT, ip_str))
|
|
1711
|
+
if not parts[0]:
|
|
1712
|
+
msg = "Leading ':' only permitted as part of '::' in %r"
|
|
1713
|
+
raise AddressValueError(msg % ip_str) # ^: requires ^::
|
|
1714
|
+
if not parts[-1]:
|
|
1715
|
+
msg = "Trailing ':' only permitted as part of '::' in %r"
|
|
1716
|
+
raise AddressValueError(msg % ip_str) # :$ requires ::$
|
|
1717
|
+
parts_hi = len(parts)
|
|
1718
|
+
parts_lo = 0
|
|
1719
|
+
parts_skipped = 0
|
|
1720
|
+
|
|
1721
|
+
try:
|
|
1722
|
+
# Now, parse the hextets into a 128-bit integer.
|
|
1723
|
+
ip_int = 0
|
|
1724
|
+
for i in range(parts_hi):
|
|
1725
|
+
ip_int <<= 16
|
|
1726
|
+
ip_int |= cls._parse_hextet(parts[i])
|
|
1727
|
+
ip_int <<= 16 * parts_skipped
|
|
1728
|
+
for i in range(-parts_lo, 0):
|
|
1729
|
+
ip_int <<= 16
|
|
1730
|
+
ip_int |= cls._parse_hextet(parts[i])
|
|
1731
|
+
return ip_int
|
|
1732
|
+
except ValueError as exc:
|
|
1733
|
+
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
|
|
1734
|
+
|
|
1735
|
+
@classmethod
|
|
1736
|
+
def _parse_hextet(cls, hextet_str):
|
|
1737
|
+
"""Convert an IPv6 hextet string into an integer.
|
|
1738
|
+
|
|
1739
|
+
Args:
|
|
1740
|
+
hextet_str: A string, the number to parse.
|
|
1741
|
+
|
|
1742
|
+
Returns:
|
|
1743
|
+
The hextet as an integer.
|
|
1744
|
+
|
|
1745
|
+
Raises:
|
|
1746
|
+
ValueError: if the input isn't strictly a hex number from
|
|
1747
|
+
[0..FFFF].
|
|
1748
|
+
|
|
1749
|
+
"""
|
|
1750
|
+
# Whitelist the characters, since int() allows a lot of bizarre stuff.
|
|
1751
|
+
if not cls._HEX_DIGITS.issuperset(hextet_str):
|
|
1752
|
+
raise ValueError("Only hex digits permitted in %r" % hextet_str)
|
|
1753
|
+
# We do the length check second, since the invalid character error
|
|
1754
|
+
# is likely to be more informative for the user
|
|
1755
|
+
if len(hextet_str) > 4:
|
|
1756
|
+
msg = "At most 4 characters permitted in %r"
|
|
1757
|
+
raise ValueError(msg % hextet_str)
|
|
1758
|
+
# Length check means we can skip checking the integer value
|
|
1759
|
+
return int(hextet_str, 16)
|
|
1760
|
+
|
|
1761
|
+
@classmethod
|
|
1762
|
+
def _compress_hextets(cls, hextets):
|
|
1763
|
+
"""Compresses a list of hextets.
|
|
1764
|
+
|
|
1765
|
+
Compresses a list of strings, replacing the longest continuous
|
|
1766
|
+
sequence of "0" in the list with "" and adding empty strings at
|
|
1767
|
+
the beginning or at the end of the string such that subsequently
|
|
1768
|
+
calling ":".join(hextets) will produce the compressed version of
|
|
1769
|
+
the IPv6 address.
|
|
1770
|
+
|
|
1771
|
+
Args:
|
|
1772
|
+
hextets: A list of strings, the hextets to compress.
|
|
1773
|
+
|
|
1774
|
+
Returns:
|
|
1775
|
+
A list of strings.
|
|
1776
|
+
|
|
1777
|
+
"""
|
|
1778
|
+
best_doublecolon_start = -1
|
|
1779
|
+
best_doublecolon_len = 0
|
|
1780
|
+
doublecolon_start = -1
|
|
1781
|
+
doublecolon_len = 0
|
|
1782
|
+
for index, hextet in enumerate(hextets):
|
|
1783
|
+
if hextet == '0':
|
|
1784
|
+
doublecolon_len += 1
|
|
1785
|
+
if doublecolon_start == -1:
|
|
1786
|
+
# Start of a sequence of zeros.
|
|
1787
|
+
doublecolon_start = index
|
|
1788
|
+
if doublecolon_len > best_doublecolon_len:
|
|
1789
|
+
# This is the longest sequence of zeros so far.
|
|
1790
|
+
best_doublecolon_len = doublecolon_len
|
|
1791
|
+
best_doublecolon_start = doublecolon_start
|
|
1792
|
+
else:
|
|
1793
|
+
doublecolon_len = 0
|
|
1794
|
+
doublecolon_start = -1
|
|
1795
|
+
|
|
1796
|
+
if best_doublecolon_len > 1:
|
|
1797
|
+
best_doublecolon_end = (best_doublecolon_start +
|
|
1798
|
+
best_doublecolon_len)
|
|
1799
|
+
# For zeros at the end of the address.
|
|
1800
|
+
if best_doublecolon_end == len(hextets):
|
|
1801
|
+
hextets += ['']
|
|
1802
|
+
hextets[best_doublecolon_start:best_doublecolon_end] = ['']
|
|
1803
|
+
# For zeros at the beginning of the address.
|
|
1804
|
+
if best_doublecolon_start == 0:
|
|
1805
|
+
hextets = [''] + hextets
|
|
1806
|
+
|
|
1807
|
+
return hextets
|
|
1808
|
+
|
|
1809
|
+
@classmethod
|
|
1810
|
+
def _string_from_ip_int(cls, ip_int=None):
|
|
1811
|
+
"""Turns a 128-bit integer into hexadecimal notation.
|
|
1812
|
+
|
|
1813
|
+
Args:
|
|
1814
|
+
ip_int: An integer, the IP address.
|
|
1815
|
+
|
|
1816
|
+
Returns:
|
|
1817
|
+
A string, the hexadecimal representation of the address.
|
|
1818
|
+
|
|
1819
|
+
Raises:
|
|
1820
|
+
ValueError: The address is bigger than 128 bits of all ones.
|
|
1821
|
+
|
|
1822
|
+
"""
|
|
1823
|
+
if ip_int is None:
|
|
1824
|
+
ip_int = int(cls._ip)
|
|
1825
|
+
|
|
1826
|
+
if ip_int > cls._ALL_ONES:
|
|
1827
|
+
raise ValueError('IPv6 address is too large')
|
|
1828
|
+
|
|
1829
|
+
hex_str = '%032x' % ip_int
|
|
1830
|
+
hextets = ['%x' % int(hex_str[x:x+4], 16) for x in range(0, 32, 4)]
|
|
1831
|
+
|
|
1832
|
+
hextets = cls._compress_hextets(hextets)
|
|
1833
|
+
return ':'.join(hextets)
|
|
1834
|
+
|
|
1835
|
+
def _explode_shorthand_ip_string(self):
|
|
1836
|
+
"""Expand a shortened IPv6 address.
|
|
1837
|
+
|
|
1838
|
+
Args:
|
|
1839
|
+
ip_str: A string, the IPv6 address.
|
|
1840
|
+
|
|
1841
|
+
Returns:
|
|
1842
|
+
A string, the expanded IPv6 address.
|
|
1843
|
+
|
|
1844
|
+
"""
|
|
1845
|
+
if isinstance(self, IPv6Network):
|
|
1846
|
+
ip_str = str(self.network_address)
|
|
1847
|
+
elif isinstance(self, IPv6Interface):
|
|
1848
|
+
ip_str = str(self.ip)
|
|
1849
|
+
else:
|
|
1850
|
+
ip_str = str(self)
|
|
1851
|
+
|
|
1852
|
+
ip_int = self._ip_int_from_string(ip_str)
|
|
1853
|
+
hex_str = '%032x' % ip_int
|
|
1854
|
+
parts = [hex_str[x:x+4] for x in range(0, 32, 4)]
|
|
1855
|
+
if isinstance(self, (_BaseNetwork, IPv6Interface)):
|
|
1856
|
+
return '%s/%d' % (':'.join(parts), self._prefixlen)
|
|
1857
|
+
return ':'.join(parts)
|
|
1858
|
+
|
|
1859
|
+
def _reverse_pointer(self):
|
|
1860
|
+
"""Return the reverse DNS pointer name for the IPv6 address.
|
|
1861
|
+
|
|
1862
|
+
This implements the method described in RFC3596 2.5.
|
|
1863
|
+
|
|
1864
|
+
"""
|
|
1865
|
+
reverse_chars = self.exploded[::-1].replace(':', '')
|
|
1866
|
+
return '.'.join(reverse_chars) + '.ip6.arpa'
|
|
1867
|
+
|
|
1868
|
+
@property
|
|
1869
|
+
def max_prefixlen(self):
|
|
1870
|
+
return self._max_prefixlen
|
|
1871
|
+
|
|
1872
|
+
@property
|
|
1873
|
+
def version(self):
|
|
1874
|
+
return self._version
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
class IPv6Address(_BaseV6, _BaseAddress):
|
|
1878
|
+
|
|
1879
|
+
"""Represent and manipulate single IPv6 Addresses."""
|
|
1880
|
+
|
|
1881
|
+
__slots__ = ('_ip', '__weakref__')
|
|
1882
|
+
|
|
1883
|
+
def __init__(self, address):
|
|
1884
|
+
"""Instantiate a new IPv6 address object.
|
|
1885
|
+
|
|
1886
|
+
Args:
|
|
1887
|
+
address: A string or integer representing the IP
|
|
1888
|
+
|
|
1889
|
+
Additionally, an integer can be passed, so
|
|
1890
|
+
IPv6Address('2001:db8::') ==
|
|
1891
|
+
IPv6Address(42540766411282592856903984951653826560)
|
|
1892
|
+
or, more generally
|
|
1893
|
+
IPv6Address(int(IPv6Address('2001:db8::'))) ==
|
|
1894
|
+
IPv6Address('2001:db8::')
|
|
1895
|
+
|
|
1896
|
+
Raises:
|
|
1897
|
+
AddressValueError: If address isn't a valid IPv6 address.
|
|
1898
|
+
|
|
1899
|
+
"""
|
|
1900
|
+
# Efficient constructor from integer.
|
|
1901
|
+
if isinstance(address, int):
|
|
1902
|
+
self._check_int_address(address)
|
|
1903
|
+
self._ip = address
|
|
1904
|
+
return
|
|
1905
|
+
|
|
1906
|
+
# Constructing from a packed address
|
|
1907
|
+
if isinstance(address, bytes):
|
|
1908
|
+
self._check_packed_address(address, 16)
|
|
1909
|
+
self._ip = int.from_bytes(address, 'big')
|
|
1910
|
+
return
|
|
1911
|
+
|
|
1912
|
+
# Assume input argument to be string or any object representation
|
|
1913
|
+
# which converts into a formatted IP string.
|
|
1914
|
+
addr_str = str(address)
|
|
1915
|
+
if '/' in addr_str:
|
|
1916
|
+
raise AddressValueError("Unexpected '/' in %r" % address)
|
|
1917
|
+
self._ip = self._ip_int_from_string(addr_str)
|
|
1918
|
+
|
|
1919
|
+
@property
|
|
1920
|
+
def packed(self):
|
|
1921
|
+
"""The binary representation of this address."""
|
|
1922
|
+
return v6_int_to_packed(self._ip)
|
|
1923
|
+
|
|
1924
|
+
@property
|
|
1925
|
+
def is_multicast(self):
|
|
1926
|
+
"""Test if the address is reserved for multicast use.
|
|
1927
|
+
|
|
1928
|
+
Returns:
|
|
1929
|
+
A boolean, True if the address is a multicast address.
|
|
1930
|
+
See RFC 2373 2.7 for details.
|
|
1931
|
+
|
|
1932
|
+
"""
|
|
1933
|
+
return self in self._constants._multicast_network
|
|
1934
|
+
|
|
1935
|
+
@property
|
|
1936
|
+
def is_reserved(self):
|
|
1937
|
+
"""Test if the address is otherwise IETF reserved.
|
|
1938
|
+
|
|
1939
|
+
Returns:
|
|
1940
|
+
A boolean, True if the address is within one of the
|
|
1941
|
+
reserved IPv6 Network ranges.
|
|
1942
|
+
|
|
1943
|
+
"""
|
|
1944
|
+
return any(self in x for x in self._constants._reserved_networks)
|
|
1945
|
+
|
|
1946
|
+
@property
|
|
1947
|
+
def is_link_local(self):
|
|
1948
|
+
"""Test if the address is reserved for link-local.
|
|
1949
|
+
|
|
1950
|
+
Returns:
|
|
1951
|
+
A boolean, True if the address is reserved per RFC 4291.
|
|
1952
|
+
|
|
1953
|
+
"""
|
|
1954
|
+
return self in self._constants._linklocal_network
|
|
1955
|
+
|
|
1956
|
+
@property
|
|
1957
|
+
def is_site_local(self):
|
|
1958
|
+
"""Test if the address is reserved for site-local.
|
|
1959
|
+
|
|
1960
|
+
Note that the site-local address space has been deprecated by RFC 3879.
|
|
1961
|
+
Use is_private to test if this address is in the space of unique local
|
|
1962
|
+
addresses as defined by RFC 4193.
|
|
1963
|
+
|
|
1964
|
+
Returns:
|
|
1965
|
+
A boolean, True if the address is reserved per RFC 3513 2.5.6.
|
|
1966
|
+
|
|
1967
|
+
"""
|
|
1968
|
+
return self in self._constants._sitelocal_network
|
|
1969
|
+
|
|
1970
|
+
@property
|
|
1971
|
+
@functools.lru_cache()
|
|
1972
|
+
def is_private(self):
|
|
1973
|
+
"""Test if this address is allocated for private networks.
|
|
1974
|
+
|
|
1975
|
+
Returns:
|
|
1976
|
+
A boolean, True if the address is reserved per
|
|
1977
|
+
iana-ipv6-special-registry.
|
|
1978
|
+
|
|
1979
|
+
"""
|
|
1980
|
+
return any(self in net for net in self._constants._private_networks)
|
|
1981
|
+
|
|
1982
|
+
@property
|
|
1983
|
+
def is_global(self):
|
|
1984
|
+
"""Test if this address is allocated for public networks.
|
|
1985
|
+
|
|
1986
|
+
Returns:
|
|
1987
|
+
A boolean, true if the address is not reserved per
|
|
1988
|
+
iana-ipv6-special-registry.
|
|
1989
|
+
|
|
1990
|
+
"""
|
|
1991
|
+
return not self.is_private
|
|
1992
|
+
|
|
1993
|
+
@property
|
|
1994
|
+
def is_unspecified(self):
|
|
1995
|
+
"""Test if the address is unspecified.
|
|
1996
|
+
|
|
1997
|
+
Returns:
|
|
1998
|
+
A boolean, True if this is the unspecified address as defined in
|
|
1999
|
+
RFC 2373 2.5.2.
|
|
2000
|
+
|
|
2001
|
+
"""
|
|
2002
|
+
return self._ip == 0
|
|
2003
|
+
|
|
2004
|
+
@property
|
|
2005
|
+
def is_loopback(self):
|
|
2006
|
+
"""Test if the address is a loopback address.
|
|
2007
|
+
|
|
2008
|
+
Returns:
|
|
2009
|
+
A boolean, True if the address is a loopback address as defined in
|
|
2010
|
+
RFC 2373 2.5.3.
|
|
2011
|
+
|
|
2012
|
+
"""
|
|
2013
|
+
return self._ip == 1
|
|
2014
|
+
|
|
2015
|
+
@property
|
|
2016
|
+
def ipv4_mapped(self):
|
|
2017
|
+
"""Return the IPv4 mapped address.
|
|
2018
|
+
|
|
2019
|
+
Returns:
|
|
2020
|
+
If the IPv6 address is a v4 mapped address, return the
|
|
2021
|
+
IPv4 mapped address. Return None otherwise.
|
|
2022
|
+
|
|
2023
|
+
"""
|
|
2024
|
+
if (self._ip >> 32) != 0xFFFF:
|
|
2025
|
+
return None
|
|
2026
|
+
return IPv4Address(self._ip & 0xFFFFFFFF)
|
|
2027
|
+
|
|
2028
|
+
@property
|
|
2029
|
+
def teredo(self):
|
|
2030
|
+
"""Tuple of embedded teredo IPs.
|
|
2031
|
+
|
|
2032
|
+
Returns:
|
|
2033
|
+
Tuple of the (server, client) IPs or None if the address
|
|
2034
|
+
doesn't appear to be a teredo address (doesn't start with
|
|
2035
|
+
2001::/32)
|
|
2036
|
+
|
|
2037
|
+
"""
|
|
2038
|
+
if (self._ip >> 96) != 0x20010000:
|
|
2039
|
+
return None
|
|
2040
|
+
return (IPv4Address((self._ip >> 64) & 0xFFFFFFFF),
|
|
2041
|
+
IPv4Address(~self._ip & 0xFFFFFFFF))
|
|
2042
|
+
|
|
2043
|
+
@property
|
|
2044
|
+
def sixtofour(self):
|
|
2045
|
+
"""Return the IPv4 6to4 embedded address.
|
|
2046
|
+
|
|
2047
|
+
Returns:
|
|
2048
|
+
The IPv4 6to4-embedded address if present or None if the
|
|
2049
|
+
address doesn't appear to contain a 6to4 embedded address.
|
|
2050
|
+
|
|
2051
|
+
"""
|
|
2052
|
+
if (self._ip >> 112) != 0x2002:
|
|
2053
|
+
return None
|
|
2054
|
+
return IPv4Address((self._ip >> 80) & 0xFFFFFFFF)
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
class IPv6Interface(IPv6Address):
|
|
2058
|
+
|
|
2059
|
+
def __init__(self, address):
|
|
2060
|
+
if isinstance(address, (bytes, int)):
|
|
2061
|
+
IPv6Address.__init__(self, address)
|
|
2062
|
+
self.network = IPv6Network(self._ip)
|
|
2063
|
+
self._prefixlen = self._max_prefixlen
|
|
2064
|
+
return
|
|
2065
|
+
if isinstance(address, tuple):
|
|
2066
|
+
IPv6Address.__init__(self, address[0])
|
|
2067
|
+
if len(address) > 1:
|
|
2068
|
+
self._prefixlen = int(address[1])
|
|
2069
|
+
else:
|
|
2070
|
+
self._prefixlen = self._max_prefixlen
|
|
2071
|
+
self.network = IPv6Network(address, strict=False)
|
|
2072
|
+
self.netmask = self.network.netmask
|
|
2073
|
+
self.hostmask = self.network.hostmask
|
|
2074
|
+
return
|
|
2075
|
+
|
|
2076
|
+
addr = _split_optional_netmask(address)
|
|
2077
|
+
IPv6Address.__init__(self, addr[0])
|
|
2078
|
+
self.network = IPv6Network(address, strict=False)
|
|
2079
|
+
self.netmask = self.network.netmask
|
|
2080
|
+
self._prefixlen = self.network._prefixlen
|
|
2081
|
+
self.hostmask = self.network.hostmask
|
|
2082
|
+
|
|
2083
|
+
def __str__(self):
|
|
2084
|
+
return '%s/%d' % (self._string_from_ip_int(self._ip),
|
|
2085
|
+
self.network.prefixlen)
|
|
2086
|
+
|
|
2087
|
+
def __eq__(self, other):
|
|
2088
|
+
address_equal = IPv6Address.__eq__(self, other)
|
|
2089
|
+
if not address_equal or address_equal is NotImplemented:
|
|
2090
|
+
return address_equal
|
|
2091
|
+
try:
|
|
2092
|
+
return self.network == other.network
|
|
2093
|
+
except AttributeError:
|
|
2094
|
+
# An interface with an associated network is NOT the
|
|
2095
|
+
# same as an unassociated address. That's why the hash
|
|
2096
|
+
# takes the extra info into account.
|
|
2097
|
+
return False
|
|
2098
|
+
|
|
2099
|
+
def __lt__(self, other):
|
|
2100
|
+
address_less = IPv6Address.__lt__(self, other)
|
|
2101
|
+
if address_less is NotImplemented:
|
|
2102
|
+
return NotImplemented
|
|
2103
|
+
try:
|
|
2104
|
+
return (self.network < other.network or
|
|
2105
|
+
self.network == other.network and address_less)
|
|
2106
|
+
except AttributeError:
|
|
2107
|
+
# We *do* allow addresses and interfaces to be sorted. The
|
|
2108
|
+
# unassociated address is considered less than all interfaces.
|
|
2109
|
+
return False
|
|
2110
|
+
|
|
2111
|
+
def __hash__(self):
|
|
2112
|
+
return self._ip ^ self._prefixlen ^ int(self.network.network_address)
|
|
2113
|
+
|
|
2114
|
+
__reduce__ = _IPAddressBase.__reduce__
|
|
2115
|
+
|
|
2116
|
+
@property
|
|
2117
|
+
def ip(self):
|
|
2118
|
+
return IPv6Address(self._ip)
|
|
2119
|
+
|
|
2120
|
+
@property
|
|
2121
|
+
def with_prefixlen(self):
|
|
2122
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
2123
|
+
self._prefixlen)
|
|
2124
|
+
|
|
2125
|
+
@property
|
|
2126
|
+
def with_netmask(self):
|
|
2127
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
2128
|
+
self.netmask)
|
|
2129
|
+
|
|
2130
|
+
@property
|
|
2131
|
+
def with_hostmask(self):
|
|
2132
|
+
return '%s/%s' % (self._string_from_ip_int(self._ip),
|
|
2133
|
+
self.hostmask)
|
|
2134
|
+
|
|
2135
|
+
@property
|
|
2136
|
+
def is_unspecified(self):
|
|
2137
|
+
return self._ip == 0 and self.network.is_unspecified
|
|
2138
|
+
|
|
2139
|
+
@property
|
|
2140
|
+
def is_loopback(self):
|
|
2141
|
+
return self._ip == 1 and self.network.is_loopback
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
class IPv6Network(_BaseV6, _BaseNetwork):
|
|
2145
|
+
|
|
2146
|
+
"""This class represents and manipulates 128-bit IPv6 networks.
|
|
2147
|
+
|
|
2148
|
+
Attributes: [examples for IPv6('2001:db8::1000/124')]
|
|
2149
|
+
.network_address: IPv6Address('2001:db8::1000')
|
|
2150
|
+
.hostmask: IPv6Address('::f')
|
|
2151
|
+
.broadcast_address: IPv6Address('2001:db8::100f')
|
|
2152
|
+
.netmask: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0')
|
|
2153
|
+
.prefixlen: 124
|
|
2154
|
+
|
|
2155
|
+
"""
|
|
2156
|
+
|
|
2157
|
+
# Class to use when creating address objects
|
|
2158
|
+
_address_class = IPv6Address
|
|
2159
|
+
|
|
2160
|
+
def __init__(self, address, strict=True):
|
|
2161
|
+
"""Instantiate a new IPv6 Network object.
|
|
2162
|
+
|
|
2163
|
+
Args:
|
|
2164
|
+
address: A string or integer representing the IPv6 network or the
|
|
2165
|
+
IP and prefix/netmask.
|
|
2166
|
+
'2001:db8::/128'
|
|
2167
|
+
'2001:db8:0000:0000:0000:0000:0000:0000/128'
|
|
2168
|
+
'2001:db8::'
|
|
2169
|
+
are all functionally the same in IPv6. That is to say,
|
|
2170
|
+
failing to provide a subnetmask will create an object with
|
|
2171
|
+
a mask of /128.
|
|
2172
|
+
|
|
2173
|
+
Additionally, an integer can be passed, so
|
|
2174
|
+
IPv6Network('2001:db8::') ==
|
|
2175
|
+
IPv6Network(42540766411282592856903984951653826560)
|
|
2176
|
+
or, more generally
|
|
2177
|
+
IPv6Network(int(IPv6Network('2001:db8::'))) ==
|
|
2178
|
+
IPv6Network('2001:db8::')
|
|
2179
|
+
|
|
2180
|
+
strict: A boolean. If true, ensure that we have been passed
|
|
2181
|
+
A true network address, eg, 2001:db8::1000/124 and not an
|
|
2182
|
+
IP address on a network, eg, 2001:db8::1/124.
|
|
2183
|
+
|
|
2184
|
+
Raises:
|
|
2185
|
+
AddressValueError: If address isn't a valid IPv6 address.
|
|
2186
|
+
NetmaskValueError: If the netmask isn't valid for
|
|
2187
|
+
an IPv6 address.
|
|
2188
|
+
ValueError: If strict was True and a network address was not
|
|
2189
|
+
supplied.
|
|
2190
|
+
|
|
2191
|
+
"""
|
|
2192
|
+
_BaseNetwork.__init__(self, address)
|
|
2193
|
+
|
|
2194
|
+
# Efficient constructor from integer or packed address
|
|
2195
|
+
if isinstance(address, (bytes, int)):
|
|
2196
|
+
self.network_address = IPv6Address(address)
|
|
2197
|
+
self.netmask, self._prefixlen = self._make_netmask(self._max_prefixlen)
|
|
2198
|
+
return
|
|
2199
|
+
|
|
2200
|
+
if isinstance(address, tuple):
|
|
2201
|
+
if len(address) > 1:
|
|
2202
|
+
arg = address[1]
|
|
2203
|
+
else:
|
|
2204
|
+
arg = self._max_prefixlen
|
|
2205
|
+
self.netmask, self._prefixlen = self._make_netmask(arg)
|
|
2206
|
+
self.network_address = IPv6Address(address[0])
|
|
2207
|
+
packed = int(self.network_address)
|
|
2208
|
+
if packed & int(self.netmask) != packed:
|
|
2209
|
+
if strict:
|
|
2210
|
+
raise ValueError('%s has host bits set' % self)
|
|
2211
|
+
else:
|
|
2212
|
+
self.network_address = IPv6Address(packed &
|
|
2213
|
+
int(self.netmask))
|
|
2214
|
+
return
|
|
2215
|
+
|
|
2216
|
+
# Assume input argument to be string or any object representation
|
|
2217
|
+
# which converts into a formatted IP prefix string.
|
|
2218
|
+
addr = _split_optional_netmask(address)
|
|
2219
|
+
|
|
2220
|
+
self.network_address = IPv6Address(self._ip_int_from_string(addr[0]))
|
|
2221
|
+
|
|
2222
|
+
if len(addr) == 2:
|
|
2223
|
+
arg = addr[1]
|
|
2224
|
+
else:
|
|
2225
|
+
arg = self._max_prefixlen
|
|
2226
|
+
self.netmask, self._prefixlen = self._make_netmask(arg)
|
|
2227
|
+
|
|
2228
|
+
if strict:
|
|
2229
|
+
if (IPv6Address(int(self.network_address) & int(self.netmask)) !=
|
|
2230
|
+
self.network_address):
|
|
2231
|
+
raise ValueError('%s has host bits set' % self)
|
|
2232
|
+
self.network_address = IPv6Address(int(self.network_address) &
|
|
2233
|
+
int(self.netmask))
|
|
2234
|
+
|
|
2235
|
+
if self._prefixlen == (self._max_prefixlen - 1):
|
|
2236
|
+
self.hosts = self.__iter__
|
|
2237
|
+
|
|
2238
|
+
def hosts(self):
|
|
2239
|
+
"""Generate Iterator over usable hosts in a network.
|
|
2240
|
+
|
|
2241
|
+
This is like __iter__ except it doesn't return the
|
|
2242
|
+
Subnet-Router anycast address.
|
|
2243
|
+
|
|
2244
|
+
"""
|
|
2245
|
+
network = int(self.network_address)
|
|
2246
|
+
broadcast = int(self.broadcast_address)
|
|
2247
|
+
for x in range(network + 1, broadcast + 1):
|
|
2248
|
+
yield self._address_class(x)
|
|
2249
|
+
|
|
2250
|
+
@property
|
|
2251
|
+
def is_site_local(self):
|
|
2252
|
+
"""Test if the address is reserved for site-local.
|
|
2253
|
+
|
|
2254
|
+
Note that the site-local address space has been deprecated by RFC 3879.
|
|
2255
|
+
Use is_private to test if this address is in the space of unique local
|
|
2256
|
+
addresses as defined by RFC 4193.
|
|
2257
|
+
|
|
2258
|
+
Returns:
|
|
2259
|
+
A boolean, True if the address is reserved per RFC 3513 2.5.6.
|
|
2260
|
+
|
|
2261
|
+
"""
|
|
2262
|
+
return (self.network_address.is_site_local and
|
|
2263
|
+
self.broadcast_address.is_site_local)
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
class _IPv6Constants:
|
|
2267
|
+
|
|
2268
|
+
_linklocal_network = IPv6Network('fe80::/10')
|
|
2269
|
+
|
|
2270
|
+
_multicast_network = IPv6Network('ff00::/8')
|
|
2271
|
+
|
|
2272
|
+
_private_networks = [
|
|
2273
|
+
IPv6Network('::1/128'),
|
|
2274
|
+
IPv6Network('::/128'),
|
|
2275
|
+
IPv6Network('::ffff:0:0/96'),
|
|
2276
|
+
IPv6Network('100::/64'),
|
|
2277
|
+
IPv6Network('2001::/23'),
|
|
2278
|
+
IPv6Network('2001:2::/48'),
|
|
2279
|
+
IPv6Network('2001:db8::/32'),
|
|
2280
|
+
IPv6Network('2001:10::/28'),
|
|
2281
|
+
IPv6Network('fc00::/7'),
|
|
2282
|
+
IPv6Network('fe80::/10'),
|
|
2283
|
+
]
|
|
2284
|
+
|
|
2285
|
+
_reserved_networks = [
|
|
2286
|
+
IPv6Network('::/8'), IPv6Network('100::/8'),
|
|
2287
|
+
IPv6Network('200::/7'), IPv6Network('400::/6'),
|
|
2288
|
+
IPv6Network('800::/5'), IPv6Network('1000::/4'),
|
|
2289
|
+
IPv6Network('4000::/3'), IPv6Network('6000::/3'),
|
|
2290
|
+
IPv6Network('8000::/3'), IPv6Network('A000::/3'),
|
|
2291
|
+
IPv6Network('C000::/3'), IPv6Network('E000::/4'),
|
|
2292
|
+
IPv6Network('F000::/5'), IPv6Network('F800::/6'),
|
|
2293
|
+
IPv6Network('FE00::/9'),
|
|
2294
|
+
]
|
|
2295
|
+
|
|
2296
|
+
_sitelocal_network = IPv6Network('fec0::/10')
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
IPv6Address._constants = _IPv6Constants
|