├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── pom.xml └── src ├── main ├── antlr4 │ └── nl │ │ └── bigo │ │ └── pythonparser │ │ └── Python3.g4 └── java │ └── nl │ └── bigo │ └── pythonparser │ ├── Builder.java │ ├── DescriptiveBailErrorListener.java │ └── Main.java └── test ├── java └── nl │ └── bigo │ └── pythonparser │ ├── Python3LexerTest.java │ ├── Python3ParserLiveTest.java │ └── Python3ParserTest.java └── python └── cpython-3f944f44ee41 └── Lib ├── __future__.py ├── __phello__.foo.py ├── _bootlocale.py ├── _collections_abc.py ├── _compat_pickle.py ├── _dummy_thread.py ├── _markupbase.py ├── _osx_support.py ├── _pyio.py ├── _sitebuiltins.py ├── _strptime.py ├── _threading_local.py ├── _weakrefset.py ├── abc.py ├── aifc.py ├── antigravity.py ├── argparse.py ├── ast.py ├── asynchat.py ├── asyncio ├── __init__.py ├── base_events.py ├── base_subprocess.py ├── constants.py ├── events.py ├── futures.py ├── locks.py ├── log.py ├── proactor_events.py ├── protocols.py ├── queues.py ├── selector_events.py ├── streams.py ├── subprocess.py ├── tasks.py ├── test_utils.py ├── transports.py ├── unix_events.py ├── windows_events.py └── windows_utils.py ├── asyncore.py ├── base64.py ├── bdb.py ├── binhex.py ├── bisect.py ├── bz2.py ├── cProfile.py ├── calendar.py ├── cgi.py ├── cgitb.py ├── chunk.py ├── cmd.py ├── code.py ├── codecs.py ├── codeop.py ├── collections ├── __init__.py ├── __main__.py └── abc.py ├── colorsys.py ├── compileall.py ├── concurrent ├── __init__.py └── futures │ ├── __init__.py │ ├── _base.py │ ├── process.py │ └── thread.py ├── configparser.py ├── contextlib.py ├── copy.py ├── copyreg.py ├── crypt.py ├── csv.py ├── ctypes ├── __init__.py ├── _endian.py ├── macholib │ ├── README.ctypes │ ├── __init__.py │ ├── dyld.py │ ├── dylib.py │ ├── fetch_macholib │ ├── fetch_macholib.bat │ └── framework.py ├── test │ ├── __init__.py │ ├── runtests.py │ ├── test_anon.py │ ├── test_array_in_pointer.py │ ├── test_arrays.py │ ├── test_as_parameter.py │ ├── test_bitfields.py │ ├── test_buffers.py │ ├── test_bytes.py │ ├── test_byteswap.py │ ├── test_callbacks.py │ ├── test_cast.py │ ├── test_cfuncs.py │ ├── test_checkretval.py │ ├── test_delattr.py │ ├── test_errcheck.py │ ├── test_errno.py │ ├── test_find.py │ ├── test_frombuffer.py │ ├── test_funcptr.py │ ├── test_functions.py │ ├── test_incomplete.py │ ├── test_init.py │ ├── test_integers.py │ ├── test_internals.py │ ├── test_keeprefs.py │ ├── test_libc.py │ ├── test_loading.py │ ├── test_macholib.py │ ├── test_memfunctions.py │ ├── test_numbers.py │ ├── test_objects.py │ ├── test_parameters.py │ ├── test_pep3118.py │ ├── test_pickling.py │ ├── test_pointers.py │ ├── test_prototypes.py │ ├── test_python_api.py │ ├── test_random_things.py │ ├── test_refcounts.py │ ├── test_repr.py │ ├── test_returnfuncptrs.py │ ├── test_simplesubclasses.py │ ├── test_sizes.py │ ├── test_slicing.py │ ├── test_stringptr.py │ ├── test_strings.py │ ├── test_struct_fields.py │ ├── test_structures.py │ ├── test_unaligned_structures.py │ ├── test_unicode.py │ ├── test_values.py │ ├── test_varsize_struct.py │ ├── test_win32.py │ └── test_wintypes.py ├── util.py └── wintypes.py ├── curses ├── __init__.py ├── ascii.py ├── has_key.py ├── panel.py └── textpad.py ├── datetime.py ├── dbm ├── __init__.py ├── dumb.py ├── gnu.py └── ndbm.py ├── decimal.py ├── difflib.py ├── dis.py ├── distutils ├── README ├── __init__.py ├── archive_util.py ├── bcppcompiler.py ├── ccompiler.py ├── cmd.py ├── command │ ├── __init__.py │ ├── bdist.py │ ├── bdist_dumb.py │ ├── bdist_msi.py │ ├── bdist_rpm.py │ ├── bdist_wininst.py │ ├── build.py │ ├── build_clib.py │ ├── build_ext.py │ ├── build_py.py │ ├── build_scripts.py │ ├── check.py │ ├── clean.py │ ├── command_template │ ├── config.py │ ├── install.py │ ├── install_data.py │ ├── install_egg_info.py │ ├── install_headers.py │ ├── install_lib.py │ ├── install_scripts.py │ ├── register.py │ ├── sdist.py │ ├── upload.py │ ├── wininst-10.0-amd64.exe │ ├── wininst-10.0.exe │ ├── wininst-6.0.exe │ ├── wininst-7.1.exe │ ├── wininst-8.0.exe │ ├── wininst-9.0-amd64.exe │ └── wininst-9.0.exe ├── config.py ├── core.py ├── cygwinccompiler.py ├── debug.py ├── dep_util.py ├── dir_util.py ├── dist.py ├── errors.py ├── extension.py ├── fancy_getopt.py ├── file_util.py ├── filelist.py ├── log.py ├── msvc9compiler.py ├── msvccompiler.py ├── spawn.py ├── sysconfig.py ├── tests │ ├── Setup.sample │ ├── __init__.py │ ├── support.py │ ├── test_archive_util.py │ ├── test_bdist.py │ ├── test_bdist_dumb.py │ ├── test_bdist_msi.py │ ├── test_bdist_rpm.py │ ├── test_bdist_wininst.py │ ├── test_build.py │ ├── test_build_clib.py │ ├── test_build_ext.py │ ├── test_build_py.py │ ├── test_build_scripts.py │ ├── test_check.py │ ├── test_clean.py │ ├── test_cmd.py │ ├── test_config.py │ ├── test_config_cmd.py │ ├── test_core.py │ ├── test_cygwinccompiler.py │ ├── test_dep_util.py │ ├── test_dir_util.py │ ├── test_dist.py │ ├── test_extension.py │ ├── test_file_util.py │ ├── test_filelist.py │ ├── test_install.py │ ├── test_install_data.py │ ├── test_install_headers.py │ ├── test_install_lib.py │ ├── test_install_scripts.py │ ├── test_log.py │ ├── test_msvc9compiler.py │ ├── test_register.py │ ├── test_sdist.py │ ├── test_spawn.py │ ├── test_sysconfig.py │ ├── test_text_file.py │ ├── test_unixccompiler.py │ ├── test_upload.py │ ├── test_util.py │ ├── test_version.py │ └── test_versionpredicate.py ├── text_file.py ├── unixccompiler.py ├── util.py ├── version.py └── versionpredicate.py ├── doctest.py ├── dummy_threading.py ├── email ├── __init__.py ├── _encoded_words.py ├── _header_value_parser.py ├── _parseaddr.py ├── _policybase.py ├── architecture.rst ├── base64mime.py ├── charset.py ├── contentmanager.py ├── encoders.py ├── errors.py ├── feedparser.py ├── generator.py ├── header.py ├── headerregistry.py ├── iterators.py ├── message.py ├── mime │ ├── __init__.py │ ├── application.py │ ├── audio.py │ ├── base.py │ ├── image.py │ ├── message.py │ ├── multipart.py │ ├── nonmultipart.py │ └── text.py ├── parser.py ├── policy.py ├── quoprimime.py └── utils.py ├── encodings ├── __init__.py ├── aliases.py ├── ascii.py ├── base64_codec.py ├── big5.py ├── big5hkscs.py ├── bz2_codec.py ├── charmap.py ├── cp037.py ├── cp1006.py ├── cp1026.py ├── cp1125.py ├── cp1140.py ├── cp1250.py ├── cp1251.py ├── cp1252.py ├── cp1253.py ├── cp1254.py ├── cp1255.py ├── cp1256.py ├── cp1257.py ├── cp1258.py ├── cp273.py ├── cp424.py ├── cp437.py ├── cp500.py ├── cp65001.py ├── cp720.py ├── cp737.py ├── cp775.py ├── cp850.py ├── cp852.py ├── cp855.py ├── cp856.py ├── cp857.py ├── cp858.py ├── cp860.py ├── cp861.py ├── cp862.py ├── cp863.py ├── cp864.py ├── cp865.py ├── cp866.py ├── cp869.py ├── cp874.py ├── cp875.py ├── cp932.py ├── cp949.py ├── cp950.py ├── euc_jis_2004.py ├── euc_jisx0213.py ├── euc_jp.py ├── euc_kr.py ├── gb18030.py ├── gb2312.py ├── gbk.py ├── hex_codec.py ├── hp_roman8.py ├── hz.py ├── idna.py ├── iso2022_jp.py ├── iso2022_jp_1.py ├── iso2022_jp_2.py ├── iso2022_jp_2004.py ├── iso2022_jp_3.py ├── iso2022_jp_ext.py ├── iso2022_kr.py ├── iso8859_1.py ├── iso8859_10.py ├── iso8859_11.py ├── iso8859_13.py ├── iso8859_14.py ├── iso8859_15.py ├── iso8859_16.py ├── iso8859_2.py ├── iso8859_3.py ├── iso8859_4.py ├── iso8859_5.py ├── iso8859_6.py ├── iso8859_7.py ├── iso8859_8.py ├── iso8859_9.py ├── johab.py ├── koi8_r.py ├── koi8_u.py ├── latin_1.py ├── mac_arabic.py ├── mac_centeuro.py ├── mac_croatian.py ├── mac_cyrillic.py ├── mac_farsi.py ├── mac_greek.py ├── mac_iceland.py ├── mac_latin2.py ├── mac_roman.py ├── mac_romanian.py ├── mac_turkish.py ├── mbcs.py ├── palmos.py ├── ptcp154.py ├── punycode.py ├── quopri_codec.py ├── raw_unicode_escape.py ├── rot_13.py ├── shift_jis.py ├── shift_jis_2004.py ├── shift_jisx0213.py ├── tis_620.py ├── undefined.py ├── unicode_escape.py ├── unicode_internal.py ├── utf_16.py ├── utf_16_be.py ├── utf_16_le.py ├── utf_32.py ├── utf_32_be.py ├── utf_32_le.py ├── utf_7.py ├── utf_8.py ├── utf_8_sig.py ├── uu_codec.py └── zlib_codec.py ├── ensurepip ├── __init__.py ├── __main__.py ├── _bundled │ ├── pip-1.5.6-py2.py3-none-any.whl │ └── setuptools-3.6-py2.py3-none-any.whl └── _uninstall.py ├── enum.py ├── filecmp.py ├── fileinput.py ├── fnmatch.py ├── formatter.py ├── fractions.py ├── ftplib.py ├── functools.py ├── genericpath.py ├── getopt.py ├── getpass.py ├── gettext.py ├── glob.py ├── gzip.py ├── hashlib.py ├── heapq.py ├── hmac.py ├── html ├── __init__.py ├── entities.py └── parser.py ├── http ├── __init__.py ├── client.py ├── cookiejar.py ├── cookies.py └── server.py ├── idlelib ├── AutoComplete.py ├── AutoCompleteWindow.py ├── AutoExpand.py ├── Bindings.py ├── CREDITS.txt ├── CallTipWindow.py ├── CallTips.py ├── ChangeLog ├── ClassBrowser.py ├── CodeContext.py ├── ColorDelegator.py ├── Debugger.py ├── Delegator.py ├── EditorWindow.py ├── FileList.py ├── FormatParagraph.py ├── GrepDialog.py ├── HISTORY.txt ├── HyperParser.py ├── IOBinding.py ├── Icons │ ├── folder.gif │ ├── idle.icns │ ├── idle.ico │ ├── idle_16.gif │ ├── idle_16.png │ ├── idle_32.gif │ ├── idle_32.png │ ├── idle_48.gif │ ├── idle_48.png │ ├── minusnode.gif │ ├── openfolder.gif │ ├── plusnode.gif │ ├── python.gif │ └── tk.gif ├── IdleHistory.py ├── MultiCall.py ├── MultiStatusBar.py ├── NEWS.txt ├── ObjectBrowser.py ├── OutputWindow.py ├── ParenMatch.py ├── PathBrowser.py ├── Percolator.py ├── PyParse.py ├── PyShell.py ├── README.txt ├── RemoteDebugger.py ├── RemoteObjectBrowser.py ├── ReplaceDialog.py ├── RstripExtension.py ├── ScriptBinding.py ├── ScrolledList.py ├── SearchDialog.py ├── SearchDialogBase.py ├── SearchEngine.py ├── StackViewer.py ├── TODO.txt ├── ToolTip.py ├── TreeWidget.py ├── UndoDelegator.py ├── WidgetRedirector.py ├── WindowList.py ├── ZoomHeight.py ├── __init__.py ├── __main__.py ├── aboutDialog.py ├── config-extensions.def ├── config-highlight.def ├── config-keys.def ├── config-main.def ├── configDialog.py ├── configHandler.py ├── configHelpSourceEdit.py ├── configSectionNameDialog.py ├── dynOptionMenuWidget.py ├── extend.txt ├── help.txt ├── idle.bat ├── idle.py ├── idle.pyw ├── idle_test │ ├── README.txt │ ├── __init__.py │ ├── htest.py │ ├── mock_idle.py │ ├── mock_tk.py │ ├── test_autocomplete.py │ ├── test_autoexpand.py │ ├── test_calltips.py │ ├── test_config_name.py │ ├── test_delegator.py │ ├── test_formatparagraph.py │ ├── test_grep.py │ ├── test_idlehistory.py │ ├── test_pathbrowser.py │ ├── test_rstrip.py │ ├── test_searchengine.py │ ├── test_text.py │ ├── test_textview.py │ └── test_warning.py ├── idlever.py ├── keybindingDialog.py ├── macosxSupport.py ├── rpc.py ├── run.py ├── tabbedpages.py ├── testcode.py └── textView.py ├── imaplib.py ├── imghdr.py ├── imp.py ├── importlib ├── __init__.py ├── _bootstrap.py ├── abc.py ├── machinery.py └── util.py ├── inspect.py ├── io.py ├── ipaddress.py ├── json ├── __init__.py ├── decoder.py ├── encoder.py ├── scanner.py └── tool.py ├── keyword.py ├── lib2to3 ├── Grammar.txt ├── PatternGrammar.txt ├── __init__.py ├── __main__.py ├── btm_matcher.py ├── btm_utils.py ├── fixer_base.py ├── fixer_util.py ├── fixes │ ├── __init__.py │ ├── fix_apply.py │ ├── fix_asserts.py │ ├── fix_basestring.py │ ├── fix_buffer.py │ ├── fix_callable.py │ ├── fix_dict.py │ ├── fix_except.py │ ├── fix_exec.py │ ├── fix_execfile.py │ ├── fix_exitfunc.py │ ├── fix_filter.py │ ├── fix_funcattrs.py │ ├── fix_future.py │ ├── fix_getcwdu.py │ ├── fix_has_key.py │ ├── fix_idioms.py │ ├── fix_import.py │ ├── fix_imports.py │ ├── fix_imports2.py │ ├── fix_input.py │ ├── fix_intern.py │ ├── fix_isinstance.py │ ├── fix_itertools.py │ ├── fix_itertools_imports.py │ ├── fix_long.py │ ├── fix_map.py │ ├── fix_metaclass.py │ ├── fix_methodattrs.py │ ├── fix_ne.py │ ├── fix_next.py │ ├── fix_nonzero.py │ ├── fix_numliterals.py │ ├── fix_operator.py │ ├── fix_paren.py │ ├── fix_print.py │ ├── fix_raise.py │ ├── fix_raw_input.py │ ├── fix_reduce.py │ ├── fix_reload.py │ ├── fix_renames.py │ ├── fix_repr.py │ ├── fix_set_literal.py │ ├── fix_standarderror.py │ ├── fix_sys_exc.py │ ├── fix_throw.py │ ├── fix_tuple_params.py │ ├── fix_types.py │ ├── fix_unicode.py │ ├── fix_urllib.py │ ├── fix_ws_comma.py │ ├── fix_xrange.py │ ├── fix_xreadlines.py │ └── fix_zip.py ├── main.py ├── patcomp.py ├── pgen2 │ ├── __init__.py │ ├── conv.py │ ├── driver.py │ ├── grammar.py │ ├── literals.py │ ├── parse.py │ ├── pgen.py │ ├── token.py │ └── tokenize.py ├── pygram.py ├── pytree.py ├── refactor.py └── tests │ ├── __init__.py │ ├── data │ ├── README │ ├── bom.py │ ├── crlf.py │ ├── different_encoding.py │ ├── false_encoding.py │ ├── fixers │ │ ├── bad_order.py │ │ ├── myfixes │ │ │ ├── __init__.py │ │ │ ├── fix_explicit.py │ │ │ ├── fix_first.py │ │ │ ├── fix_last.py │ │ │ ├── fix_parrot.py │ │ │ └── fix_preorder.py │ │ ├── no_fixer_cls.py │ │ └── parrot_example.py │ ├── infinite_recursion.py │ ├── py2_test_grammar.py │ └── py3_test_grammar.py │ ├── pytree_idempotency.py │ ├── support.py │ ├── test_all_fixers.py │ ├── test_fixers.py │ ├── test_main.py │ ├── test_parser.py │ ├── test_pytree.py │ ├── test_refactor.py │ └── test_util.py ├── linecache.py ├── locale.py ├── logging ├── __init__.py ├── config.py └── handlers.py ├── lzma.py ├── macpath.py ├── macurl2path.py ├── mailbox.py ├── mailcap.py ├── mimetypes.py ├── modulefinder.py ├── msilib ├── __init__.py ├── schema.py ├── sequence.py └── text.py ├── multiprocessing ├── __init__.py ├── connection.py ├── context.py ├── dummy │ ├── __init__.py │ └── connection.py ├── forkserver.py ├── heap.py ├── managers.py ├── pool.py ├── popen_fork.py ├── popen_forkserver.py ├── popen_spawn_posix.py ├── popen_spawn_win32.py ├── process.py ├── queues.py ├── reduction.py ├── resource_sharer.py ├── semaphore_tracker.py ├── sharedctypes.py ├── spawn.py ├── synchronize.py └── util.py ├── netrc.py ├── nntplib.py ├── ntpath.py ├── nturl2path.py ├── numbers.py ├── opcode.py ├── operator.py ├── optparse.py ├── os.py ├── pathlib.py ├── pdb.py ├── pickle.py ├── pickletools.py ├── pipes.py ├── pkgutil.py ├── plat-aix4 ├── IN.py └── regen ├── plat-darwin ├── IN.py └── regen ├── plat-freebsd4 ├── IN.py └── regen ├── plat-freebsd5 ├── IN.py └── regen ├── plat-freebsd6 ├── IN.py └── regen ├── plat-freebsd7 ├── IN.py └── regen ├── plat-freebsd8 ├── IN.py └── regen ├── plat-generic └── regen ├── plat-linux ├── CDROM.py ├── DLFCN.py ├── IN.py ├── TYPES.py └── regen ├── plat-netbsd1 ├── IN.py └── regen ├── plat-next3 └── regen ├── plat-sunos5 ├── CDIO.py ├── DLFCN.py ├── IN.py ├── STROPTS.py ├── TYPES.py └── regen ├── plat-unixware7 ├── IN.py ├── STROPTS.py └── regen ├── platform.py ├── plistlib.py ├── poplib.py ├── posixpath.py ├── pprint.py ├── profile.py ├── pstats.py ├── pty.py ├── py_compile.py ├── pyclbr.py ├── pydoc.py ├── pydoc_data ├── __init__.py ├── _pydoc.css └── topics.py ├── queue.py ├── quopri.py ├── random.py ├── re.py ├── reprlib.py ├── rlcompleter.py ├── runpy.py ├── sched.py ├── selectors.py ├── shelve.py ├── shlex.py ├── shutil.py ├── signal.py ├── site-packages └── README ├── site.py ├── smtpd.py ├── smtplib.py ├── sndhdr.py ├── socket.py ├── socketserver.py ├── sqlite3 ├── __init__.py ├── dbapi2.py ├── dump.py └── test │ ├── __init__.py │ ├── dbapi.py │ ├── dump.py │ ├── factory.py │ ├── hooks.py │ ├── regression.py │ ├── transactions.py │ ├── types.py │ └── userfunctions.py ├── sre_compile.py ├── sre_constants.py ├── sre_parse.py ├── ssl.py ├── stat.py ├── statistics.py ├── string.py ├── stringprep.py ├── struct.py ├── subprocess.py ├── sunau.py ├── symbol.py ├── symtable.py ├── sysconfig.py ├── tabnanny.py ├── tarfile.py ├── telnetlib.py ├── tempfile.py ├── test ├── 185test.db ├── Sine-1000Hz-300ms.aif ├── __init__.py ├── __main__.py ├── _test_multiprocessing.py ├── audiodata │ ├── pluck-alaw.aifc │ ├── pluck-pcm16.aiff │ ├── pluck-pcm16.au │ ├── pluck-pcm16.wav │ ├── pluck-pcm24.aiff │ ├── pluck-pcm24.au │ ├── pluck-pcm24.wav │ ├── pluck-pcm32.aiff │ ├── pluck-pcm32.au │ ├── pluck-pcm32.wav │ ├── pluck-pcm8.aiff │ ├── pluck-pcm8.au │ ├── pluck-pcm8.wav │ ├── pluck-ulaw.aifc │ └── pluck-ulaw.au ├── audiotest.au ├── audiotests.py ├── autotest.py ├── bad_coding.py ├── bad_coding2.py ├── badcert.pem ├── badkey.pem ├── badsyntax_3131.py ├── badsyntax_future10.py ├── badsyntax_future3.py ├── badsyntax_future4.py ├── badsyntax_future5.py ├── badsyntax_future6.py ├── badsyntax_future7.py ├── badsyntax_future8.py ├── badsyntax_future9.py ├── badsyntax_pep3120.py ├── buffer_tests.py ├── bytecode_helper.py ├── capath │ ├── 4e1295a3.0 │ ├── 5ed36f99.0 │ ├── 6e88d7b8.0 │ └── 99d0fa06.0 ├── cfgparser.1 ├── cfgparser.2 ├── cfgparser.3 ├── check_soundcard.vbs ├── cjkencodings │ ├── big5-utf8.txt │ ├── big5.txt │ ├── big5hkscs-utf8.txt │ ├── big5hkscs.txt │ ├── cp949-utf8.txt │ ├── cp949.txt │ ├── euc_jisx0213-utf8.txt │ ├── euc_jisx0213.txt │ ├── euc_jp-utf8.txt │ ├── euc_jp.txt │ ├── euc_kr-utf8.txt │ ├── euc_kr.txt │ ├── gb18030-utf8.txt │ ├── gb18030.txt │ ├── gb2312-utf8.txt │ ├── gb2312.txt │ ├── gbk-utf8.txt │ ├── gbk.txt │ ├── hz-utf8.txt │ ├── hz.txt │ ├── iso2022_jp-utf8.txt │ ├── iso2022_jp.txt │ ├── iso2022_kr-utf8.txt │ ├── iso2022_kr.txt │ ├── johab-utf8.txt │ ├── johab.txt │ ├── shift_jis-utf8.txt │ ├── shift_jis.txt │ ├── shift_jisx0213-utf8.txt │ └── shift_jisx0213.txt ├── cmath_testcases.txt ├── coding20731.py ├── crashers │ ├── README │ ├── bogus_code_obj.py │ ├── gc_inspection.py │ ├── infinite_loop_re.py │ ├── mutation_inside_cyclegc.py │ ├── recursive_call.py │ ├── trace_at_recursion_limit.py │ └── underlying_dict.py ├── curses_tests.py ├── data │ └── README ├── datetimetester.py ├── decimaltestdata │ ├── abs.decTest │ ├── add.decTest │ ├── and.decTest │ ├── base.decTest │ ├── clamp.decTest │ ├── class.decTest │ ├── compare.decTest │ ├── comparetotal.decTest │ ├── comparetotmag.decTest │ ├── copy.decTest │ ├── copyabs.decTest │ ├── copynegate.decTest │ ├── copysign.decTest │ ├── ddAbs.decTest │ ├── ddAdd.decTest │ ├── ddAnd.decTest │ ├── ddBase.decTest │ ├── ddCanonical.decTest │ ├── ddClass.decTest │ ├── ddCompare.decTest │ ├── ddCompareSig.decTest │ ├── ddCompareTotal.decTest │ ├── ddCompareTotalMag.decTest │ ├── ddCopy.decTest │ ├── ddCopyAbs.decTest │ ├── ddCopyNegate.decTest │ ├── ddCopySign.decTest │ ├── ddDivide.decTest │ ├── ddDivideInt.decTest │ ├── ddEncode.decTest │ ├── ddFMA.decTest │ ├── ddInvert.decTest │ ├── ddLogB.decTest │ ├── ddMax.decTest │ ├── ddMaxMag.decTest │ ├── ddMin.decTest │ ├── ddMinMag.decTest │ ├── ddMinus.decTest │ ├── ddMultiply.decTest │ ├── ddNextMinus.decTest │ ├── ddNextPlus.decTest │ ├── ddNextToward.decTest │ ├── ddOr.decTest │ ├── ddPlus.decTest │ ├── ddQuantize.decTest │ ├── ddReduce.decTest │ ├── ddRemainder.decTest │ ├── ddRemainderNear.decTest │ ├── ddRotate.decTest │ ├── ddSameQuantum.decTest │ ├── ddScaleB.decTest │ ├── ddShift.decTest │ ├── ddSubtract.decTest │ ├── ddToIntegral.decTest │ ├── ddXor.decTest │ ├── decDouble.decTest │ ├── decQuad.decTest │ ├── decSingle.decTest │ ├── divide.decTest │ ├── divideint.decTest │ ├── dqAbs.decTest │ ├── dqAdd.decTest │ ├── dqAnd.decTest │ ├── dqBase.decTest │ ├── dqCanonical.decTest │ ├── dqClass.decTest │ ├── dqCompare.decTest │ ├── dqCompareSig.decTest │ ├── dqCompareTotal.decTest │ ├── dqCompareTotalMag.decTest │ ├── dqCopy.decTest │ ├── dqCopyAbs.decTest │ ├── dqCopyNegate.decTest │ ├── dqCopySign.decTest │ ├── dqDivide.decTest │ ├── dqDivideInt.decTest │ ├── dqEncode.decTest │ ├── dqFMA.decTest │ ├── dqInvert.decTest │ ├── dqLogB.decTest │ ├── dqMax.decTest │ ├── dqMaxMag.decTest │ ├── dqMin.decTest │ ├── dqMinMag.decTest │ ├── dqMinus.decTest │ ├── dqMultiply.decTest │ ├── dqNextMinus.decTest │ ├── dqNextPlus.decTest │ ├── dqNextToward.decTest │ ├── dqOr.decTest │ ├── dqPlus.decTest │ ├── dqQuantize.decTest │ ├── dqReduce.decTest │ ├── dqRemainder.decTest │ ├── dqRemainderNear.decTest │ ├── dqRotate.decTest │ ├── dqSameQuantum.decTest │ ├── dqScaleB.decTest │ ├── dqShift.decTest │ ├── dqSubtract.decTest │ ├── dqToIntegral.decTest │ ├── dqXor.decTest │ ├── dsBase.decTest │ ├── dsEncode.decTest │ ├── exp.decTest │ ├── extra.decTest │ ├── fma.decTest │ ├── inexact.decTest │ ├── invert.decTest │ ├── ln.decTest │ ├── log10.decTest │ ├── logb.decTest │ ├── max.decTest │ ├── maxmag.decTest │ ├── min.decTest │ ├── minmag.decTest │ ├── minus.decTest │ ├── multiply.decTest │ ├── nextminus.decTest │ ├── nextplus.decTest │ ├── nexttoward.decTest │ ├── or.decTest │ ├── plus.decTest │ ├── power.decTest │ ├── powersqrt.decTest │ ├── quantize.decTest │ ├── randomBound32.decTest │ ├── randoms.decTest │ ├── reduce.decTest │ ├── remainder.decTest │ ├── remainderNear.decTest │ ├── rescale.decTest │ ├── rotate.decTest │ ├── rounding.decTest │ ├── samequantum.decTest │ ├── scaleb.decTest │ ├── shift.decTest │ ├── squareroot.decTest │ ├── subtract.decTest │ ├── testall.decTest │ ├── tointegral.decTest │ ├── tointegralx.decTest │ └── xor.decTest ├── dh512.pem ├── dis_module.py ├── doctest_aliases.py ├── double_const.py ├── empty.vbs ├── encoded_modules │ ├── __init__.py │ ├── module_iso_8859_1.py │ └── module_koi8_r.py ├── exception_hierarchy.txt ├── final_a.py ├── final_b.py ├── floating_points.txt ├── fork_wait.py ├── formatfloat_testcases.txt ├── future_test1.py ├── future_test2.py ├── gdb_sample.py ├── https_svn_python_org_root.pem ├── ieee754.txt ├── imghdrdata │ ├── python.bmp │ ├── python.gif │ ├── python.jpg │ ├── python.pbm │ ├── python.pgm │ ├── python.png │ ├── python.ppm │ ├── python.ras │ ├── python.sgi │ ├── python.tiff │ ├── python.webp │ └── python.xbm ├── inspect_fodder.py ├── inspect_fodder2.py ├── keycert.passwd.pem ├── keycert.pem ├── keycert2.pem ├── keycert3.pem ├── keycert4.pem ├── leakers │ ├── README.txt │ ├── __init__.py │ ├── test_ctypes.py │ └── test_selftype.py ├── list_tests.py ├── lock_tests.py ├── mailcap.txt ├── make_ssl_certs.py ├── mapping_tests.py ├── math_testcases.txt ├── memory_watchdog.py ├── mime.types ├── mock_socket.py ├── mp_fork_bomb.py ├── multibytecodec_support.py ├── nokia.pem ├── nullbytecert.pem ├── nullcert.pem ├── outstanding_bugs.py ├── pickletester.py ├── profilee.py ├── pstats.pck ├── pycacert.pem ├── pycakey.pem ├── pyclbr_input.py ├── pydoc_mod.py ├── pydocfodder.py ├── pystone.py ├── randv2_32.pck ├── randv2_64.pck ├── randv3.pck ├── re_tests.py ├── regrtest.py ├── relimport.py ├── reperf.py ├── revocation.crl ├── sample_doctest.py ├── sample_doctest_no_docstrings.py ├── sample_doctest_no_doctests.py ├── script_helper.py ├── seq_tests.py ├── sgml_input.html ├── sha256.pem ├── sndhdrdata │ ├── README │ ├── sndhdr.8svx │ ├── sndhdr.aifc │ ├── sndhdr.aiff │ ├── sndhdr.au │ ├── sndhdr.hcom │ ├── sndhdr.sndt │ ├── sndhdr.voc │ └── sndhdr.wav ├── sortperf.py ├── ssl_cert.pem ├── ssl_key.passwd.pem ├── ssl_key.pem ├── ssl_servers.py ├── ssltests.py ├── string_tests.py ├── subprocessdata │ ├── fd_status.py │ ├── input_reader.py │ ├── qcat.py │ ├── qgrep.py │ └── sigchild_ignore.py ├── support │ └── __init__.py ├── test___all__.py ├── test___future__.py ├── test__locale.py ├── test__opcode.py ├── test__osx_support.py ├── test_abc.py ├── test_abstract_numbers.py ├── test_aifc.py ├── test_argparse.py ├── test_array.py ├── test_asdl_parser.py ├── test_ast.py ├── test_asynchat.py ├── test_asyncio │ ├── __init__.py │ ├── __main__.py │ ├── echo.py │ ├── echo2.py │ ├── echo3.py │ ├── keycert3.pem │ ├── pycacert.pem │ ├── ssl_cert.pem │ ├── ssl_key.pem │ ├── test_base_events.py │ ├── test_events.py │ ├── test_futures.py │ ├── test_locks.py │ ├── test_proactor_events.py │ ├── test_queues.py │ ├── test_selector_events.py │ ├── test_streams.py │ ├── test_subprocess.py │ ├── test_tasks.py │ ├── test_transports.py │ ├── test_unix_events.py │ ├── test_windows_events.py │ └── test_windows_utils.py ├── test_asyncore.py ├── test_atexit.py ├── test_audioop.py ├── test_augassign.py ├── test_base64.py ├── test_bigaddrspace.py ├── test_bigmem.py ├── test_binascii.py ├── test_binhex.py ├── test_binop.py ├── test_bisect.py ├── test_bool.py ├── test_buffer.py ├── test_bufio.py ├── test_builtin.py ├── test_bytes.py ├── test_bz2.py ├── test_calendar.py ├── test_call.py ├── test_capi.py ├── test_cgi.py ├── test_cgitb.py ├── test_charmapcodec.py ├── test_class.py ├── test_cmath.py ├── test_cmd.py ├── test_cmd_line.py ├── test_cmd_line_script.py ├── test_code.py ├── test_code_module.py ├── test_codeccallbacks.py ├── test_codecencodings_cn.py ├── test_codecencodings_hk.py ├── test_codecencodings_iso2022.py ├── test_codecencodings_jp.py ├── test_codecencodings_kr.py ├── test_codecencodings_tw.py ├── test_codecmaps_cn.py ├── test_codecmaps_hk.py ├── test_codecmaps_jp.py ├── test_codecmaps_kr.py ├── test_codecmaps_tw.py ├── test_codecs.py ├── test_codeop.py ├── test_collections.py ├── test_colorsys.py ├── test_compare.py ├── test_compile.py ├── test_compileall.py ├── test_complex.py ├── test_concurrent_futures.py ├── test_configparser.py ├── test_contains.py ├── test_contextlib.py ├── test_copy.py ├── test_copyreg.py ├── test_cprofile.py ├── test_crashers.py ├── test_crypt.py ├── test_csv.py ├── test_ctypes.py ├── test_curses.py ├── test_datetime.py ├── test_dbm.py ├── test_dbm_dumb.py ├── test_dbm_gnu.py ├── test_dbm_ndbm.py ├── test_decimal.py ├── test_decorators.py ├── test_defaultdict.py ├── test_deque.py ├── test_descr.py ├── test_descrtut.py ├── test_devpoll.py ├── test_dict.py ├── test_dictcomps.py ├── test_dictviews.py ├── test_difflib.py ├── test_difflib_expect.html ├── test_dis.py ├── test_distutils.py ├── test_doctest.py ├── test_doctest.txt ├── test_doctest2.py ├── test_doctest2.txt ├── test_doctest3.txt ├── test_doctest4.txt ├── test_docxmlrpc.py ├── test_dummy_thread.py ├── test_dummy_threading.py ├── test_dynamic.py ├── test_dynamicclassattribute.py ├── test_email │ ├── __init__.py │ ├── __main__.py │ ├── data │ │ ├── PyBanner048.gif │ │ ├── audiotest.au │ │ ├── msg_01.txt │ │ ├── msg_02.txt │ │ ├── msg_03.txt │ │ ├── msg_04.txt │ │ ├── msg_05.txt │ │ ├── msg_06.txt │ │ ├── msg_07.txt │ │ ├── msg_08.txt │ │ ├── msg_09.txt │ │ ├── msg_10.txt │ │ ├── msg_11.txt │ │ ├── msg_12.txt │ │ ├── msg_12a.txt │ │ ├── msg_13.txt │ │ ├── msg_14.txt │ │ ├── msg_15.txt │ │ ├── msg_16.txt │ │ ├── msg_17.txt │ │ ├── msg_18.txt │ │ ├── msg_19.txt │ │ ├── msg_20.txt │ │ ├── msg_21.txt │ │ ├── msg_22.txt │ │ ├── msg_23.txt │ │ ├── msg_24.txt │ │ ├── msg_25.txt │ │ ├── msg_26.txt │ │ ├── msg_27.txt │ │ ├── msg_28.txt │ │ ├── msg_29.txt │ │ ├── msg_30.txt │ │ ├── msg_31.txt │ │ ├── msg_32.txt │ │ ├── msg_33.txt │ │ ├── msg_34.txt │ │ ├── msg_35.txt │ │ ├── msg_36.txt │ │ ├── msg_37.txt │ │ ├── msg_38.txt │ │ ├── msg_39.txt │ │ ├── msg_40.txt │ │ ├── msg_41.txt │ │ ├── msg_42.txt │ │ ├── msg_43.txt │ │ ├── msg_44.txt │ │ ├── msg_45.txt │ │ └── msg_46.txt │ ├── test__encoded_words.py │ ├── test__header_value_parser.py │ ├── test_asian_codecs.py │ ├── test_contentmanager.py │ ├── test_defect_handling.py │ ├── test_email.py │ ├── test_generator.py │ ├── test_headerregistry.py │ ├── test_inversion.py │ ├── test_message.py │ ├── test_parser.py │ ├── test_pickleable.py │ ├── test_policy.py │ ├── test_utils.py │ └── torture_test.py ├── test_ensurepip.py ├── test_enum.py ├── test_enumerate.py ├── test_eof.py ├── test_epoll.py ├── test_errno.py ├── test_exception_variations.py ├── test_exceptions.py ├── test_extcall.py ├── test_faulthandler.py ├── test_fcntl.py ├── test_file.py ├── test_file_eintr.py ├── test_filecmp.py ├── test_fileinput.py ├── test_fileio.py ├── test_finalization.py ├── test_float.py ├── test_flufl.py ├── test_fnmatch.py ├── test_fork1.py ├── test_format.py ├── test_fractions.py ├── test_frame.py ├── test_ftplib.py ├── test_funcattrs.py ├── test_functools.py ├── test_future.py ├── test_future3.py ├── test_future4.py ├── test_future5.py ├── test_gc.py ├── test_gdb.py ├── test_generators.py ├── test_genericpath.py ├── test_genexps.py ├── test_getargs2.py ├── test_getopt.py ├── test_getpass.py ├── test_gettext.py ├── test_glob.py ├── test_global.py ├── test_grammar.py ├── test_grp.py ├── test_gzip.py ├── test_hash.py ├── test_hashlib.py ├── test_heapq.py ├── test_hmac.py ├── test_html.py ├── test_htmlparser.py ├── test_http_cookiejar.py ├── test_http_cookies.py ├── test_httplib.py ├── test_httpservers.py ├── test_idle.py ├── test_imaplib.py ├── test_imghdr.py ├── test_imp.py ├── test_import.py ├── test_importlib │ ├── __init__.py │ ├── __main__.py │ ├── abc.py │ ├── builtin │ │ ├── __init__.py │ │ ├── test_finder.py │ │ └── test_loader.py │ ├── extension │ │ ├── __init__.py │ │ ├── test_case_sensitivity.py │ │ ├── test_finder.py │ │ ├── test_loader.py │ │ └── test_path_hook.py │ ├── frozen │ │ ├── __init__.py │ │ ├── test_finder.py │ │ └── test_loader.py │ ├── import_ │ │ ├── __init__.py │ │ ├── test___loader__.py │ │ ├── test___package__.py │ │ ├── test_api.py │ │ ├── test_caching.py │ │ ├── test_fromlist.py │ │ ├── test_meta_path.py │ │ ├── test_packages.py │ │ ├── test_path.py │ │ └── test_relative_imports.py │ ├── namespace_pkgs │ │ ├── both_portions │ │ │ └── foo │ │ │ │ ├── one.py │ │ │ │ └── two.py │ │ ├── missing_directory.zip │ │ ├── module_and_namespace_package │ │ │ ├── a_test.py │ │ │ └── a_test │ │ │ │ └── empty │ │ ├── nested_portion1.zip │ │ ├── not_a_namespace_pkg │ │ │ └── foo │ │ │ │ ├── __init__.py │ │ │ │ └── one.py │ │ ├── portion1 │ │ │ └── foo │ │ │ │ └── one.py │ │ ├── portion2 │ │ │ └── foo │ │ │ │ └── two.py │ │ ├── project1 │ │ │ └── parent │ │ │ │ └── child │ │ │ │ └── one.py │ │ ├── project2 │ │ │ └── parent │ │ │ │ └── child │ │ │ │ └── two.py │ │ ├── project3 │ │ │ └── parent │ │ │ │ └── child │ │ │ │ └── three.py │ │ └── top_level_portion1.zip │ ├── regrtest.py │ ├── source │ │ ├── __init__.py │ │ ├── test_case_sensitivity.py │ │ ├── test_file_loader.py │ │ ├── test_finder.py │ │ ├── test_path_hook.py │ │ └── test_source_encoding.py │ ├── test_abc.py │ ├── test_api.py │ ├── test_lazy.py │ ├── test_locks.py │ ├── test_namespace_pkgs.py │ ├── test_spec.py │ ├── test_util.py │ ├── test_windows.py │ └── util.py ├── test_index.py ├── test_inspect.py ├── test_int.py ├── test_int_literal.py ├── test_io.py ├── test_ioctl.py ├── test_ipaddress.py ├── test_isinstance.py ├── test_iter.py ├── test_iterlen.py ├── test_itertools.py ├── test_json │ ├── __init__.py │ ├── __main__.py │ ├── test_decode.py │ ├── test_default.py │ ├── test_dump.py │ ├── test_encode_basestring_ascii.py │ ├── test_enum.py │ ├── test_fail.py │ ├── test_float.py │ ├── test_indent.py │ ├── test_pass1.py │ ├── test_pass2.py │ ├── test_pass3.py │ ├── test_recursion.py │ ├── test_scanstring.py │ ├── test_separators.py │ ├── test_speedups.py │ ├── test_tool.py │ └── test_unicode.py ├── test_keyword.py ├── test_keywordonlyarg.py ├── test_kqueue.py ├── test_largefile.py ├── test_lib2to3.py ├── test_linecache.py ├── test_list.py ├── test_listcomps.py ├── test_locale.py ├── test_logging.py ├── test_long.py ├── test_longexp.py ├── test_lzma.py ├── test_macpath.py ├── test_macurl2path.py ├── test_mailbox.py ├── test_mailcap.py ├── test_marshal.py ├── test_math.py ├── test_memoryio.py ├── test_memoryview.py ├── test_metaclass.py ├── test_mimetypes.py ├── test_minidom.py ├── test_mmap.py ├── test_module.py ├── test_modulefinder.py ├── test_msilib.py ├── test_multibytecodec.py ├── test_multiprocessing_fork.py ├── test_multiprocessing_forkserver.py ├── test_multiprocessing_main_handling.py ├── test_multiprocessing_spawn.py ├── test_netrc.py ├── test_nis.py ├── test_nntplib.py ├── test_normalization.py ├── test_ntpath.py ├── test_numeric_tower.py ├── test_opcodes.py ├── test_openpty.py ├── test_operator.py ├── test_optparse.py ├── test_os.py ├── test_ossaudiodev.py ├── test_osx_env.py ├── test_parser.py ├── test_pathlib.py ├── test_pdb.py ├── test_peepholer.py ├── test_pep247.py ├── test_pep277.py ├── test_pep292.py ├── test_pep3120.py ├── test_pep3131.py ├── test_pep3151.py ├── test_pep352.py ├── test_pep380.py ├── test_pickle.py ├── test_pickletools.py ├── test_pipes.py ├── test_pkg.py ├── test_pkgimport.py ├── test_pkgutil.py ├── test_platform.py ├── test_plistlib.py ├── test_poll.py ├── test_popen.py ├── test_poplib.py ├── test_posix.py ├── test_posixpath.py ├── test_pow.py ├── test_pprint.py ├── test_print.py ├── test_profile.py ├── test_property.py ├── test_pstats.py ├── test_pty.py ├── test_pulldom.py ├── test_pwd.py ├── test_py_compile.py ├── test_pyclbr.py ├── test_pydoc.py ├── test_pyexpat.py ├── test_queue.py ├── test_quopri.py ├── test_raise.py ├── test_random.py ├── test_range.py ├── test_re.py ├── test_readline.py ├── test_regrtest.py ├── test_reprlib.py ├── test_resource.py ├── test_richcmp.py ├── test_rlcompleter.py ├── test_robotparser.py ├── test_runpy.py ├── test_sax.py ├── test_sched.py ├── test_scope.py ├── test_select.py ├── test_selectors.py ├── test_set.py ├── test_setcomps.py ├── test_shelve.py ├── test_shlex.py ├── test_shutil.py ├── test_signal.py ├── test_site.py ├── test_slice.py ├── test_smtpd.py ├── test_smtplib.py ├── test_smtpnet.py ├── test_sndhdr.py ├── test_socket.py ├── test_socketserver.py ├── test_sort.py ├── test_source_encoding.py ├── test_spwd.py ├── test_sqlite.py ├── test_ssl.py ├── test_startfile.py ├── test_stat.py ├── test_statistics.py ├── test_strftime.py ├── test_string.py ├── test_stringprep.py ├── test_strlit.py ├── test_strptime.py ├── test_strtod.py ├── test_struct.py ├── test_structmembers.py ├── test_structseq.py ├── test_subprocess.py ├── test_sunau.py ├── test_sundry.py ├── test_super.py ├── test_support.py ├── test_symtable.py ├── test_syntax.py ├── test_sys.py ├── test_sys_setprofile.py ├── test_sys_settrace.py ├── test_sysconfig.py ├── test_syslog.py ├── test_tarfile.py ├── test_tcl.py ├── test_telnetlib.py ├── test_tempfile.py ├── test_textwrap.py ├── test_thread.py ├── test_threaded_import.py ├── test_threadedtempfile.py ├── test_threading.py ├── test_threading_local.py ├── test_threadsignals.py ├── test_time.py ├── test_timeit.py ├── test_timeout.py ├── test_tk.py ├── test_tokenize.py ├── test_tools.py ├── test_trace.py ├── test_traceback.py ├── test_tracemalloc.py ├── test_ttk_guionly.py ├── test_ttk_textonly.py ├── test_tuple.py ├── test_typechecks.py ├── test_types.py ├── test_ucn.py ├── test_unary.py ├── test_unicode.py ├── test_unicode_file.py ├── test_unicodedata.py ├── test_unittest.py ├── test_univnewlines.py ├── test_unpack.py ├── test_unpack_ex.py ├── test_urllib.py ├── test_urllib2.py ├── test_urllib2_localnet.py ├── test_urllib2net.py ├── test_urllib_response.py ├── test_urllibnet.py ├── test_urlparse.py ├── test_userdict.py ├── test_userlist.py ├── test_userstring.py ├── test_uu.py ├── test_uuid.py ├── test_venv.py ├── test_wait3.py ├── test_wait4.py ├── test_warnings.py ├── test_wave.py ├── test_weakref.py ├── test_weakset.py ├── test_webbrowser.py ├── test_winreg.py ├── test_winsound.py ├── test_with.py ├── test_wsgiref.py ├── test_xdrlib.py ├── test_xml_dom_minicompat.py ├── test_xml_etree.py ├── test_xml_etree_c.py ├── test_xmlrpc.py ├── test_xmlrpc_net.py ├── test_zipfile.py ├── test_zipfile64.py ├── test_zipimport.py ├── test_zipimport_support.py ├── test_zlib.py ├── testcodec.py ├── testtar.tar ├── tf_inherit_check.py ├── threaded_import_hangers.py ├── time_hashlib.py ├── tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt ├── tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt ├── tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt ├── tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt ├── tokenize_tests.txt ├── tracedmodules │ ├── __init__.py │ └── testmod.py ├── warning_tests.py ├── win_console_handler.py ├── xmltestdata │ ├── simple-ns.xml │ ├── simple.xml │ ├── test.xml │ └── test.xml.out ├── xmltests.py ├── zip_cp437_header.zip └── zipdir.zip ├── textwrap.py ├── this.py ├── threading.py ├── timeit.py ├── tkinter ├── __init__.py ├── __main__.py ├── _fix.py ├── colorchooser.py ├── commondialog.py ├── constants.py ├── dialog.py ├── dnd.py ├── filedialog.py ├── font.py ├── messagebox.py ├── scrolledtext.py ├── simpledialog.py ├── test │ ├── README │ ├── __init__.py │ ├── runtktests.py │ ├── support.py │ ├── test_tkinter │ │ ├── __init__.py │ │ ├── test_font.py │ │ ├── test_geometry_managers.py │ │ ├── test_images.py │ │ ├── test_loadtk.py │ │ ├── test_misc.py │ │ ├── test_text.py │ │ ├── test_variables.py │ │ └── test_widgets.py │ ├── test_ttk │ │ ├── __init__.py │ │ ├── test_extensions.py │ │ ├── test_functions.py │ │ ├── test_style.py │ │ └── test_widgets.py │ └── widget_tests.py ├── tix.py └── ttk.py ├── token.py ├── tokenize.py ├── trace.py ├── traceback.py ├── tracemalloc.py ├── tty.py ├── turtle.py ├── turtledemo ├── __init__.py ├── __main__.py ├── bytedesign.py ├── chaos.py ├── clock.py ├── colormixer.py ├── forest.py ├── fractalcurves.py ├── lindenmayer.py ├── minimal_hanoi.py ├── nim.py ├── paint.py ├── peace.py ├── penrose.py ├── planet_and_moon.py ├── round_dance.py ├── tree.py ├── turtle.cfg ├── two_canvases.py ├── wikipedia.py └── yinyang.py ├── types.py ├── unittest ├── __init__.py ├── __main__.py ├── case.py ├── loader.py ├── main.py ├── mock.py ├── result.py ├── runner.py ├── signals.py ├── suite.py ├── test │ ├── __init__.py │ ├── __main__.py │ ├── _test_warnings.py │ ├── dummy.py │ ├── support.py │ ├── test_assertions.py │ ├── test_break.py │ ├── test_case.py │ ├── test_discovery.py │ ├── test_functiontestcase.py │ ├── test_loader.py │ ├── test_program.py │ ├── test_result.py │ ├── test_runner.py │ ├── test_setups.py │ ├── test_skipping.py │ ├── test_suite.py │ └── testmock │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── support.py │ │ ├── testcallable.py │ │ ├── testhelpers.py │ │ ├── testmagicmethods.py │ │ ├── testmock.py │ │ ├── testpatch.py │ │ ├── testsentinel.py │ │ └── testwith.py └── util.py ├── urllib ├── __init__.py ├── error.py ├── parse.py ├── request.py ├── response.py └── robotparser.py ├── uu.py ├── uuid.py ├── venv ├── __init__.py ├── __main__.py └── scripts │ ├── nt │ ├── Activate.ps1 │ ├── activate.bat │ └── deactivate.bat │ └── posix │ ├── activate │ ├── activate.csh │ └── activate.fish ├── warnings.py ├── wave.py ├── weakref.py ├── webbrowser.py ├── wsgiref ├── __init__.py ├── handlers.py ├── headers.py ├── simple_server.py ├── util.py └── validate.py ├── xdrlib.py ├── xml ├── __init__.py ├── dom │ ├── NodeFilter.py │ ├── __init__.py │ ├── domreg.py │ ├── expatbuilder.py │ ├── minicompat.py │ ├── minidom.py │ ├── pulldom.py │ └── xmlbuilder.py ├── etree │ ├── ElementInclude.py │ ├── ElementPath.py │ ├── ElementTree.py │ ├── __init__.py │ └── cElementTree.py ├── parsers │ ├── __init__.py │ └── expat.py └── sax │ ├── __init__.py │ ├── _exceptions.py │ ├── expatreader.py │ ├── handler.py │ ├── saxutils.py │ └── xmlreader.py ├── xmlrpc ├── __init__.py ├── client.py └── server.py └── zipfile.py /.gitignore: -------------------------------------------------------------------------------- 1 | # IntelliJ project files 2 | *.iml 3 | .idea/ 4 | 5 | # Eclipse project files 6 | /.classpath 7 | /.project 8 | /.pydevproject 9 | /.settings/ 10 | 11 | # binaries 12 | gen/ 13 | target/ 14 | *.class 15 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python 3 parser   [![Build Status](https://travis-ci.org/bkiers/python3-parser.png)](https://travis-ci.org/bkiers/python3-parser) 2 | 3 | An ANTLR4 grammar for Python 3 based on version 3.3.5 of 4 | [The Python Language Reference](https://docs.python.org/3.3/reference/grammar.html). 5 | 6 | The unit tests consist of parsing all Python source files from 7 | Python 3's [standard library](http://hg.python.org/cpython/file/default/Lib/) 8 | which will take about 20 to 30 seconds to complete. 9 | 10 | ## Install 11 | 12 | To install this library, do the following: 13 | 14 | ```bash 15 | git clone https://github.com/bkiers/python3-parser 16 | cd python3-parser 17 | mvn clean install 18 | ``` 19 | 20 | ## Example 21 | 22 | Some examples are given in [this Main class](https://github.com/bkiers/python3-parser/blob/master/src/main/java/nl/bigo/pythonparser/Main.java). 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/nl/bigo/pythonparser/DescriptiveBailErrorListener.java: -------------------------------------------------------------------------------- 1 | package nl.bigo.pythonparser; 2 | 3 | import org.antlr.v4.runtime.BaseErrorListener; 4 | import org.antlr.v4.runtime.RecognitionException; 5 | import org.antlr.v4.runtime.Recognizer; 6 | 7 | /** 8 | * An error listener that immediately bails out of the parse (does not recover) 9 | * and throws a runtime exception with a descriptive error message. 10 | */ 11 | public class DescriptiveBailErrorListener extends BaseErrorListener { 12 | 13 | @Override 14 | public void syntaxError(Recognizer recognizer, Object offendingSymbol, 15 | int line, int charPositionInLine, 16 | String msg, RecognitionException e) { 17 | 18 | String entireMessage = String.format("source: %s, line: %s, index: %s, error message: %s %s", 19 | recognizer.getInputStream().getSourceName(), line, charPositionInLine, msg, 20 | e == null ? "" : e.getMessage()); 21 | 22 | throw new RuntimeException(entireMessage); 23 | } 24 | } -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/__phello__.foo.py: -------------------------------------------------------------------------------- 1 | # This file exists as a helper for the test.test_frozen module. 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/antigravity.py: -------------------------------------------------------------------------------- 1 | 2 | import webbrowser 3 | import hashlib 4 | 5 | webbrowser.open("http://xkcd.com/353/") 6 | 7 | def geohash(latitude, longitude, datedow): 8 | '''Compute geohash() using the Munroe algorithm. 9 | 10 | >>> geohash(37.421542, -122.085589, b'2005-05-26-10458.68') 11 | 37.857713 -122.544543 12 | 13 | ''' 14 | # http://xkcd.com/426/ 15 | h = hashlib.md5(datedow).hexdigest() 16 | p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], h[16:32])] 17 | print('%d%s %d%s' % (latitude, p[1:], longitude, q[1:])) 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/asyncio/constants.py: -------------------------------------------------------------------------------- 1 | """Constants.""" 2 | 3 | # After the connection is lost, log warnings after this many write()s. 4 | LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5 5 | 6 | # Seconds to wait before retrying accept(). 7 | ACCEPT_RETRY_DELAY = 1 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/asyncio/log.py: -------------------------------------------------------------------------------- 1 | """Logging configuration.""" 2 | 3 | import logging 4 | 5 | 6 | # Name the logger after the package. 7 | logger = logging.getLogger(__package__) 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/collections/abc.py: -------------------------------------------------------------------------------- 1 | from _collections_abc import * 2 | from _collections_abc import __all__ 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/concurrent/__init__.py: -------------------------------------------------------------------------------- 1 | # This directory is a Python package. 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/concurrent/futures/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2009 Brian Quinlan. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Execute computations asynchronously using threads or processes.""" 5 | 6 | __author__ = 'Brian Quinlan (brian@sweetapp.com)' 7 | 8 | from concurrent.futures._base import (FIRST_COMPLETED, 9 | FIRST_EXCEPTION, 10 | ALL_COMPLETED, 11 | CancelledError, 12 | TimeoutError, 13 | Future, 14 | Executor, 15 | wait, 16 | as_completed) 17 | from concurrent.futures.process import ProcessPoolExecutor 18 | from concurrent.futures.thread import ThreadPoolExecutor 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/macholib/README.ctypes: -------------------------------------------------------------------------------- 1 | Files in this directory from from Bob Ippolito's py2app. 2 | 3 | License: Any components of the py2app suite may be distributed under 4 | the MIT or PSF open source licenses. 5 | 6 | This is version 1.0, SVN revision 789, from 2006/01/25. 7 | The main repository is http://svn.red-bean.com/bob/macholib/trunk/macholib/ -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/macholib/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Enough Mach-O to make your head spin. 3 | 4 | See the relevant header files in /usr/include/mach-o 5 | 6 | And also Apple's documentation. 7 | """ 8 | 9 | __version__ = '1.0' 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/macholib/fetch_macholib: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/macholib/fetch_macholib.bat: -------------------------------------------------------------------------------- 1 | svn export --force http://svn.red-bean.com/bob/macholib/trunk/macholib/ . 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/test/runtests.py: -------------------------------------------------------------------------------- 1 | """Usage: runtests.py [-q] [-r] [-v] [-u resources] [mask] 2 | 3 | Run all tests found in this directory, and print a summary of the results. 4 | Command line flags: 5 | -q quiet mode: don't print anything while the tests are running 6 | -r run tests repeatedly, look for refcount leaks 7 | -u 8 | Add resources to the lits of allowed resources. '*' allows all 9 | resources. 10 | -v verbose mode: print the test currently executed 11 | -x 12 | Exclude specified tests. 13 | mask mask to select filenames containing testcases, wildcards allowed 14 | """ 15 | import sys 16 | import ctypes.test 17 | 18 | if __name__ == "__main__": 19 | sys.exit(ctypes.test.main(ctypes.test)) 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/test/test_delattr.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from ctypes import * 3 | 4 | class X(Structure): 5 | _fields_ = [("foo", c_int)] 6 | 7 | class TestCase(unittest.TestCase): 8 | def test_simple(self): 9 | self.assertRaises(TypeError, 10 | delattr, c_int(42), "value") 11 | 12 | def test_chararray(self): 13 | self.assertRaises(TypeError, 14 | delattr, (c_char * 5)(), "value") 15 | 16 | def test_struct(self): 17 | self.assertRaises(TypeError, 18 | delattr, X(), "foo") 19 | 20 | if __name__ == "__main__": 21 | unittest.main() 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/test/test_errcheck.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from ctypes import * 3 | 4 | ##class HMODULE(Structure): 5 | ## _fields_ = [("value", c_void_p)] 6 | 7 | ## def __repr__(self): 8 | ## return "" % self.value 9 | 10 | ##windll.kernel32.GetModuleHandleA.restype = HMODULE 11 | 12 | ##print windll.kernel32.GetModuleHandleA("python23.dll") 13 | ##print hex(sys.dllhandle) 14 | 15 | ##def nonzero(handle): 16 | ## return (GetLastError(), handle) 17 | 18 | ##windll.kernel32.GetModuleHandleA.errcheck = nonzero 19 | ##print windll.kernel32.GetModuleHandleA("spam") 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/test/test_integers.py: -------------------------------------------------------------------------------- 1 | # superseded by test_numbers.py 2 | import unittest 3 | 4 | if __name__ == '__main__': 5 | unittest.main() 6 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/ctypes/test/test_repr.py: -------------------------------------------------------------------------------- 1 | from ctypes import * 2 | import unittest 3 | 4 | subclasses = [] 5 | for base in [c_byte, c_short, c_int, c_long, c_longlong, 6 | c_ubyte, c_ushort, c_uint, c_ulong, c_ulonglong, 7 | c_float, c_double, c_longdouble, c_bool]: 8 | class X(base): 9 | pass 10 | subclasses.append(X) 11 | 12 | class X(c_char): 13 | pass 14 | 15 | # This test checks if the __repr__ is correct for subclasses of simple types 16 | 17 | class ReprTest(unittest.TestCase): 18 | def test_numbers(self): 19 | for typ in subclasses: 20 | base = typ.__bases__[0] 21 | self.assertTrue(repr(base(42)).startswith(base.__name__)) 22 | self.assertEqual("' 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/__init__.py: -------------------------------------------------------------------------------- 1 | #empty 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from .main import main 3 | 4 | sys.exit(main("lib2to3.fixes")) 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/__init__.py: -------------------------------------------------------------------------------- 1 | # Dummy file to make this directory a package. 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_basestring.py: -------------------------------------------------------------------------------- 1 | """Fixer for basestring -> str.""" 2 | # Author: Christian Heimes 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Name 7 | 8 | class FixBasestring(fixer_base.BaseFix): 9 | BM_compatible = True 10 | 11 | PATTERN = "'basestring'" 12 | 13 | def transform(self, node, results): 14 | return Name("str", prefix=node.prefix) 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_buffer.py: -------------------------------------------------------------------------------- 1 | # Copyright 2007 Google, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer that changes buffer(...) into memoryview(...).""" 5 | 6 | # Local imports 7 | from .. import fixer_base 8 | from ..fixer_util import Name 9 | 10 | 11 | class FixBuffer(fixer_base.BaseFix): 12 | BM_compatible = True 13 | 14 | explicit = True # The user must ask for this fixer 15 | 16 | PATTERN = """ 17 | power< name='buffer' trailer< '(' [any] ')' > any* > 18 | """ 19 | 20 | def transform(self, node, results): 21 | name = results["name"] 22 | name.replace(Name("memoryview", prefix=name.prefix)) 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_funcattrs.py: -------------------------------------------------------------------------------- 1 | """Fix function attribute names (f.func_x -> f.__x__).""" 2 | # Author: Collin Winter 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Name 7 | 8 | 9 | class FixFuncattrs(fixer_base.BaseFix): 10 | BM_compatible = True 11 | 12 | PATTERN = """ 13 | power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals' 14 | | 'func_name' | 'func_defaults' | 'func_code' 15 | | 'func_dict') > any* > 16 | """ 17 | 18 | def transform(self, node, results): 19 | attr = results["attr"][0] 20 | attr.replace(Name(("__%s__" % attr.value[5:]), 21 | prefix=attr.prefix)) 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_future.py: -------------------------------------------------------------------------------- 1 | """Remove __future__ imports 2 | 3 | from __future__ import foo is replaced with an empty line. 4 | """ 5 | # Author: Christian Heimes 6 | 7 | # Local imports 8 | from .. import fixer_base 9 | from ..fixer_util import BlankLine 10 | 11 | class FixFuture(fixer_base.BaseFix): 12 | BM_compatible = True 13 | 14 | PATTERN = """import_from< 'from' module_name="__future__" 'import' any >""" 15 | 16 | # This should be run last -- some things check for the import 17 | run_order = 10 18 | 19 | def transform(self, node, results): 20 | new = BlankLine() 21 | new.prefix = node.prefix 22 | return new 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_getcwdu.py: -------------------------------------------------------------------------------- 1 | """ 2 | Fixer that changes os.getcwdu() to os.getcwd(). 3 | """ 4 | # Author: Victor Stinner 5 | 6 | # Local imports 7 | from .. import fixer_base 8 | from ..fixer_util import Name 9 | 10 | class FixGetcwdu(fixer_base.BaseFix): 11 | BM_compatible = True 12 | 13 | PATTERN = """ 14 | power< 'os' trailer< dot='.' name='getcwdu' > any* > 15 | """ 16 | 17 | def transform(self, node, results): 18 | name = results["name"] 19 | name.replace(Name("getcwd", prefix=name.prefix)) 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_imports2.py: -------------------------------------------------------------------------------- 1 | """Fix incompatible imports and module references that must be fixed after 2 | fix_imports.""" 3 | from . import fix_imports 4 | 5 | 6 | MAPPING = { 7 | 'whichdb': 'dbm', 8 | 'anydbm': 'dbm', 9 | } 10 | 11 | 12 | class FixImports2(fix_imports.FixImports): 13 | 14 | run_order = 7 15 | 16 | mapping = MAPPING 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_input.py: -------------------------------------------------------------------------------- 1 | """Fixer that changes input(...) into eval(input(...)).""" 2 | # Author: Andre Roberge 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Call, Name 7 | from .. import patcomp 8 | 9 | 10 | context = patcomp.compile_pattern("power< 'eval' trailer< '(' any ')' > >") 11 | 12 | 13 | class FixInput(fixer_base.BaseFix): 14 | BM_compatible = True 15 | PATTERN = """ 16 | power< 'input' args=trailer< '(' [any] ')' > > 17 | """ 18 | 19 | def transform(self, node, results): 20 | # If we're already wrapped in a eval() call, we're done. 21 | if context.match(node.parent.parent): 22 | return 23 | 24 | new = node.clone() 25 | new.prefix = "" 26 | return Call(Name("eval"), [new], prefix=node.prefix) 27 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_intern.py: -------------------------------------------------------------------------------- 1 | # Copyright 2006 Georg Brandl. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer for intern(). 5 | 6 | intern(s) -> sys.intern(s)""" 7 | 8 | # Local imports 9 | from .. import fixer_base 10 | from ..fixer_util import ImportAndCall, touch_import 11 | 12 | 13 | class FixIntern(fixer_base.BaseFix): 14 | BM_compatible = True 15 | order = "pre" 16 | 17 | PATTERN = """ 18 | power< 'intern' 19 | trailer< lpar='(' 20 | ( not(arglist | argument) any ','> ) 22 | rpar=')' > 23 | after=any* 24 | > 25 | """ 26 | 27 | def transform(self, node, results): 28 | names = ('sys', 'intern') 29 | new = ImportAndCall(node, results, names) 30 | touch_import(None, 'sys', node) 31 | return new 32 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_long.py: -------------------------------------------------------------------------------- 1 | # Copyright 2006 Google, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer that turns 'long' into 'int' everywhere. 5 | """ 6 | 7 | # Local imports 8 | from lib2to3 import fixer_base 9 | from lib2to3.fixer_util import is_probably_builtin 10 | 11 | 12 | class FixLong(fixer_base.BaseFix): 13 | BM_compatible = True 14 | PATTERN = "'long'" 15 | 16 | def transform(self, node, results): 17 | if is_probably_builtin(node): 18 | node.value = "int" 19 | node.changed() 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_methodattrs.py: -------------------------------------------------------------------------------- 1 | """Fix bound method attributes (method.im_? -> method.__?__). 2 | """ 3 | # Author: Christian Heimes 4 | 5 | # Local imports 6 | from .. import fixer_base 7 | from ..fixer_util import Name 8 | 9 | MAP = { 10 | "im_func" : "__func__", 11 | "im_self" : "__self__", 12 | "im_class" : "__self__.__class__" 13 | } 14 | 15 | class FixMethodattrs(fixer_base.BaseFix): 16 | BM_compatible = True 17 | PATTERN = """ 18 | power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* > 19 | """ 20 | 21 | def transform(self, node, results): 22 | attr = results["attr"][0] 23 | new = MAP[attr.value] 24 | attr.replace(Name(new, prefix=attr.prefix)) 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_ne.py: -------------------------------------------------------------------------------- 1 | # Copyright 2006 Google, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer that turns <> into !=.""" 5 | 6 | # Local imports 7 | from .. import pytree 8 | from ..pgen2 import token 9 | from .. import fixer_base 10 | 11 | 12 | class FixNe(fixer_base.BaseFix): 13 | # This is so simple that we don't need the pattern compiler. 14 | 15 | _accept_type = token.NOTEQUAL 16 | 17 | def match(self, node): 18 | # Override 19 | return node.value == "<>" 20 | 21 | def transform(self, node, results): 22 | new = pytree.Leaf(token.NOTEQUAL, "!=", prefix=node.prefix) 23 | return new 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_nonzero.py: -------------------------------------------------------------------------------- 1 | """Fixer for __nonzero__ -> __bool__ methods.""" 2 | # Author: Collin Winter 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Name, syms 7 | 8 | class FixNonzero(fixer_base.BaseFix): 9 | BM_compatible = True 10 | PATTERN = """ 11 | classdef< 'class' any+ ':' 12 | suite< any* 13 | funcdef< 'def' name='__nonzero__' 14 | parameters< '(' NAME ')' > any+ > 15 | any* > > 16 | """ 17 | 18 | def transform(self, node, results): 19 | name = results["name"] 20 | new = Name("__bool__", prefix=name.prefix) 21 | name.replace(new) 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_numliterals.py: -------------------------------------------------------------------------------- 1 | """Fixer that turns 1L into 1, 0755 into 0o755. 2 | """ 3 | # Copyright 2007 Georg Brandl. 4 | # Licensed to PSF under a Contributor Agreement. 5 | 6 | # Local imports 7 | from ..pgen2 import token 8 | from .. import fixer_base 9 | from ..fixer_util import Number 10 | 11 | 12 | class FixNumliterals(fixer_base.BaseFix): 13 | # This is so simple that we don't need the pattern compiler. 14 | 15 | _accept_type = token.NUMBER 16 | 17 | def match(self, node): 18 | # Override 19 | return (node.value.startswith("0") or node.value[-1] in "Ll") 20 | 21 | def transform(self, node, results): 22 | val = node.value 23 | if val[-1] in 'Ll': 24 | val = val[:-1] 25 | elif val.startswith('0') and val.isdigit() and len(set(val)) > 1: 26 | val = "0o" + val[1:] 27 | 28 | return Number(val, prefix=node.prefix) 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_raw_input.py: -------------------------------------------------------------------------------- 1 | """Fixer that changes raw_input(...) into input(...).""" 2 | # Author: Andre Roberge 3 | 4 | # Local imports 5 | from .. import fixer_base 6 | from ..fixer_util import Name 7 | 8 | class FixRawInput(fixer_base.BaseFix): 9 | 10 | BM_compatible = True 11 | PATTERN = """ 12 | power< name='raw_input' trailer< '(' [any] ')' > any* > 13 | """ 14 | 15 | def transform(self, node, results): 16 | name = results["name"] 17 | name.replace(Name("input", prefix=name.prefix)) 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_reduce.py: -------------------------------------------------------------------------------- 1 | # Copyright 2008 Armin Ronacher. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer for reduce(). 5 | 6 | Makes sure reduce() is imported from the functools module if reduce is 7 | used in that module. 8 | """ 9 | 10 | from lib2to3 import fixer_base 11 | from lib2to3.fixer_util import touch_import 12 | 13 | 14 | 15 | class FixReduce(fixer_base.BaseFix): 16 | 17 | BM_compatible = True 18 | order = "pre" 19 | 20 | PATTERN = """ 21 | power< 'reduce' 22 | trailer< '(' 23 | arglist< ( 24 | (not(argument) any ',' 27 | not(argument 31 | > 32 | """ 33 | 34 | def transform(self, node, results): 35 | touch_import('functools', 'reduce', node) 36 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_reload.py: -------------------------------------------------------------------------------- 1 | """Fixer for reload(). 2 | 3 | reload(s) -> imp.reload(s)""" 4 | 5 | # Local imports 6 | from .. import fixer_base 7 | from ..fixer_util import ImportAndCall, touch_import 8 | 9 | 10 | class FixReload(fixer_base.BaseFix): 11 | BM_compatible = True 12 | order = "pre" 13 | 14 | PATTERN = """ 15 | power< 'reload' 16 | trailer< lpar='(' 17 | ( not(arglist | argument) any ','> ) 19 | rpar=')' > 20 | after=any* 21 | > 22 | """ 23 | 24 | def transform(self, node, results): 25 | names = ('imp', 'reload') 26 | new = ImportAndCall(node, results, names) 27 | touch_import(None, 'imp', node) 28 | return new 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_repr.py: -------------------------------------------------------------------------------- 1 | # Copyright 2006 Google, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer that transforms `xyzzy` into repr(xyzzy).""" 5 | 6 | # Local imports 7 | from .. import fixer_base 8 | from ..fixer_util import Call, Name, parenthesize 9 | 10 | 11 | class FixRepr(fixer_base.BaseFix): 12 | 13 | BM_compatible = True 14 | PATTERN = """ 15 | atom < '`' expr=any '`' > 16 | """ 17 | 18 | def transform(self, node, results): 19 | expr = results["expr"].clone() 20 | 21 | if expr.type == self.syms.testlist1: 22 | expr = parenthesize(expr) 23 | return Call(Name("repr"), [expr], prefix=node.prefix) 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_standarderror.py: -------------------------------------------------------------------------------- 1 | # Copyright 2007 Google, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """Fixer for StandardError -> Exception.""" 5 | 6 | # Local imports 7 | from .. import fixer_base 8 | from ..fixer_util import Name 9 | 10 | 11 | class FixStandarderror(fixer_base.BaseFix): 12 | BM_compatible = True 13 | PATTERN = """ 14 | 'StandardError' 15 | """ 16 | 17 | def transform(self, node, results): 18 | return Name("Exception", prefix=node.prefix) 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/fixes/fix_xreadlines.py: -------------------------------------------------------------------------------- 1 | """Fix "for x in f.xreadlines()" -> "for x in f". 2 | 3 | This fixer will also convert g(f.xreadlines) into g(f.__iter__).""" 4 | # Author: Collin Winter 5 | 6 | # Local imports 7 | from .. import fixer_base 8 | from ..fixer_util import Name 9 | 10 | 11 | class FixXreadlines(fixer_base.BaseFix): 12 | BM_compatible = True 13 | PATTERN = """ 14 | power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > > 15 | | 16 | power< any+ trailer< '.' no_call='xreadlines' > > 17 | """ 18 | 19 | def transform(self, node, results): 20 | no_call = results.get("no_call") 21 | 22 | if no_call: 23 | no_call.replace(Name("__iter__", prefix=no_call.prefix)) 24 | else: 25 | node.replace([x.clone() for x in results["call"]]) 26 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/pgen2/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. 2 | # Licensed to PSF under a Contributor Agreement. 3 | 4 | """The pgen2 package.""" 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Make tests/ into a package. This allows us to "import tests" and 2 | have tests.all_tests be a TestSuite representing all test cases 3 | from all test_*.py files in tests/.""" 4 | # Author: Collin Winter 5 | 6 | import os 7 | import os.path 8 | import unittest 9 | import types 10 | 11 | from . import support 12 | 13 | all_tests = unittest.TestSuite() 14 | 15 | tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests') 16 | tests = [t[0:-3] for t in os.listdir(tests_dir) 17 | if t.startswith('test_') and t.endswith('.py')] 18 | 19 | loader = unittest.TestLoader() 20 | 21 | for t in tests: 22 | __import__("",globals(),locals(),[t],level=1) 23 | mod = globals()[t] 24 | all_tests.addTests(loader.loadTestsFromModule(mod)) 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/README: -------------------------------------------------------------------------------- 1 | In this directory: 2 | - py2_test_grammar.py -- test file that exercises most/all of Python 2.x's grammar. 3 | - py3_test_grammar.py -- test file that exercises most/all of Python 3.x's grammar. 4 | - infinite_recursion.py -- test file that causes lib2to3's faster recursive pattern matching 5 | scheme to fail, but passes when lib2to3 falls back to iterative pattern matching. 6 | - fixes/ -- for use by test_refactor.py 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/bom.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | print "BOM BOOM!" 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/crlf.py: -------------------------------------------------------------------------------- 1 | print "hi" 2 | 3 | print "Like bad Windows newlines?" 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/different_encoding.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | print u'ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ' 4 | 5 | def f(x): 6 | print '%s\t-> α(%2i):%s β(%s)' 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/false_encoding.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | print '#coding=0' 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/bad_order.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixBadOrder(BaseFix): 4 | 5 | order = "crazy" 6 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/fix_explicit.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixExplicit(BaseFix): 4 | explicit = True 5 | 6 | def match(self): return False 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/fix_first.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixFirst(BaseFix): 4 | run_order = 1 5 | 6 | def match(self, node): return False 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixLast(BaseFix): 4 | 5 | run_order = 10 6 | 7 | def match(self, node): return False 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | from lib2to3.fixer_util import Name 3 | 4 | class FixParrot(BaseFix): 5 | """ 6 | Change functions named 'parrot' to 'cheese'. 7 | """ 8 | 9 | PATTERN = """funcdef < 'def' name='parrot' any* >""" 10 | 11 | def transform(self, node, results): 12 | name = results["name"] 13 | name.replace(Name("cheese", name.prefix)) 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/myfixes/fix_preorder.py: -------------------------------------------------------------------------------- 1 | from lib2to3.fixer_base import BaseFix 2 | 3 | class FixPreorder(BaseFix): 4 | order = "pre" 5 | 6 | def match(self, node): return False 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/no_fixer_cls.py: -------------------------------------------------------------------------------- 1 | # This is empty so trying to fetch the fixer class gives an AttributeError 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/data/fixers/parrot_example.py: -------------------------------------------------------------------------------- 1 | def parrot(): 2 | pass 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/lib2to3/tests/test_all_fixers.py: -------------------------------------------------------------------------------- 1 | """Tests that run all fixer modules over an input stream. 2 | 3 | This has been broken out into its own test module because of its 4 | running time. 5 | """ 6 | # Author: Collin Winter 7 | 8 | # Python imports 9 | import unittest 10 | 11 | # Local imports 12 | from lib2to3 import refactor 13 | from . import support 14 | 15 | 16 | class Test_all(support.TestCase): 17 | 18 | def setUp(self): 19 | self.refactor = support.get_refactorer() 20 | 21 | def test_all_project_files(self): 22 | for filepath in support.all_project_files(): 23 | self.refactor.refactor_file(filepath) 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-aix4/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | case `uname -sv` in 3 | 'AIX 4'*) ;; 4 | *) echo Probably not on an AIX 4 system 1>&2 5 | exit 1;; 6 | esac 7 | set -v 8 | h2py.py -i '(u_long)' /usr/include/netinet/in.h 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-darwin/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-freebsd4/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-freebsd5/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-freebsd6/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-freebsd7/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-freebsd8/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-generic/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-linux/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | case `uname` in 3 | Linux*) ;; 4 | *) echo Probably not on a Linux system 1>&2 5 | exit 1;; 6 | esac 7 | set -v 8 | h2py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-netbsd1/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-next3/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -v 3 | INCLUDE="/NextDeveloper/Headers;/NextDeveloper/Headers/ansi;/NextDeveloper/Headers/bsd" 4 | export INCLUDE 5 | 6 | python ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/bsd/netinet/in.h 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-sunos5/DLFCN.py: -------------------------------------------------------------------------------- 1 | # Generated by h2py from /usr/include/dlfcn.h 2 | from TYPES import * 3 | RTLD_LAZY = 0x00001 4 | RTLD_NOW = 0x00002 5 | RTLD_NOLOAD = 0x00004 6 | RTLD_GLOBAL = 0x00100 7 | RTLD_LOCAL = 0x00000 8 | RTLD_PARENT = 0x00200 9 | RTLD_GROUP = 0x00400 10 | RTLD_WORLD = 0x00800 11 | RTLD_NODELETE = 0x01000 12 | RTLD_CONFGEN = 0x10000 13 | RTLD_REL_RELATIVE = 0x00001 14 | RTLD_REL_EXEC = 0x00002 15 | RTLD_REL_DEPENDS = 0x00004 16 | RTLD_REL_PRELOAD = 0x00008 17 | RTLD_REL_SELF = 0x00010 18 | RTLD_REL_WEAK = 0x00020 19 | RTLD_REL_ALL = 0x00fff 20 | RTLD_MEMORY = 0x01000 21 | RTLD_STRIP = 0x02000 22 | RTLD_NOHEAP = 0x04000 23 | RTLD_CONFSET = 0x10000 24 | RTLD_DI_LMID = 1 25 | RTLD_DI_LINKMAP = 2 26 | RTLD_DI_CONFIGADDR = 3 27 | RTLD_DI_MAX = 3 28 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-sunos5/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | case `uname -sr` in 3 | 'SunOS 5.'*) ;; 4 | *) echo Probably not on a Solaris 2 system 1>&2 5 | exit 1;; 6 | esac 7 | set -v 8 | h2py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/sys/stropts.h /usr/include/dlfcn.h 9 | 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/plat-unixware7/regen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | case `uname -sr` in 3 | UnixWare*) ;; 4 | *) echo Probably not on a UnixWare system 1>&2 5 | exit 1;; 6 | esac 7 | set -v 8 | h2py -i '(u_long)' /usr/include/netinet/in.h 9 | h2py /usr/include/sys/stropts.h 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/pydoc_data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/pydoc_data/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/pydoc_data/_pydoc.css: -------------------------------------------------------------------------------- 1 | /* 2 | CSS file for pydoc. 3 | 4 | Contents of this file are subject to change without notice. 5 | 6 | */ 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/site-packages/README: -------------------------------------------------------------------------------- 1 | This directory exists so that 3rd party packages can be installed 2 | here. Read the source for site.py for more details. 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/dbapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/dbapi.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/factory.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/hooks.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/regression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/regression.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/transactions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/transactions.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/types.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/userfunctions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/sqlite3/test/userfunctions.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/struct.py: -------------------------------------------------------------------------------- 1 | __all__ = [ 2 | # Functions 3 | 'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from', 4 | 'iter_unpack', 5 | 6 | # Classes 7 | 'Struct', 8 | 9 | # Exceptions 10 | 'error' 11 | ] 12 | 13 | from _struct import * 14 | from _struct import _clearcache 15 | from _struct import __doc__ 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/185test.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/185test.db -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/Sine-1000Hz-300ms.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/Sine-1000Hz-300ms.aif -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/__init__.py: -------------------------------------------------------------------------------- 1 | # Dummy file to make this directory a package. 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/__main__.py: -------------------------------------------------------------------------------- 1 | from test import regrtest 2 | 3 | regrtest.main_in_temp_cwd() 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-alaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-alaw.aifc -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.aiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm16.wav -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.aiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm24.wav -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.aiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm32.wav -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.aiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-pcm8.wav -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-ulaw.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-ulaw.aifc -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-ulaw.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiodata/pluck-ulaw.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/audiotest.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/audiotest.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/autotest.py: -------------------------------------------------------------------------------- 1 | # This should be equivalent to running regrtest.py from the cmdline. 2 | # It can be especially handy if you're in an interactive shell, e.g., 3 | # from test import autotest. 4 | 5 | from test import regrtest 6 | regrtest.main() 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/bad_coding.py: -------------------------------------------------------------------------------- 1 | # -*- coding: uft-8 -*- 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/bad_coding2.py: -------------------------------------------------------------------------------- 1 | #coding: utf8 2 | print('我') 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_3131.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | € = 2 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future10.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | "spam, bar, blah" 3 | from __future__ import print_function 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future3.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | from __future__ import nested_scopes 3 | from __future__ import rested_snopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future4.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | import __future__ 3 | from __future__ import nested_scopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future5.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | from __future__ import nested_scopes 3 | import foo 4 | from __future__ import nested_scopes 5 | 6 | 7 | def f(x): 8 | def g(y): 9 | return x + y 10 | return g 11 | 12 | result = f(2)(4) 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future6.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | "this isn't a doc string" 3 | from __future__ import nested_scopes 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future7.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes; import string; from __future__ import \ 4 | nested_scopes 5 | 6 | def f(x): 7 | def g(y): 8 | return x + y 9 | return g 10 | 11 | result = f(2)(4) 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future8.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import * 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | print(f(2)(4)) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_future9.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes, braces 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | print(f(2)(4)) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_pep3120.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/badsyntax_pep3120.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/capath/4e1295a3.0: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICLDCCAdYCAQAwDQYJKoZIhvcNAQEEBQAwgaAxCzAJBgNVBAYTAlBUMRMwEQYD 3 | VQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5ldXJv 4 | bmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMTEmJy 5 | dXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZpMB4X 6 | DTk2MDkwNTAzNDI0M1oXDTk2MTAwNTAzNDI0M1owgaAxCzAJBgNVBAYTAlBUMRMw 7 | EQYDVQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5l 8 | dXJvbmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMT 9 | EmJydXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZp 10 | MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL7+aty3S1iBA/+yxjxv4q1MUTd1kjNw 11 | L4lYKbpzzlmC5beaQXeQ2RmGMTXU+mDvuqItjVHOK3DvPK7lTcSGftUCAwEAATAN 12 | BgkqhkiG9w0BAQQFAANBAFqPEKFjk6T6CKTHvaQeEAsX0/8YHPHqH/9AnhSjrwuX 13 | 9EBc0n6bVGhN7XaXd6sJ7dym9sbsWxb+pJdurnkxjx4= 14 | -----END CERTIFICATE----- 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/capath/6e88d7b8.0: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICLDCCAdYCAQAwDQYJKoZIhvcNAQEEBQAwgaAxCzAJBgNVBAYTAlBUMRMwEQYD 3 | VQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5ldXJv 4 | bmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMTEmJy 5 | dXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZpMB4X 6 | DTk2MDkwNTAzNDI0M1oXDTk2MTAwNTAzNDI0M1owgaAxCzAJBgNVBAYTAlBUMRMw 7 | EQYDVQQIEwpRdWVlbnNsYW5kMQ8wDQYDVQQHEwZMaXNib2ExFzAVBgNVBAoTDk5l 8 | dXJvbmlvLCBMZGEuMRgwFgYDVQQLEw9EZXNlbnZvbHZpbWVudG8xGzAZBgNVBAMT 9 | EmJydXR1cy5uZXVyb25pby5wdDEbMBkGCSqGSIb3DQEJARYMc2FtcG9AaWtpLmZp 10 | MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL7+aty3S1iBA/+yxjxv4q1MUTd1kjNw 11 | L4lYKbpzzlmC5beaQXeQ2RmGMTXU+mDvuqItjVHOK3DvPK7lTcSGftUCAwEAATAN 12 | BgkqhkiG9w0BAQQFAANBAFqPEKFjk6T6CKTHvaQeEAsX0/8YHPHqH/9AnhSjrwuX 13 | 9EBc0n6bVGhN7XaXd6sJ7dym9sbsWxb+pJdurnkxjx4= 14 | -----END CERTIFICATE----- 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cfgparser.1: -------------------------------------------------------------------------------- 1 | [Foo Bar] 2 | foo=newbar 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/check_soundcard.vbs: -------------------------------------------------------------------------------- 1 | rem Check for a working sound-card - exit with 0 if OK, 1 otherwise. 2 | set wmi = GetObject("winmgmts:") 3 | set scs = wmi.InstancesOf("win32_sounddevice") 4 | for each sc in scs 5 | set status = sc.Properties_("Status") 6 | wscript.Echo(sc.Properties_("Name") + "/" + status) 7 | if status = "OK" then 8 | wscript.Quit 0 rem normal exit 9 | end if 10 | next 11 | rem No sound card found - exit with status code of 1 12 | wscript.Quit 1 13 | 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5-utf8.txt: -------------------------------------------------------------------------------- 1 | 如何在 Python 中使用既有的 C library? 2 |  在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的 3 | 課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的 4 | library, 並有一個 fast prototyping 的 programming language 可 5 | 供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個 6 | fast prototyping 的 programming language. 故我們希望能將既有的 7 | C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所 8 | 要討論的問題就是: 9 | 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5hkscs-utf8.txt: -------------------------------------------------------------------------------- 1 | 𠄌Ě鵮罓洆 2 | ÊÊ̄ê êê̄ 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5hkscs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/big5hkscs.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/cp949-utf8.txt: -------------------------------------------------------------------------------- 1 | 똠방각하 펲시콜라 2 | 3 | ㉯㉯납!! 因九月패믤릔궈 ⓡⓖ훀¿¿¿ 긍뒙 ⓔ뎨 ㉯. . 4 | 亞영ⓔ능횹 . . . . 서울뤄 뎐학乙 家훀 ! ! !ㅠ.ㅠ 5 | 흐흐흐 ㄱㄱㄱ☆ㅠ_ㅠ 어릨 탸콰긐 뎌응 칑九들乙 ㉯드긐 6 | 설릌 家훀 . . . . 굴애쉌 ⓔ궈 ⓡ릘㉱긐 因仁川女中까즼 7 | 와쒀훀 ! ! 亞영ⓔ 家능궈 ☆上관 없능궈능 亞능뒈훀 글애듴 8 | ⓡ려듀九 싀풔숴훀 어릨 因仁川女中싁⑨들앜!! ㉯㉯납♡ ⌒⌒* 9 | 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/cp949.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/cp949.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jisx0213-utf8.txt: -------------------------------------------------------------------------------- 1 | Python の開発は、1990 年ごろから開始されています。 2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。 3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。 4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。 5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。 6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。 7 | 8 | ノか゚ ト゚ トキ喝塀 𡚴𪎌 麀齁𩛰 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jisx0213.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jp-utf8.txt: -------------------------------------------------------------------------------- 1 | Python の開発は、1990 年ごろから開始されています。 2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。 3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。 4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。 5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。 6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。 7 | 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_jp.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_kr-utf8.txt: -------------------------------------------------------------------------------- 1 | ◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은 2 | 효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을 3 | 지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅 4 | 환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른 5 | 애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다. 6 | 7 | ☆첫가끝: 날아라 쓔쓔쓩~ 닁큼! 뜽금없이 전홥니다. 뷁. 그런거 읎다. 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_kr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/euc_kr.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb18030-utf8.txt: -------------------------------------------------------------------------------- 1 | Python(派森)语言是一种功能强大而完善的通用型计算机程序设计语言, 2 | 已经具有十多年的发展历史,成熟且稳定。这种语言具有非常简捷而清晰 3 | 的语法特点,适合完成各种高层任务,几乎可以在所有的操作系统中 4 | 运行。这种语言简单而强大,适合各种人士学习使用。目前,基于这 5 | 种语言的相关技术正在飞速的发展,用户数量急剧扩大,相关的资源非常多。 6 | 如何在 Python 中使用既有的 C library? 7 |  在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的 8 | 課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的 9 | library, 並有一個 fast prototyping 的 programming language 可 10 | 供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個 11 | fast prototyping 的 programming language. 故我們希望能將既有的 12 | C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所 13 | 要討論的問題就是: 14 | 파이썬은 강력한 기능을 지닌 범용 컴퓨터 프로그래밍 언어다. 15 | 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb18030.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb18030.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb2312-utf8.txt: -------------------------------------------------------------------------------- 1 | Python(派森)语言是一种功能强大而完善的通用型计算机程序设计语言, 2 | 已经具有十多年的发展历史,成熟且稳定。这种语言具有非常简捷而清晰 3 | 的语法特点,适合完成各种高层任务,几乎可以在所有的操作系统中 4 | 运行。这种语言简单而强大,适合各种人士学习使用。目前,基于这 5 | 种语言的相关技术正在飞速的发展,用户数量急剧扩大,相关的资源非常多。 6 | 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb2312.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gb2312.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gbk-utf8.txt: -------------------------------------------------------------------------------- 1 | Python(派森)语言是一种功能强大而完善的通用型计算机程序设计语言, 2 | 已经具有十多年的发展历史,成熟且稳定。这种语言具有非常简捷而清晰 3 | 的语法特点,适合完成各种高层任务,几乎可以在所有的操作系统中 4 | 运行。这种语言简单而强大,适合各种人士学习使用。目前,基于这 5 | 种语言的相关技术正在飞速的发展,用户数量急剧扩大,相关的资源非常多。 6 | 如何在 Python 中使用既有的 C library? 7 |  在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的 8 | 課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的 9 | library, 並有一個 fast prototyping 的 programming language 可 10 | 供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個 11 | fast prototyping 的 programming language. 故我們希望能將既有的 12 | C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所 13 | 要討論的問題就是: 14 | 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gbk.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/gbk.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/hz-utf8.txt: -------------------------------------------------------------------------------- 1 | This sentence is in ASCII. 2 | The next sentence is in GB.己所不欲,勿施於人。Bye. 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/hz.txt: -------------------------------------------------------------------------------- 1 | This sentence is in ASCII. 2 | The next sentence is in GB.~{<:Ky2;S{#,NpJ)l6HK!#~}Bye. 3 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/iso2022_jp-utf8.txt: -------------------------------------------------------------------------------- 1 | Python の開発は、1990 年ごろから開始されています。 2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。 3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。 4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。 5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。 6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。 7 | 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/iso2022_jp.txt: -------------------------------------------------------------------------------- 1 | Python $B$N3+H/$O!"(B1990 $BG/$4$m$+$i3+;O$5$l$F$$$^$9!#(B 2 | $B3+H/e$NL\E*$K$O$"$^$jE,$7$F$$$^$;$s$G$7$?!#(B 3 | $B$3$N$?$a!"(BGuido $B$O$h$j$E$1$^$7$?!#(B 4 | $B$3$N$h$&$JGX7J$+$i@8$^$l$?(B Python $B$N8@8l@_7W$O!"!V%7%s%W%k!W$G!V=,F@$,MF0W!W$H$$$&L\I8$K=EE@$,CV$+$l$F$$$^$9!#(B 5 | $BB?$/$N%9%/%j%W%H7O8@8l$G$O%f!<%6$NL\@h$NMxJX@-$rM%@h$7$F?'!9$J5!G=$r8@8lMWAG$H$7$Fl9g$,B?$$$N$G$9$,!"(BPython $B$G$O$=$&$$$C$?>.:Y9)$,DI2C$5$l$k$3$H$O$"$^$j$"$j$^$;$s!#(B 6 | $B8@8l<+BN$N5!G=$O:G>.8B$K2!$5$(!"I,MW$J5!G=$O3HD%%b%8%e!<%k$H$7$FDI2C$9$k!"$H$$$&$N$,(B Python $B$N%]%j%7!<$G$9!#(B 7 | 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/iso2022_kr-utf8.txt: -------------------------------------------------------------------------------- 1 | ◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은 2 | 효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을 3 | 지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅 4 | 환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른 5 | 애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다. 6 | 7 | ☆첫가끝: 날아라 쓩~ 큼! 금없이 전니다. 그런거 다. 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/iso2022_kr.txt: -------------------------------------------------------------------------------- 1 | $)C!] FD@L=c(Python)@: 9h?l1b =10m, 0-7BGQ GA7N1W7!9V >p>n@T4O4Y. FD@L=c@: 2 | H?@2@{@N 0mF(iPd:)GQ 9.9}0z 5?@{ E8@LGN, 1W8.0m @NEMGA8.FC 4 | H/0f@: FD@L=c@; =:E)83FC0z ?)7/ :P>_?!<-?M 4k:N:P@G GC7'F{?!<-@G :|8% 5 | >VGC8.DI@Lp>n7N 885i>nA]4O4Y. 6 | 7 | !YC90!3!: 3/>F6s >1~ E-! 1]>x@L @|4O4Y. 1W710E 4Y. 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/johab-utf8.txt: -------------------------------------------------------------------------------- 1 | 똠방각하 펲시콜라 2 | 3 | ㉯㉯납!! 因九月패믤릔궈 ⓡⓖ훀¿¿¿ 긍뒙 ⓔ뎨 ㉯. . 4 | 亞영ⓔ능횹 . . . . 서울뤄 뎐학乙 家훀 ! ! !ㅠ.ㅠ 5 | 흐흐흐 ㄱㄱㄱ☆ㅠ_ㅠ 어릨 탸콰긐 뎌응 칑九들乙 ㉯드긐 6 | 설릌 家훀 . . . . 굴애쉌 ⓔ궈 ⓡ릘㉱긐 因仁川女中까즼 7 | 와쒀훀 ! ! 亞영ⓔ 家능궈 ☆上관 없능궈능 亞능뒈훀 글애듴 8 | ⓡ려듀九 싀풔숴훀 어릨 因仁川女中싁⑨들앜!! ㉯㉯납♡ ⌒⌒* 9 | 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/johab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/johab.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jis-utf8.txt: -------------------------------------------------------------------------------- 1 | Python の開発は、1990 年ごろから開始されています。 2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。 3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。 4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。 5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。 6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。 7 | 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jis.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jisx0213-utf8.txt: -------------------------------------------------------------------------------- 1 | Python の開発は、1990 年ごろから開始されています。 2 | 開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。 3 | このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。 4 | このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。 5 | 多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。 6 | 言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。 7 | 8 | ノか゚ ト゚ トキ喝塀 𡚴𪎌 麀齁𩛰 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jisx0213.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/cjkencodings/shift_jisx0213.txt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/coding20731.py: -------------------------------------------------------------------------------- 1 | #coding:latin1 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/crashers/bogus_code_obj.py: -------------------------------------------------------------------------------- 1 | """ 2 | Broken bytecode objects can easily crash the interpreter. 3 | 4 | This is not going to be fixed. It is generally agreed that there is no 5 | point in writing a bytecode verifier and putting it in CPython just for 6 | this. Moreover, a verifier is bound to accept only a subset of all safe 7 | bytecodes, so it could lead to unnecessary breakage. 8 | 9 | For security purposes, "restricted" interpreters are not going to let 10 | the user build or load random bytecodes anyway. Otherwise, this is a 11 | "won't fix" case. 12 | 13 | """ 14 | 15 | import types 16 | 17 | co = types.CodeType(0, 0, 0, 0, 0, b'\x04\x71\x00\x00', 18 | (), (), (), '', '', 1, b'') 19 | exec(co) 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/crashers/infinite_loop_re.py: -------------------------------------------------------------------------------- 1 | 2 | # This was taken from http://python.org/sf/1541697 3 | # It's not technically a crasher. It may not even truly be infinite, 4 | # however, I haven't waited a long time to see the result. It takes 5 | # 100% of CPU while running this and should be fixed. 6 | 7 | import re 8 | starttag = re.compile(r'<[a-zA-Z][-_.:a-zA-Z0-9]*\s*(' 9 | r'\s*([a-zA-Z_][-:.a-zA-Z_0-9]*)(\s*=\s*' 10 | r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~@]' 11 | r'[][\-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~\'"@]*(?=[\s>/<])))?' 12 | r')*\s*/?\s*(?=[<>])') 13 | 14 | if __name__ == '__main__': 15 | foo = '>> print(TwoNames().f()) 9 | f 10 | ''' 11 | return 'f' 12 | 13 | g = f # define an alias for f 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/empty.vbs: -------------------------------------------------------------------------------- 1 | 'Empty VBS file, does nothing. Helper for Lib\test\test_startfile.py. -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/encoded_modules/module_iso_8859_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/encoded_modules/module_iso_8859_1.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/encoded_modules/module_koi8_r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/encoded_modules/module_koi8_r.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/final_a.py: -------------------------------------------------------------------------------- 1 | """ 2 | Fodder for module finalization tests in test_module. 3 | """ 4 | 5 | import shutil 6 | import test.final_b 7 | 8 | x = 'a' 9 | 10 | class C: 11 | def __del__(self): 12 | # Inspect module globals and builtins 13 | print("x =", x) 14 | print("final_b.x =", test.final_b.x) 15 | print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None)) 16 | print("len =", getattr(len, '__name__', None)) 17 | 18 | c = C() 19 | _underscored = C() 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/final_b.py: -------------------------------------------------------------------------------- 1 | """ 2 | Fodder for module finalization tests in test_module. 3 | """ 4 | 5 | import shutil 6 | import test.final_a 7 | 8 | x = 'b' 9 | 10 | class C: 11 | def __del__(self): 12 | # Inspect module globals and builtins 13 | print("x =", x) 14 | print("final_a.x =", test.final_a.x) 15 | print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None)) 16 | print("len =", getattr(len, '__name__', None)) 17 | 18 | c = C() 19 | _underscored = C() 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/future_test1.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | # Import the name nested_scopes twice to trigger SF bug #407394 (regression). 4 | from __future__ import nested_scopes, nested_scopes 5 | 6 | def f(x): 7 | def g(y): 8 | return x + y 9 | return g 10 | 11 | result = f(2)(4) 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/future_test2.py: -------------------------------------------------------------------------------- 1 | """This is a test""" 2 | 3 | from __future__ import nested_scopes; import site 4 | 5 | def f(x): 6 | def g(y): 7 | return x + y 8 | return g 9 | 10 | result = f(2)(4) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/gdb_sample.py: -------------------------------------------------------------------------------- 1 | # Sample script for use by test_gdb.py 2 | 3 | def foo(a, b, c): 4 | bar(a, b, c) 5 | 6 | def bar(a, b, c): 7 | baz(a, b, c) 8 | 9 | def baz(*args): 10 | id(42) 11 | 12 | foo(1, 2, 3) 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.bmp -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.gif -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.jpg -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.pbm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.pbm -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.pgm -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.png -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.ppm -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.ras: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.ras -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.sgi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.sgi -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.tiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.webp -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/imghdrdata/python.xbm: -------------------------------------------------------------------------------- 1 | #define python_width 16 2 | #define python_height 16 3 | static char python_bits[] = { 4 | 0xDF, 0xFE, 0x8F, 0xFD, 0x5F, 0xFB, 0xAB, 0xFE, 0xB5, 0x8D, 0xDA, 0x8F, 5 | 0xA5, 0x86, 0xFA, 0x83, 0x1A, 0x80, 0x0D, 0x80, 0x0D, 0x80, 0x0F, 0xE0, 6 | 0x0F, 0xF8, 0x0F, 0xF8, 0x0F, 0xFC, 0xFF, 0xFF, }; 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/leakers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/leakers/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/leakers/test_ctypes.py: -------------------------------------------------------------------------------- 1 | 2 | # Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test(). 3 | 4 | from ctypes import Structure, c_int, POINTER 5 | import gc 6 | 7 | def leak_inner(): 8 | class POINT(Structure): 9 | _fields_ = [("x", c_int)] 10 | class RECT(Structure): 11 | _fields_ = [("a", POINTER(POINT))] 12 | 13 | def leak(): 14 | leak_inner() 15 | gc.collect() 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/leakers/test_selftype.py: -------------------------------------------------------------------------------- 1 | # Reference cycles involving only the ob_type field are rather uncommon 2 | # but possible. Inspired by SF bug 1469629. 3 | 4 | import gc 5 | 6 | def leak(): 7 | class T(type): 8 | pass 9 | class U(type, metaclass=T): 10 | pass 11 | U.__class__ = U 12 | del U 13 | gc.collect(); gc.collect(); gc.collect() 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/memory_watchdog.py: -------------------------------------------------------------------------------- 1 | """Memory watchdog: periodically read the memory usage of the main test process 2 | and print it out, until terminated.""" 3 | # stdin should refer to the process' /proc//statm: we don't pass the 4 | # process' PID to avoid a race condition in case of - unlikely - PID recycling. 5 | # If the process crashes, reading from the /proc entry will fail with ESRCH. 6 | 7 | 8 | import os 9 | import sys 10 | import time 11 | 12 | 13 | try: 14 | page_size = os.sysconf('SC_PAGESIZE') 15 | except (ValueError, AttributeError): 16 | try: 17 | page_size = os.sysconf('SC_PAGE_SIZE') 18 | except (ValueError, AttributeError): 19 | page_size = 4096 20 | 21 | while True: 22 | sys.stdin.seek(0) 23 | statm = sys.stdin.read() 24 | data = int(statm.split()[5]) 25 | sys.stdout.write(" ... process data size: {data:.1f}G\n" 26 | .format(data=data * page_size / (1024 ** 3))) 27 | sys.stdout.flush() 28 | time.sleep(1) 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/mp_fork_bomb.py: -------------------------------------------------------------------------------- 1 | import multiprocessing, sys 2 | 3 | def foo(): 4 | print("123") 5 | 6 | # Because "if __name__ == '__main__'" is missing this will not work 7 | # correctly on Windows. However, we should get a RuntimeError rather 8 | # than the Windows equivalent of a fork bomb. 9 | 10 | if len(sys.argv) > 1: 11 | multiprocessing.set_start_method(sys.argv[1]) 12 | else: 13 | multiprocessing.set_start_method('spawn') 14 | 15 | p = multiprocessing.Process(target=foo) 16 | p.start() 17 | p.join() 18 | sys.exit(p.exitcode) 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/nullcert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/nullcert.pem -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/outstanding_bugs.py: -------------------------------------------------------------------------------- 1 | # 2 | # This file is for everybody to add tests for bugs that aren't 3 | # fixed yet. Please add a test case and appropriate bug description. 4 | # 5 | # When you fix one of the bugs, please move the test to the correct 6 | # test_ module. 7 | # 8 | 9 | import unittest 10 | from test import support 11 | 12 | # 13 | # No test cases for outstanding bugs at the moment. 14 | # 15 | 16 | 17 | if __name__ == "__main__": 18 | unittest.main() 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/pstats.pck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/pstats.pck -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/pyclbr_input.py: -------------------------------------------------------------------------------- 1 | """Test cases for test_pyclbr.py""" 2 | 3 | def f(): pass 4 | 5 | class Other(object): 6 | @classmethod 7 | def foo(c): pass 8 | 9 | def om(self): pass 10 | 11 | class B (object): 12 | def bm(self): pass 13 | 14 | class C (B): 15 | foo = Other().foo 16 | om = Other.om 17 | 18 | d = 10 19 | 20 | # XXX: This causes test_pyclbr.py to fail, but only because the 21 | # introspection-based is_method() code in the test can't 22 | # distinguish between this and a genuine method function like m(). 23 | # The pyclbr.py module gets this right as it parses the text. 24 | # 25 | #f = f 26 | 27 | def m(self): pass 28 | 29 | @staticmethod 30 | def sm(self): pass 31 | 32 | @classmethod 33 | def cm(self): pass 34 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/pydoc_mod.py: -------------------------------------------------------------------------------- 1 | """This is a test module for test_pydoc""" 2 | 3 | __author__ = "Benjamin Peterson" 4 | __credits__ = "Nobody" 5 | __version__ = "1.2.3.4" 6 | __xyz__ = "X, Y and Z" 7 | 8 | class A: 9 | """Hello and goodbye""" 10 | def __init__(): 11 | """Wow, I have no function!""" 12 | pass 13 | 14 | class B(object): 15 | NO_MEANING = "eggs" 16 | pass 17 | 18 | class C(object): 19 | def say_no(self): 20 | return "no" 21 | def get_answer(self): 22 | """ Return say_no() """ 23 | return self.say_no() 24 | def is_it_true(self): 25 | """ Return self.get_answer() """ 26 | return self.get_answer() 27 | 28 | def doc_func(): 29 | """ 30 | This function solves all of the world's problems: 31 | hunger 32 | lack of Python 33 | war 34 | """ 35 | 36 | def nodoc_func(): 37 | pass 38 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/relimport.py: -------------------------------------------------------------------------------- 1 | from .test_import import * 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/reperf.py: -------------------------------------------------------------------------------- 1 | import re 2 | import time 3 | 4 | def main(): 5 | s = "\13hello\14 \13world\14 " * 1000 6 | p = re.compile(r"([\13\14])") 7 | timefunc(10, p.sub, "", s) 8 | timefunc(10, p.split, s) 9 | timefunc(10, p.findall, s) 10 | 11 | def timefunc(n, func, *args, **kw): 12 | t0 = time.perf_counter() 13 | try: 14 | for i in range(n): 15 | result = func(*args, **kw) 16 | return result 17 | finally: 18 | t1 = time.perf_counter() 19 | if n > 1: 20 | print(n, "times", end=' ') 21 | print(func.__name__, "%.3f" % (t1-t0), "CPU seconds") 22 | 23 | main() 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/revocation.crl: -------------------------------------------------------------------------------- 1 | -----BEGIN X509 CRL----- 2 | MIIBpjCBjwIBATANBgkqhkiG9w0BAQUFADBNMQswCQYDVQQGEwJYWTEmMCQGA1UE 3 | CgwdUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24gQ0ExFjAUBgNVBAMMDW91ci1j 4 | YS1zZXJ2ZXIXDTEzMTEyMTE3MDg0N1oXDTIzMDkzMDE3MDg0N1qgDjAMMAoGA1Ud 5 | FAQDAgEAMA0GCSqGSIb3DQEBBQUAA4IBAQCNJXC2mVKauEeN3LlQ3ZtM5gkH3ExH 6 | +i4bmJjtJn497WwvvoIeUdrmVXgJQR93RtV37hZwN0SXMLlNmUZPH4rHhihayw4m 7 | unCzVj/OhCCY7/TPjKuJ1O/0XhaLBpBVjQN7R/1ujoRKbSia/CD3vcn7Fqxzw7LK 8 | fSRCKRGTj1CZiuxrphtFchwALXSiFDy9mr2ZKhImcyq1PydfgEzU78APpOkMQsIC 9 | UNJ/cf3c9emzf+dUtcMEcejQ3mynBo4eIGg1EW42bz4q4hSjzQlKcBV0muw5qXhc 10 | HOxH2iTFhQ7SrvVuK/dM14rYM4B5mSX3nRC1kNmXpS9j3wJDhuwmjHed 11 | -----END X509 CRL----- 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sample_doctest_no_docstrings.py: -------------------------------------------------------------------------------- 1 | # This is a sample module used for testing doctest. 2 | # 3 | # This module is for testing how doctest handles a module with no 4 | # docstrings. 5 | 6 | 7 | class Foo(object): 8 | 9 | # A class with no docstring. 10 | 11 | def __init__(self): 12 | pass 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sample_doctest_no_doctests.py: -------------------------------------------------------------------------------- 1 | """This is a sample module used for testing doctest. 2 | 3 | This module is for testing how doctest handles a module with docstrings 4 | but no doctest examples. 5 | 6 | """ 7 | 8 | 9 | class Foo(object): 10 | """A docstring with no doctest examples. 11 | 12 | """ 13 | 14 | def __init__(self): 15 | pass 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sgml_input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sgml_input.html -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/README: -------------------------------------------------------------------------------- 1 | Sound file samples used by Lib/test/test_sndhdr.py and generated using the 2 | following commands: 3 | 4 | dd if=/dev/zero of=sndhdr.raw bs=20 count=1 5 | sox -s -2 -c 2 -r 44100 sndhdr.raw sndhdr. 6 | 7 | Sound file samples used by Lib/test/test_sndhdr.py and generated using the 8 | following commands: 9 | 10 | dd if=/dev/zero of=sndhdr.raw bs=20 count=1 11 | sox -s -2 -c 2 -r 44100 sndhdr.raw sndhdr. 12 | 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.8svx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.8svx -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.aifc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.aifc -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.aiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.aiff -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.hcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.hcom -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.sndt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.sndt -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.voc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.voc -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/sndhdrdata/sndhdr.wav -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/ssl_cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICVDCCAb2gAwIBAgIJANfHOBkZr8JOMA0GCSqGSIb3DQEBBQUAMF8xCzAJBgNV 3 | BAYTAlhZMRcwFQYDVQQHEw5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9u 4 | IFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDEw 5 | MDgyMzAxNTZaFw0yMDEwMDUyMzAxNTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQH 6 | Ew5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9uIFNvZnR3YXJlIEZvdW5k 7 | YXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw 8 | gYkCgYEA21vT5isq7F68amYuuNpSFlKDPrMUCa4YWYqZRt2OZ+/3NKaZ2xAiSwr7 9 | 6MrQF70t5nLbSPpqE5+5VrS58SY+g/sXLiFd6AplH1wJZwh78DofbFYXUggktFMt 10 | pTyiX8jtP66bkcPkDADA089RI1TQR6Ca+n7HFa7c1fabVV6i3zkCAwEAAaMYMBYw 11 | FAYDVR0RBA0wC4IJbG9jYWxob3N0MA0GCSqGSIb3DQEBBQUAA4GBAHPctQBEQ4wd 12 | BJ6+JcpIraopLn8BGhbjNWj40mmRqWB/NAWF6M5ne7KpGAu7tLeG4hb1zLaldK8G 13 | lxy2GPSRF6LFS48dpEj2HbMv2nvv6xxalDMJ9+DicWgAKTQ6bcX2j3GUkCR0g/T1 14 | CRlNBAAlvhKzO7Clpf9l0YKBEfraJByX 15 | -----END CERTIFICATE----- 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/ssl_key.passwd.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,1A8D9D2A02EC698A 4 | 5 | kJYbfZ8L0sfe9Oty3gw0aloNnY5E8fegRfQLZlNoxTl6jNt0nIwI8kDJ36CZgR9c 6 | u3FDJm/KqrfUoz8vW+qEnWhSG7QPX2wWGPHd4K94Yz/FgrRzZ0DoK7XxXq9gOtVA 7 | AVGQhnz32p+6WhfGsCr9ArXEwRZrTk/FvzEPaU5fHcoSkrNVAGX8IpSVkSDwEDQr 8 | Gv17+cfk99UV1OCza6yKHoFkTtrC+PZU71LomBabivS2Oc4B9hYuSR2hF01wTHP+ 9 | YlWNagZOOVtNz4oKK9x9eNQpmfQXQvPPTfusexKIbKfZrMvJoxcm1gfcZ0H/wK6P 10 | 6wmXSG35qMOOztCZNtperjs1wzEBXznyK8QmLcAJBjkfarABJX9vBEzZV0OUKhy+ 11 | noORFwHTllphbmydLhu6ehLUZMHPhzAS5UN7srtpSN81eerDMy0RMUAwA7/PofX1 12 | 94Me85Q8jP0PC9ETdsJcPqLzAPETEYu0ELewKRcrdyWi+tlLFrpE5KT/s5ecbl9l 13 | 7B61U4Kfd1PIXc/siINhU3A3bYK+845YyUArUOnKf1kEox7p1RpD7yFqVT04lRTo 14 | cibNKATBusXSuBrp2G6GNuhWEOSafWCKJQAzgCYIp6ZTV2khhMUGppc/2H3CF6cO 15 | zX0KtlPVZC7hLkB6HT8SxYUwF1zqWY7+/XPPdc37MeEZ87Q3UuZwqORLY+Z0hpgt 16 | L5JXBCoklZhCAaN2GqwFLXtGiRSRFGY7xXIhbDTlE65Wv1WGGgDLMKGE1gOz3yAo 17 | 2jjG1+yAHJUdE69XTFHSqSkvaloA1W03LdMXZ9VuQJ/ySXCie6ABAQ== 18 | -----END RSA PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/ssl_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANtb0+YrKuxevGpm 3 | LrjaUhZSgz6zFAmuGFmKmUbdjmfv9zSmmdsQIksK++jK0Be9LeZy20j6ahOfuVa0 4 | ufEmPoP7Fy4hXegKZR9cCWcIe/A6H2xWF1IIJLRTLaU8ol/I7T+um5HD5AwAwNPP 5 | USNU0Eegmvp+xxWu3NX2m1Veot85AgMBAAECgYA3ZdZ673X0oexFlq7AAmrutkHt 6 | CL7LvwrpOiaBjhyTxTeSNWzvtQBkIU8DOI0bIazA4UreAFffwtvEuPmonDb3F+Iq 7 | SMAu42XcGyVZEl+gHlTPU9XRX7nTOXVt+MlRRRxL6t9GkGfUAXI3XxJDXW3c0vBK 8 | UL9xqD8cORXOfE06rQJBAP8mEX1ERkR64Ptsoe4281vjTlNfIbs7NMPkUnrn9N/Y 9 | BLhjNIfQ3HFZG8BTMLfX7kCS9D593DW5tV4Z9BP/c6cCQQDcFzCcVArNh2JSywOQ 10 | ZfTfRbJg/Z5Lt9Fkngv1meeGNPgIMLN8Sg679pAOOWmzdMO3V706rNPzSVMME7E5 11 | oPIfAkEA8pDddarP5tCvTTgUpmTFbakm0KoTZm2+FzHcnA4jRh+XNTjTOv98Y6Ik 12 | eO5d1ZnKXseWvkZncQgxfdnMqqpj5wJAcNq/RVne1DbYlwWchT2Si65MYmmJ8t+F 13 | 0mcsULqjOnEMwf5e+ptq5LzwbyrHZYq5FNk7ocufPv/ZQrcSSC+cFwJBAKvOJByS 14 | x56qyGeZLOQlWS2JS3KJo59XuLFGqcbgN9Om9xFa41Yb4N9NvplFivsvZdw3m1Q/ 15 | SPIXQuT8RMPDVNQ= 16 | -----END PRIVATE KEY----- 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/ssltests.py: -------------------------------------------------------------------------------- 1 | # Convenience test module to run all of the SSL-related tests in the 2 | # standard library. 3 | 4 | import sys 5 | import subprocess 6 | 7 | TESTS = ['test_asyncio', 'test_ftplib', 'test_hashlib', 'test_httplib', 8 | 'test_imaplib', 'test_nntplib', 'test_poplib', 'test_smtplib', 9 | 'test_smtpnet', 'test_urllib2_localnet', 'test_venv'] 10 | 11 | def run_regrtests(*extra_args): 12 | args = [sys.executable, "-m", "test"] 13 | if not extra_args: 14 | args.append("-unetwork") 15 | else: 16 | args.extend(extra_args) 17 | args.extend(TESTS) 18 | result = subprocess.call(args) 19 | sys.exit(result) 20 | 21 | if __name__ == '__main__': 22 | run_regrtests(*sys.argv[1:]) 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/subprocessdata/fd_status.py: -------------------------------------------------------------------------------- 1 | """When called as a script, print a comma-separated list of the open 2 | file descriptors on stdout. 3 | 4 | Usage: 5 | fd_stats.py: check all file descriptors 6 | fd_status.py fd1 fd2 ...: check only specified file descriptors 7 | """ 8 | 9 | import errno 10 | import os 11 | import stat 12 | import sys 13 | 14 | if __name__ == "__main__": 15 | fds = [] 16 | if len(sys.argv) == 1: 17 | try: 18 | _MAXFD = os.sysconf("SC_OPEN_MAX") 19 | except: 20 | _MAXFD = 256 21 | test_fds = range(0, _MAXFD) 22 | else: 23 | test_fds = map(int, sys.argv[1:]) 24 | for fd in test_fds: 25 | try: 26 | st = os.fstat(fd) 27 | except OSError as e: 28 | if e.errno == errno.EBADF: 29 | continue 30 | raise 31 | # Ignore Solaris door files 32 | if not stat.S_ISDOOR(st.st_mode): 33 | fds.append(fd) 34 | print(','.join(map(str, fds))) 35 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/subprocessdata/input_reader.py: -------------------------------------------------------------------------------- 1 | """When called as a script, consumes the input""" 2 | 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | for line in sys.stdin: 7 | pass 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/subprocessdata/qcat.py: -------------------------------------------------------------------------------- 1 | """When ran as a script, simulates cat with no arguments.""" 2 | 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | for line in sys.stdin: 7 | sys.stdout.write(line) 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/subprocessdata/qgrep.py: -------------------------------------------------------------------------------- 1 | """When called with a single argument, simulated fgrep with a single 2 | argument and no options.""" 3 | 4 | import sys 5 | 6 | if __name__ == "__main__": 7 | pattern = sys.argv[1] 8 | for line in sys.stdin: 9 | if pattern in line: 10 | sys.stdout.write(line) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/subprocessdata/sigchild_ignore.py: -------------------------------------------------------------------------------- 1 | import signal, subprocess, sys, time 2 | # On Linux this causes os.waitpid to fail with OSError as the OS has already 3 | # reaped our child process. The wait() passing the OSError on to the caller 4 | # and causing us to exit with an error is what we are testing against. 5 | signal.signal(signal.SIGCHLD, signal.SIG_IGN) 6 | subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait() 7 | # Also ensure poll() handles an errno.ECHILD appropriately. 8 | p = subprocess.Popen([sys.executable, '-c', 'print("albatross")']) 9 | num_polls = 0 10 | while p.poll() is None: 11 | # Waiting for the process to finish. 12 | time.sleep(0.01) # Avoid being a CPU busy loop. 13 | num_polls += 1 14 | if num_polls > 3000: 15 | raise RuntimeError('poll should have returned 0 within 30 seconds') 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test__opcode.py: -------------------------------------------------------------------------------- 1 | import dis 2 | from test.support import run_unittest, import_module 3 | import unittest 4 | 5 | _opcode = import_module("_opcode") 6 | 7 | class OpcodeTests(unittest.TestCase): 8 | 9 | def test_stack_effect(self): 10 | self.assertEqual(_opcode.stack_effect(dis.opmap['POP_TOP']), -1) 11 | self.assertEqual(_opcode.stack_effect(dis.opmap['DUP_TOP_TWO']), 2) 12 | self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 0), -1) 13 | self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 1), -1) 14 | self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 3), -2) 15 | self.assertRaises(ValueError, _opcode.stack_effect, 30000) 16 | self.assertRaises(ValueError, _opcode.stack_effect, dis.opmap['BUILD_SLICE']) 17 | self.assertRaises(ValueError, _opcode.stack_effect, dis.opmap['POP_TOP'], 0) 18 | 19 | def test_main(): 20 | run_unittest(OpcodeTests) 21 | 22 | if __name__ == "__main__": 23 | test_main() 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | import unittest 4 | from test.support import run_unittest, import_module 5 | 6 | # Skip tests if we don't have threading. 7 | import_module('threading') 8 | # Skip tests if we don't have concurrent.futures. 9 | import_module('concurrent.futures') 10 | 11 | 12 | def suite(): 13 | tests = unittest.TestSuite() 14 | loader = unittest.TestLoader() 15 | for fn in os.listdir(os.path.dirname(__file__)): 16 | if fn.startswith("test") and fn.endswith(".py"): 17 | mod_name = 'test.test_asyncio.' + fn[:-3] 18 | try: 19 | __import__(mod_name) 20 | except unittest.SkipTest: 21 | pass 22 | else: 23 | mod = sys.modules[mod_name] 24 | tests.addTests(loader.loadTestsFromModule(mod)) 25 | return tests 26 | 27 | 28 | def test_main(): 29 | run_unittest(suite()) 30 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/__main__.py: -------------------------------------------------------------------------------- 1 | from . import test_main 2 | 3 | 4 | if __name__ == '__main__': 5 | test_main() 6 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/echo.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | while True: 5 | buf = os.read(0, 1024) 6 | if not buf: 7 | break 8 | os.write(1, buf) 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/echo2.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | buf = os.read(0, 1024) 5 | os.write(1, b'OUT:'+buf) 6 | os.write(2, b'ERR:'+buf) 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/echo3.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if __name__ == '__main__': 4 | while True: 5 | buf = os.read(0, 1024) 6 | if not buf: 7 | break 8 | try: 9 | os.write(1, b'OUT:'+buf) 10 | except OSError as ex: 11 | os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii')) 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/ssl_cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICVDCCAb2gAwIBAgIJANfHOBkZr8JOMA0GCSqGSIb3DQEBBQUAMF8xCzAJBgNV 3 | BAYTAlhZMRcwFQYDVQQHEw5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9u 4 | IFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDEw 5 | MDgyMzAxNTZaFw0yMDEwMDUyMzAxNTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQH 6 | Ew5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9uIFNvZnR3YXJlIEZvdW5k 7 | YXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw 8 | gYkCgYEA21vT5isq7F68amYuuNpSFlKDPrMUCa4YWYqZRt2OZ+/3NKaZ2xAiSwr7 9 | 6MrQF70t5nLbSPpqE5+5VrS58SY+g/sXLiFd6AplH1wJZwh78DofbFYXUggktFMt 10 | pTyiX8jtP66bkcPkDADA089RI1TQR6Ca+n7HFa7c1fabVV6i3zkCAwEAAaMYMBYw 11 | FAYDVR0RBA0wC4IJbG9jYWxob3N0MA0GCSqGSIb3DQEBBQUAA4GBAHPctQBEQ4wd 12 | BJ6+JcpIraopLn8BGhbjNWj40mmRqWB/NAWF6M5ne7KpGAu7tLeG4hb1zLaldK8G 13 | lxy2GPSRF6LFS48dpEj2HbMv2nvv6xxalDMJ9+DicWgAKTQ6bcX2j3GUkCR0g/T1 14 | CRlNBAAlvhKzO7Clpf9l0YKBEfraJByX 15 | -----END CERTIFICATE----- 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_asyncio/ssl_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANtb0+YrKuxevGpm 3 | LrjaUhZSgz6zFAmuGFmKmUbdjmfv9zSmmdsQIksK++jK0Be9LeZy20j6ahOfuVa0 4 | ufEmPoP7Fy4hXegKZR9cCWcIe/A6H2xWF1IIJLRTLaU8ol/I7T+um5HD5AwAwNPP 5 | USNU0Eegmvp+xxWu3NX2m1Veot85AgMBAAECgYA3ZdZ673X0oexFlq7AAmrutkHt 6 | CL7LvwrpOiaBjhyTxTeSNWzvtQBkIU8DOI0bIazA4UreAFffwtvEuPmonDb3F+Iq 7 | SMAu42XcGyVZEl+gHlTPU9XRX7nTOXVt+MlRRRxL6t9GkGfUAXI3XxJDXW3c0vBK 8 | UL9xqD8cORXOfE06rQJBAP8mEX1ERkR64Ptsoe4281vjTlNfIbs7NMPkUnrn9N/Y 9 | BLhjNIfQ3HFZG8BTMLfX7kCS9D593DW5tV4Z9BP/c6cCQQDcFzCcVArNh2JSywOQ 10 | ZfTfRbJg/Z5Lt9Fkngv1meeGNPgIMLN8Sg679pAOOWmzdMO3V706rNPzSVMME7E5 11 | oPIfAkEA8pDddarP5tCvTTgUpmTFbakm0KoTZm2+FzHcnA4jRh+XNTjTOv98Y6Ik 12 | eO5d1ZnKXseWvkZncQgxfdnMqqpj5wJAcNq/RVne1DbYlwWchT2Si65MYmmJ8t+F 13 | 0mcsULqjOnEMwf5e+ptq5LzwbyrHZYq5FNk7ocufPv/ZQrcSSC+cFwJBAKvOJByS 14 | x56qyGeZLOQlWS2JS3KJo59XuLFGqcbgN9Om9xFa41Yb4N9NvplFivsvZdw3m1Q/ 15 | SPIXQuT8RMPDVNQ= 16 | -----END PRIVATE KEY----- 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_codecencodings_hk.py: -------------------------------------------------------------------------------- 1 | # 2 | # test_codecencodings_hk.py 3 | # Codec encoding tests for HongKong encodings. 4 | # 5 | 6 | from test import support 7 | from test import multibytecodec_support 8 | import unittest 9 | 10 | class Test_Big5HKSCS(multibytecodec_support.TestBase, unittest.TestCase): 11 | encoding = 'big5hkscs' 12 | tstring = multibytecodec_support.load_teststring('big5hkscs') 13 | codectests = ( 14 | # invalid bytes 15 | (b"abc\x80\x80\xc1\xc4", "strict", None), 16 | (b"abc\xc8", "strict", None), 17 | (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u8b10"), 18 | (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u8b10\ufffd"), 19 | (b"abc\x80\x80\xc1\xc4", "ignore", "abc\u8b10"), 20 | ) 21 | 22 | def test_main(): 23 | support.run_unittest(__name__) 24 | 25 | if __name__ == "__main__": 26 | test_main() 27 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_codecencodings_tw.py: -------------------------------------------------------------------------------- 1 | # 2 | # test_codecencodings_tw.py 3 | # Codec encoding tests for ROC encodings. 4 | # 5 | 6 | from test import support 7 | from test import multibytecodec_support 8 | import unittest 9 | 10 | class Test_Big5(multibytecodec_support.TestBase, unittest.TestCase): 11 | encoding = 'big5' 12 | tstring = multibytecodec_support.load_teststring('big5') 13 | codectests = ( 14 | # invalid bytes 15 | (b"abc\x80\x80\xc1\xc4", "strict", None), 16 | (b"abc\xc8", "strict", None), 17 | (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u8b10"), 18 | (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u8b10\ufffd"), 19 | (b"abc\x80\x80\xc1\xc4", "ignore", "abc\u8b10"), 20 | ) 21 | 22 | def test_main(): 23 | support.run_unittest(__name__) 24 | 25 | if __name__ == "__main__": 26 | test_main() 27 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_codecmaps_hk.py: -------------------------------------------------------------------------------- 1 | # 2 | # test_codecmaps_hk.py 3 | # Codec mapping tests for HongKong encodings 4 | # 5 | 6 | from test import support 7 | from test import multibytecodec_support 8 | import unittest 9 | 10 | class TestBig5HKSCSMap(multibytecodec_support.TestBase_Mapping, 11 | unittest.TestCase): 12 | encoding = 'big5hkscs' 13 | mapfileurl = 'http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT' 14 | 15 | def test_main(): 16 | support.run_unittest(__name__) 17 | 18 | if __name__ == "__main__": 19 | test_main() 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_codecmaps_tw.py: -------------------------------------------------------------------------------- 1 | # 2 | # test_codecmaps_tw.py 3 | # Codec mapping tests for ROC encodings 4 | # 5 | 6 | from test import support 7 | from test import multibytecodec_support 8 | import unittest 9 | 10 | class TestBIG5Map(multibytecodec_support.TestBase_Mapping, 11 | unittest.TestCase): 12 | encoding = 'big5' 13 | mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' \ 14 | 'EASTASIA/OTHER/BIG5.TXT' 15 | 16 | class TestCP950Map(multibytecodec_support.TestBase_Mapping, 17 | unittest.TestCase): 18 | encoding = 'cp950' 19 | mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \ 20 | 'WINDOWS/CP950.TXT' 21 | pass_enctest = [ 22 | (b'\xa2\xcc', '\u5341'), 23 | (b'\xa2\xce', '\u5345'), 24 | ] 25 | codectests = ( 26 | (b"\xFFxy", "replace", "\ufffdxy"), 27 | ) 28 | 29 | def test_main(): 30 | support.run_unittest(__name__) 31 | 32 | if __name__ == "__main__": 33 | test_main() 34 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_ctypes.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | 3 | from test.support import import_module 4 | 5 | # Skip tests if _ctypes module was not built. 6 | import_module('_ctypes') 7 | 8 | import ctypes.test 9 | 10 | def load_tests(*args): 11 | skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0) 12 | suites = [unittest.makeSuite(t) for t in testcases] 13 | return unittest.TestSuite(suites) 14 | 15 | if __name__ == "__main__": 16 | unittest.main() 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_distutils.py: -------------------------------------------------------------------------------- 1 | """Tests for distutils. 2 | 3 | The tests for distutils are defined in the distutils.tests package; 4 | the test_suite() function there returns a test suite that's ready to 5 | be run. 6 | """ 7 | 8 | import distutils.tests 9 | import test.support 10 | 11 | 12 | def test_main(): 13 | test.support.run_unittest(distutils.tests.test_suite()) 14 | test.support.reap_children() 15 | 16 | 17 | if __name__ == "__main__": 18 | test_main() 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_doctest.txt: -------------------------------------------------------------------------------- 1 | This is a sample doctest in a text file. 2 | 3 | In this example, we'll rely on a global variable being set for us 4 | already: 5 | 6 | >>> favorite_color 7 | 'blue' 8 | 9 | We can make this fail by disabling the blank-line feature. 10 | 11 | >>> if 1: 12 | ... print('a') 13 | ... print() 14 | ... print('b') 15 | a 16 | 17 | b 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_doctest2.txt: -------------------------------------------------------------------------------- 1 | This is a sample doctest in a text file. 2 | 3 | In this example, we'll rely on some silly setup: 4 | 5 | >>> import test.test_doctest 6 | >>> test.test_doctest.sillySetup 7 | True 8 | 9 | This test also has some (random) encoded (utf-8) unicode text: 10 | 11 | ЉЊЈЁЂ 12 | 13 | This doesn't cause a problem in the tect surrounding the examples, but 14 | we include it here (in this test text file) to make sure. :) 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_doctest3.txt: -------------------------------------------------------------------------------- 1 | 2 | Here we check that `__file__` is provided: 3 | 4 | >>> type(__file__) 5 | 6 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_doctest4.txt: -------------------------------------------------------------------------------- 1 | This is a sample doctest in a text file that contains non-ASCII characters. 2 | This file is encoded using UTF-8. 3 | 4 | In order to get this test to pass, we have to manually specify the 5 | encoding. 6 | 7 | >>> 'föö' 8 | 'f\xf6\xf6' 9 | 10 | >>> 'bąr' 11 | 'b\u0105r' 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/__main__.py: -------------------------------------------------------------------------------- 1 | from test.test_email import test_main 2 | 3 | test_main() 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/PyBanner048.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/PyBanner048.gif -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/audiotest.au: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/audiotest.au -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_01.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivered-To: bbb@zzz.org 3 | Received: by mail.zzz.org (Postfix, from userid 889) 4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT) 5 | MIME-Version: 1.0 6 | Content-Type: text/plain; charset=us-ascii 7 | Content-Transfer-Encoding: 7bit 8 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org> 9 | From: bbb@ddd.com (John X. Doe) 10 | To: bbb@zzz.org 11 | Subject: This is a test message 12 | Date: Fri, 4 May 2001 14:05:44 -0400 13 | 14 | 15 | Hi, 16 | 17 | Do you like this message? 18 | 19 | -Me 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_03.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivered-To: bbb@zzz.org 3 | Received: by mail.zzz.org (Postfix, from userid 889) 4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT) 5 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org> 6 | From: bbb@ddd.com (John X. Doe) 7 | To: bbb@zzz.org 8 | Subject: This is a test message 9 | Date: Fri, 4 May 2001 14:05:44 -0400 10 | 11 | 12 | Hi, 13 | 14 | Do you like this message? 15 | 16 | -Me 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_05.txt: -------------------------------------------------------------------------------- 1 | From: foo 2 | Subject: bar 3 | To: baz 4 | MIME-Version: 1.0 5 | Content-Type: multipart/report; report-type=delivery-status; 6 | boundary="D1690A7AC1.996856090/mail.example.com" 7 | Message-Id: <20010803162810.0CA8AA7ACC@mail.example.com> 8 | 9 | This is a MIME-encapsulated message. 10 | 11 | --D1690A7AC1.996856090/mail.example.com 12 | Content-Type: text/plain 13 | 14 | Yadda yadda yadda 15 | 16 | --D1690A7AC1.996856090/mail.example.com 17 | 18 | Yadda yadda yadda 19 | 20 | --D1690A7AC1.996856090/mail.example.com 21 | Content-Type: message/rfc822 22 | 23 | From: nobody@python.org 24 | 25 | Yadda yadda yadda 26 | 27 | --D1690A7AC1.996856090/mail.example.com-- 28 | 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_08.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry Warsaw 3 | To: Dingus Lovers 4 | Subject: Lyrics 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | --BOUNDARY 9 | Content-Type: text/plain; charset="us-ascii" 10 | 11 | 12 | --BOUNDARY 13 | Content-Type: text/html; charset="iso-8859-1" 14 | 15 | 16 | --BOUNDARY 17 | Content-Type: text/plain; charset="iso-8859-2" 18 | 19 | 20 | --BOUNDARY 21 | Content-Type: text/plain; charset="koi8-r" 22 | 23 | 24 | --BOUNDARY-- 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_09.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry Warsaw 3 | To: Dingus Lovers 4 | Subject: Lyrics 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | --BOUNDARY 9 | Content-Type: text/plain; charset="us-ascii" 10 | 11 | 12 | --BOUNDARY 13 | Content-Type: text/html; charset="iso-8859-1" 14 | 15 | 16 | --BOUNDARY 17 | Content-Type: text/plain 18 | 19 | 20 | --BOUNDARY 21 | Content-Type: text/plain; charset="koi8-r" 22 | 23 | 24 | --BOUNDARY-- 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_11.txt: -------------------------------------------------------------------------------- 1 | Content-Type: message/rfc822 2 | MIME-Version: 1.0 3 | Subject: The enclosing message 4 | 5 | Subject: An enclosed message 6 | 7 | Here is the body of the message. 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_12.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry Warsaw 3 | To: Dingus Lovers 4 | Subject: Lyrics 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | --BOUNDARY 9 | Content-Type: text/plain; charset="us-ascii" 10 | 11 | 12 | --BOUNDARY 13 | Content-Type: text/html; charset="iso-8859-1" 14 | 15 | 16 | --BOUNDARY 17 | Content-Type: multipart/mixed; boundary="ANOTHER" 18 | 19 | --ANOTHER 20 | Content-Type: text/plain; charset="iso-8859-2" 21 | 22 | 23 | --ANOTHER 24 | Content-Type: text/plain; charset="iso-8859-3" 25 | 26 | --ANOTHER-- 27 | 28 | --BOUNDARY 29 | Content-Type: text/plain; charset="us-ascii" 30 | 31 | 32 | --BOUNDARY 33 | Content-Type: text/plain; charset="koi8-r" 34 | 35 | 36 | --BOUNDARY-- 37 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_12a.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry Warsaw 3 | To: Dingus Lovers 4 | Subject: Lyrics 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | --BOUNDARY 9 | Content-Type: text/plain; charset="us-ascii" 10 | 11 | 12 | --BOUNDARY 13 | Content-Type: text/html; charset="iso-8859-1" 14 | 15 | 16 | --BOUNDARY 17 | Content-Type: multipart/mixed; boundary="ANOTHER" 18 | 19 | --ANOTHER 20 | Content-Type: text/plain; charset="iso-8859-2" 21 | 22 | 23 | --ANOTHER 24 | Content-Type: text/plain; charset="iso-8859-3" 25 | 26 | 27 | --ANOTHER-- 28 | 29 | 30 | --BOUNDARY 31 | Content-Type: text/plain; charset="us-ascii" 32 | 33 | 34 | --BOUNDARY 35 | Content-Type: text/plain; charset="koi8-r" 36 | 37 | 38 | --BOUNDARY-- 39 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_14.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivered-To: bbb@zzz.org 3 | Received: by mail.zzz.org (Postfix, from userid 889) 4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT) 5 | MIME-Version: 1.0 6 | Content-Type: text; charset=us-ascii 7 | Content-Transfer-Encoding: 7bit 8 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org> 9 | From: bbb@ddd.com (John X. Doe) 10 | To: bbb@zzz.org 11 | Subject: This is a test message 12 | Date: Fri, 4 May 2001 14:05:44 -0400 13 | 14 | 15 | Hi, 16 | 17 | I'm sorry but I'm using a drainbread ISP, which although big and 18 | wealthy can't seem to generate standard compliant email. :( 19 | 20 | This message has a Content-Type: header with no subtype. I hope you 21 | can still read it. 22 | 23 | -Me 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_17.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | From: Barry 3 | To: Dingus Lovers 4 | Subject: Here is your dingus fish 5 | Date: Fri, 20 Apr 2001 19:35:02 -0400 6 | Content-Type: multipart/mixed; boundary="BOUNDARY" 7 | 8 | Hi there, 9 | 10 | This is the dingus fish. 11 | 12 | [Non-text (image/gif) part of message omitted, filename dingusfish.gif] 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_18.txt: -------------------------------------------------------------------------------- 1 | Content-Type: text/plain; charset="us-ascii" 2 | MIME-Version: 1.0 3 | Content-Transfer-Encoding: 7bit 4 | X-Foobar-Spoink-Defrobnit: wasnipoop; giraffes="very-long-necked-animals"; 5 | spooge="yummy"; hippos="gargantuan"; marshmallows="gooey" 6 | 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_19.txt: -------------------------------------------------------------------------------- 1 | Send Ppp mailing list submissions to 2 | ppp@zzz.org 3 | 4 | To subscribe or unsubscribe via the World Wide Web, visit 5 | http://www.zzz.org/mailman/listinfo/ppp 6 | or, via email, send a message with subject or body 'help' to 7 | ppp-request@zzz.org 8 | 9 | You can reach the person managing the list at 10 | ppp-admin@zzz.org 11 | 12 | When replying, please edit your Subject line so it is more specific 13 | than "Re: Contents of Ppp digest..." 14 | 15 | Today's Topics: 16 | 17 | 1. testing #1 (Barry A. Warsaw) 18 | 2. testing #2 (Barry A. Warsaw) 19 | 3. testing #3 (Barry A. Warsaw) 20 | 4. testing #4 (Barry A. Warsaw) 21 | 5. testing #5 (Barry A. Warsaw) 22 | 23 | hello 24 | 25 | 26 | hello 27 | 28 | 29 | hello 30 | 31 | 32 | hello 33 | 34 | 35 | hello 36 | 37 | 38 | 39 | _______________________________________________ 40 | Ppp mailing list 41 | Ppp@zzz.org 42 | http://www.zzz.org/mailman/listinfo/ppp 43 | 44 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_20.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivered-To: bbb@zzz.org 3 | Received: by mail.zzz.org (Postfix, from userid 889) 4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT) 5 | MIME-Version: 1.0 6 | Content-Type: text/plain; charset=us-ascii 7 | Content-Transfer-Encoding: 7bit 8 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org> 9 | From: bbb@ddd.com (John X. Doe) 10 | To: bbb@zzz.org 11 | Cc: ccc@zzz.org 12 | CC: ddd@zzz.org 13 | cc: eee@zzz.org 14 | Subject: This is a test message 15 | Date: Fri, 4 May 2001 14:05:44 -0400 16 | 17 | 18 | Hi, 19 | 20 | Do you like this message? 21 | 22 | -Me 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_21.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | To: bperson@dom.ain 3 | Subject: Test 4 | Content-Type: multipart/mixed; boundary="BOUNDARY" 5 | 6 | MIME message 7 | --BOUNDARY 8 | Content-Type: text/plain; charset="us-ascii" 9 | MIME-Version: 1.0 10 | Content-Transfer-Encoding: 7bit 11 | 12 | One 13 | --BOUNDARY 14 | Content-Type: text/plain; charset="us-ascii" 15 | MIME-Version: 1.0 16 | Content-Transfer-Encoding: 7bit 17 | 18 | Two 19 | --BOUNDARY-- 20 | End of MIME message 21 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_23.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | Content-Type: multipart/mixed; boundary="BOUNDARY" 3 | 4 | --BOUNDARY 5 | Content-Type: text/plain 6 | 7 | A message part 8 | --BOUNDARY-- 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_24.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary="BOUNDARY" 2 | MIME-Version: 1.0 3 | Subject: A subject 4 | To: aperson@dom.ain 5 | From: bperson@dom.ain 6 | 7 | --BOUNDARY 8 | 9 | 10 | --BOUNDARY-- 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_27.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Received: by mail.dom.ain (Postfix, from userid 889) 3 | id B9D0AD35DB; Tue, 4 Jun 2002 21:46:59 -0400 (EDT) 4 | Message-ID: <15613.28051.707126.569693@dom.ain> 5 | Date: Tue, 4 Jun 2002 21:46:59 -0400 6 | MIME-Version: 1.0 7 | Content-Type: text/plain; charset=us-ascii 8 | Content-Transfer-Encoding: 7bit 9 | Subject: bug demonstration 10 | 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789 11 | more text 12 | From: aperson@dom.ain (Anne P. Erson) 13 | To: bperson@dom.ain (Barney P. Erson) 14 | 15 | test 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_28.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | MIME-Version: 1.0 3 | Content-Type: multipart/digest; boundary=BOUNDARY 4 | 5 | --BOUNDARY 6 | Content-Type: message/rfc822 7 | 8 | Content-Type: text/plain; charset=us-ascii 9 | To: aa@bb.org 10 | From: cc@dd.org 11 | Subject: ee 12 | 13 | message 1 14 | 15 | --BOUNDARY 16 | Content-Type: message/rfc822 17 | 18 | Content-Type: text/plain; charset=us-ascii 19 | To: aa@bb.org 20 | From: cc@dd.org 21 | Subject: ee 22 | 23 | message 2 24 | 25 | --BOUNDARY-- 26 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_29.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivered-To: bbb@zzz.org 3 | Received: by mail.zzz.org (Postfix, from userid 889) 4 | id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT) 5 | MIME-Version: 1.0 6 | Content-Type: text/plain; charset=us-ascii; 7 | title*0*="us-ascii'en'This%20is%20even%20more%20"; 8 | title*1*="%2A%2A%2Afun%2A%2A%2A%20"; 9 | title*2="isn't it!" 10 | Content-Transfer-Encoding: 7bit 11 | Message-ID: <15090.61304.110929.45684@aaa.zzz.org> 12 | From: bbb@ddd.com (John X. Doe) 13 | To: bbb@zzz.org 14 | Subject: This is a test message 15 | Date: Fri, 4 May 2001 14:05:44 -0400 16 | 17 | 18 | Hi, 19 | 20 | Do you like this message? 21 | 22 | -Me 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_30.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | MIME-Version: 1.0 3 | Content-Type: multipart/digest; boundary=BOUNDARY 4 | 5 | --BOUNDARY 6 | 7 | Content-Type: text/plain; charset=us-ascii 8 | To: aa@bb.org 9 | From: cc@dd.org 10 | Subject: ee 11 | 12 | message 1 13 | 14 | --BOUNDARY 15 | 16 | Content-Type: text/plain; charset=us-ascii 17 | To: aa@bb.org 18 | From: cc@dd.org 19 | Subject: ee 20 | 21 | message 2 22 | 23 | --BOUNDARY-- 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_31.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | MIME-Version: 1.0 3 | Content-Type: multipart/mixed; boundary=BOUNDARY_ 4 | 5 | --BOUNDARY 6 | Content-Type: text/plain 7 | 8 | message 1 9 | 10 | --BOUNDARY 11 | Content-Type: text/plain 12 | 13 | message 2 14 | 15 | --BOUNDARY-- 16 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_32.txt: -------------------------------------------------------------------------------- 1 | Delivered-To: freebsd-isp@freebsd.org 2 | Date: Tue, 26 Sep 2000 12:23:03 -0500 3 | From: Anne Person 4 | To: Barney Dude 5 | Subject: Re: Limiting Perl CPU Utilization... 6 | Mime-Version: 1.0 7 | Content-Type: text/plain; charset*=ansi-x3.4-1968''us-ascii 8 | Content-Disposition: inline 9 | User-Agent: Mutt/1.3.8i 10 | Sender: owner-freebsd-isp@FreeBSD.ORG 11 | Precedence: bulk 12 | X-Loop: FreeBSD.org 13 | 14 | Some message. 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_33.txt: -------------------------------------------------------------------------------- 1 | Delivered-To: freebsd-isp@freebsd.org 2 | Date: Wed, 27 Sep 2000 11:11:09 -0500 3 | From: Anne Person 4 | To: Barney Dude 5 | Subject: Re: Limiting Perl CPU Utilization... 6 | Mime-Version: 1.0 7 | Content-Type: multipart/signed; micalg*=ansi-x3.4-1968''pgp-md5; 8 | protocol*=ansi-x3.4-1968''application%2Fpgp-signature; 9 | boundary*="ansi-x3.4-1968''EeQfGwPcQSOJBaQU" 10 | Content-Disposition: inline 11 | Sender: owner-freebsd-isp@FreeBSD.ORG 12 | Precedence: bulk 13 | X-Loop: FreeBSD.org 14 | 15 | 16 | --EeQfGwPcQSOJBaQU 17 | Content-Type: text/plain; charset*=ansi-x3.4-1968''us-ascii 18 | Content-Disposition: inline 19 | Content-Transfer-Encoding: quoted-printable 20 | 21 | part 1 22 | 23 | --EeQfGwPcQSOJBaQU 24 | Content-Type: text/plain 25 | Content-Disposition: inline 26 | 27 | part 2 28 | 29 | --EeQfGwPcQSOJBaQU-- 30 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_34.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | To: bperson@dom.ain 3 | Content-Type: multipart/digest; boundary=XYZ 4 | 5 | --XYZ 6 | Content-Type: text/plain 7 | 8 | 9 | This is a text plain part that is counter to recommended practice in 10 | RFC 2046, $5.1.5, but is not illegal 11 | 12 | --XYZ 13 | 14 | From: cperson@dom.ain 15 | To: dperson@dom.ain 16 | 17 | A submessage 18 | 19 | --XYZ-- 20 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_35.txt: -------------------------------------------------------------------------------- 1 | From: aperson@dom.ain 2 | To: bperson@dom.ain 3 | Subject: here's something interesting 4 | counter to RFC 2822, there's no separating newline here 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_36.txt: -------------------------------------------------------------------------------- 1 | Mime-Version: 1.0 2 | Content-Type: Multipart/Mixed; Boundary="NextPart" 3 | To: IETF-Announce:; 4 | From: Internet-Drafts@ietf.org 5 | Subject: I-D ACTION:draft-ietf-mboned-mix-00.txt 6 | Date: Tue, 22 Dec 1998 16:55:06 -0500 7 | 8 | --NextPart 9 | 10 | Blah blah blah 11 | 12 | --NextPart 13 | Content-Type: Multipart/Alternative; Boundary="OtherAccess" 14 | 15 | --OtherAccess 16 | Content-Type: Message/External-body; 17 | access-type="mail-server"; 18 | server="mailserv@ietf.org" 19 | 20 | Content-Type: text/plain 21 | Content-ID: <19981222151406.I-D@ietf.org> 22 | 23 | ENCODING mime 24 | FILE /internet-drafts/draft-ietf-mboned-mix-00.txt 25 | 26 | --OtherAccess 27 | Content-Type: Message/External-body; 28 | name="draft-ietf-mboned-mix-00.txt"; 29 | site="ftp.ietf.org"; 30 | access-type="anon-ftp"; 31 | directory="internet-drafts" 32 | 33 | Content-Type: text/plain 34 | Content-ID: <19981222151406.I-D@ietf.org> 35 | 36 | 37 | --OtherAccess-- 38 | 39 | --NextPart-- 40 | 41 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_37.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary=ABCDE 2 | 3 | --ABCDE 4 | Content-Type: text/x-one 5 | 6 | Blah 7 | 8 | --ABCDE 9 | --ABCDE 10 | Content-Type: text/x-two 11 | 12 | Blah 13 | 14 | --ABCDE 15 | --ABCDE 16 | --ABCDE 17 | --ABCDE 18 | Content-Type: text/x-two 19 | 20 | Blah 21 | 22 | --ABCDE-- 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_40.txt: -------------------------------------------------------------------------------- 1 | MIME-Version: 1.0 2 | Content-Type: text/html; boundary="--961284236552522269" 3 | 4 | ----961284236552522269 5 | Content-Type: text/html; 6 | Content-Transfer-Encoding: 7Bit 7 | 8 | 9 | 10 | ----961284236552522269-- 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_41.txt: -------------------------------------------------------------------------------- 1 | From: "Allison Dunlap" 2 | To: yyy@example.com 3 | Subject: 64423 4 | Date: Sun, 11 Jul 2004 16:09:27 -0300 5 | MIME-Version: 1.0 6 | Content-Type: multipart/alternative; 7 | 8 | Blah blah blah 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_42.txt: -------------------------------------------------------------------------------- 1 | Content-Type: multipart/mixed; boundary="AAA" 2 | From: Mail Delivery Subsystem 3 | To: yyy@example.com 4 | 5 | This is a MIME-encapsulated message 6 | 7 | --AAA 8 | 9 | Stuff 10 | 11 | --AAA 12 | Content-Type: message/rfc822 13 | 14 | From: webmaster@python.org 15 | To: zzz@example.com 16 | Content-Type: multipart/mixed; boundary="BBB" 17 | 18 | --BBB-- 19 | 20 | --AAA-- 21 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_email/data/msg_46.txt: -------------------------------------------------------------------------------- 1 | Return-Path: 2 | Delivery-Date: Mon, 08 Feb 2010 14:05:16 +0100 3 | Received: from example.org (example.org [64.5.53.58]) 4 | by example.net (node=mxbap2) with ESMTP (Nemesis) 5 | id UNIQUE for someone@example.com; Mon, 08 Feb 2010 14:05:16 +0100 6 | Date: Mon, 01 Feb 2010 12:21:16 +0100 7 | From: "Sender" 8 | To: 9 | Subject: GroupwiseForwardingTest 10 | Mime-Version: 1.0 11 | Content-Type: message/rfc822 12 | 13 | Return-path: 14 | Message-ID: <4B66B890.4070408@teconcept.de> 15 | Date: Mon, 01 Feb 2010 12:18:40 +0100 16 | From: "Dr. Sender" 17 | MIME-Version: 1.0 18 | To: "Recipient" 19 | Subject: GroupwiseForwardingTest 20 | Content-Type: text/plain; charset=ISO-8859-15 21 | Content-Transfer-Encoding: 7bit 22 | 23 | Testing email forwarding with Groupwise 1.2.2010 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_eof.py: -------------------------------------------------------------------------------- 1 | """test script for a few new invalid token catches""" 2 | 3 | import unittest 4 | from test import support 5 | 6 | class EOFTestCase(unittest.TestCase): 7 | def test_EOFC(self): 8 | expect = "EOL while scanning string literal (, line 1)" 9 | try: 10 | eval("""'this is a test\ 11 | """) 12 | except SyntaxError as msg: 13 | self.assertEqual(str(msg), expect) 14 | else: 15 | raise support.TestFailed 16 | 17 | def test_EOFS(self): 18 | expect = ("EOF while scanning triple-quoted string literal " 19 | "(, line 1)") 20 | try: 21 | eval("""'''this is a test""") 22 | except SyntaxError as msg: 23 | self.assertEqual(str(msg), expect) 24 | else: 25 | raise support.TestFailed 26 | 27 | def test_main(): 28 | support.run_unittest(EOFTestCase) 29 | 30 | if __name__ == "__main__": 31 | test_main() 32 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_flufl.py: -------------------------------------------------------------------------------- 1 | import __future__ 2 | import unittest 3 | 4 | class FLUFLTests(unittest.TestCase): 5 | 6 | def test_barry_as_bdfl(self): 7 | code = "from __future__ import barry_as_FLUFL; 2 {0} 3" 8 | compile(code.format('<>'), '', 'exec', 9 | __future__.CO_FUTURE_BARRY_AS_BDFL) 10 | self.assertRaises(SyntaxError, compile, code.format('!='), 11 | '', 'exec', 12 | __future__.CO_FUTURE_BARRY_AS_BDFL) 13 | 14 | def test_guido_as_bdfl(self): 15 | code = '2 {0} 3' 16 | compile(code.format('!='), '', 'exec') 17 | self.assertRaises(SyntaxError, compile, code.format('<>'), 18 | '', 'exec') 19 | 20 | 21 | def test_main(): 22 | from test.support import run_unittest 23 | run_unittest(FLUFLTests) 24 | 25 | 26 | if __name__ == '__main__': 27 | test_main() 28 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_future3.py: -------------------------------------------------------------------------------- 1 | from __future__ import nested_scopes 2 | from __future__ import division 3 | 4 | import unittest 5 | 6 | x = 2 7 | def nester(): 8 | x = 3 9 | def inner(): 10 | return x 11 | return inner() 12 | 13 | 14 | class TestFuture(unittest.TestCase): 15 | 16 | def test_floor_div_operator(self): 17 | self.assertEqual(7 // 2, 3) 18 | 19 | def test_true_div_as_default(self): 20 | self.assertAlmostEqual(7 / 2, 3.5) 21 | 22 | def test_nested_scopes(self): 23 | self.assertEqual(nester(), 3) 24 | 25 | if __name__ == "__main__": 26 | unittest.main() 27 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_future4.py: -------------------------------------------------------------------------------- 1 | from __future__ import unicode_literals 2 | 3 | import unittest 4 | 5 | if __name__ == "__main__": 6 | unittest.main() 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_future5.py: -------------------------------------------------------------------------------- 1 | # Check that multiple features can be enabled. 2 | from __future__ import unicode_literals, print_function 3 | 4 | import sys 5 | import unittest 6 | from test import support 7 | 8 | 9 | class TestMultipleFeatures(unittest.TestCase): 10 | 11 | def test_unicode_literals(self): 12 | self.assertIsInstance("", str) 13 | 14 | def test_print_function(self): 15 | with support.captured_output("stderr") as s: 16 | print("foo", file=sys.stderr) 17 | self.assertEqual(s.getvalue(), "foo\n") 18 | 19 | 20 | if __name__ == '__main__': 21 | unittest.main() 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_idle.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test import support 3 | from test.support import import_module 4 | 5 | # Skip test if _thread or _tkinter wasn't built or idlelib was deleted. 6 | import_module('threading') # imported by PyShell, imports _thread 7 | tk = import_module('tkinter') # imports _tkinter 8 | idletest = import_module('idlelib.idle_test') 9 | 10 | # Without test_main present, regrtest.runtest_inner (line1219) calls 11 | # unittest.TestLoader().loadTestsFromModule(this_module) which calls 12 | # load_tests() if it finds it. (Unittest.main does the same.) 13 | load_tests = idletest.load_tests 14 | 15 | if __name__ == '__main__': 16 | unittest.main(verbosity=2, exit=False) 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/__main__.py: -------------------------------------------------------------------------------- 1 | """Run importlib's test suite. 2 | 3 | Specifying the ``--builtin`` flag will run tests, where applicable, with 4 | builtins.__import__ instead of importlib.__import__. 5 | 6 | """ 7 | if __name__ == '__main__': 8 | from . import test_main 9 | test_main() 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/builtin/__init__.py: -------------------------------------------------------------------------------- 1 | from .. import test_suite 2 | import os 3 | 4 | 5 | def test_suite(): 6 | directory = os.path.dirname(__file__) 7 | return test_suite('importlib.test.builtin', directory) 8 | 9 | 10 | if __name__ == '__main__': 11 | from test.support import run_unittest 12 | run_unittest(test_suite()) 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/extension/__init__.py: -------------------------------------------------------------------------------- 1 | from .. import test_suite 2 | import os.path 3 | import unittest 4 | 5 | 6 | def test_suite(): 7 | directory = os.path.dirname(__file__) 8 | return test_suite('importlib.test.extension', directory) 9 | 10 | 11 | if __name__ == '__main__': 12 | from test.support import run_unittest 13 | run_unittest(test_suite()) 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/frozen/__init__.py: -------------------------------------------------------------------------------- 1 | from .. import test_suite 2 | import os.path 3 | import unittest 4 | 5 | 6 | def test_suite(): 7 | directory = os.path.dirname(__file__) 8 | return test_suite('importlib.test.frozen', directory) 9 | 10 | 11 | if __name__ == '__main__': 12 | from test.support import run_unittest 13 | run_unittest(test_suite()) 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/import_/__init__.py: -------------------------------------------------------------------------------- 1 | from .. import test_suite 2 | import os.path 3 | import unittest 4 | 5 | 6 | def test_suite(): 7 | directory = os.path.dirname(__file__) 8 | return test_suite('importlib.test.import_', directory) 9 | 10 | 11 | if __name__ == '__main__': 12 | from test.support import run_unittest 13 | run_unittest(test_suite()) 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'both_portions foo one' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py: -------------------------------------------------------------------------------- 1 | attr = 'both_portions foo two' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py: -------------------------------------------------------------------------------- 1 | attr = 'in module' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'portion1 foo one' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py: -------------------------------------------------------------------------------- 1 | attr = 'portion1 foo one' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py: -------------------------------------------------------------------------------- 1 | attr = 'portion2 foo two' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child one' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child two' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py: -------------------------------------------------------------------------------- 1 | attr = 'parent child three' 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/regrtest.py: -------------------------------------------------------------------------------- 1 | """Run Python's standard test suite using importlib.__import__. 2 | 3 | Tests known to fail because of assumptions that importlib (properly) 4 | invalidates are automatically skipped if the entire test suite is run. 5 | Otherwise all command-line options valid for test.regrtest are also valid for 6 | this script. 7 | 8 | """ 9 | import importlib 10 | import sys 11 | from test import regrtest 12 | 13 | if __name__ == '__main__': 14 | __builtins__.__import__ = importlib.__import__ 15 | sys.path_importer_cache.clear() 16 | 17 | regrtest.main(quiet=True, verbose2=True) 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/source/__init__.py: -------------------------------------------------------------------------------- 1 | from .. import test_suite 2 | import os.path 3 | import unittest 4 | 5 | 6 | def test_suite(): 7 | directory = os.path.dirname(__file__) 8 | return test.test_suite('importlib.test.source', directory) 9 | 10 | 11 | if __name__ == '__main__': 12 | from test.support import run_unittest 13 | run_unittest(test_suite()) 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/source/test_path_hook.py: -------------------------------------------------------------------------------- 1 | from .. import util 2 | 3 | machinery = util.import_importlib('importlib.machinery') 4 | 5 | import unittest 6 | 7 | 8 | class PathHookTest: 9 | 10 | """Test the path hook for source.""" 11 | 12 | def path_hook(self): 13 | return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader, 14 | self.machinery.SOURCE_SUFFIXES)) 15 | 16 | def test_success(self): 17 | with util.create_modules('dummy') as mapping: 18 | self.assertTrue(hasattr(self.path_hook()(mapping['.root']), 19 | 'find_module')) 20 | 21 | def test_empty_string(self): 22 | # The empty string represents the cwd. 23 | self.assertTrue(hasattr(self.path_hook()(''), 'find_module')) 24 | 25 | 26 | (Frozen_PathHookTest, 27 | Source_PathHooktest 28 | ) = util.test_both(PathHookTest, machinery=machinery) 29 | 30 | 31 | if __name__ == '__main__': 32 | unittest.main() 33 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_importlib/test_windows.py: -------------------------------------------------------------------------------- 1 | from . import util as test_util 2 | machinery = test_util.import_importlib('importlib.machinery') 3 | 4 | import sys 5 | import unittest 6 | 7 | 8 | @unittest.skipUnless(sys.platform.startswith('win'), 'requires Windows') 9 | class WindowsRegistryFinderTests: 10 | 11 | # XXX Need a test that finds the spec via the registry. 12 | 13 | def test_find_spec_missing(self): 14 | spec = self.machinery.WindowsRegistryFinder.find_spec('spam') 15 | self.assertIs(spec, None) 16 | 17 | def test_find_module_missing(self): 18 | loader = self.machinery.WindowsRegistryFinder.find_module('spam') 19 | self.assertIs(loader, None) 20 | 21 | 22 | (Frozen_WindowsRegistryFinderTests, 23 | Source_WindowsRegistryFinderTests 24 | ) = test_util.test_both(WindowsRegistryFinderTests, machinery=machinery) 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_json/__main__.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test.test_json import load_tests 3 | 4 | unittest.main() 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_json/test_default.py: -------------------------------------------------------------------------------- 1 | from test.test_json import PyTest, CTest 2 | 3 | 4 | class TestDefault: 5 | def test_default(self): 6 | self.assertEqual( 7 | self.dumps(type, default=repr), 8 | self.dumps(repr(type))) 9 | 10 | 11 | class TestPyDefault(TestDefault, PyTest): pass 12 | class TestCDefault(TestDefault, CTest): pass 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_json/test_pass2.py: -------------------------------------------------------------------------------- 1 | from test.test_json import PyTest, CTest 2 | 3 | 4 | # from http://json.org/JSON_checker/test/pass2.json 5 | JSON = r''' 6 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] 7 | ''' 8 | 9 | class TestPass2: 10 | def test_parse(self): 11 | # test in/out equivalence and parsing 12 | res = self.loads(JSON) 13 | out = self.dumps(res) 14 | self.assertEqual(res, self.loads(out)) 15 | 16 | 17 | class TestPyPass2(TestPass2, PyTest): pass 18 | class TestCPass2(TestPass2, CTest): pass 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_json/test_pass3.py: -------------------------------------------------------------------------------- 1 | from test.test_json import PyTest, CTest 2 | 3 | 4 | # from http://json.org/JSON_checker/test/pass3.json 5 | JSON = r''' 6 | { 7 | "JSON Test Pattern pass3": { 8 | "The outermost value": "must be an object or array.", 9 | "In this test": "It is an object." 10 | } 11 | } 12 | ''' 13 | 14 | 15 | class TestPass3: 16 | def test_parse(self): 17 | # test in/out equivalence and parsing 18 | res = self.loads(JSON) 19 | out = self.dumps(res) 20 | self.assertEqual(res, self.loads(out)) 21 | 22 | 23 | class TestPyPass3(TestPass3, PyTest): pass 24 | class TestCPass3(TestPass3, CTest): pass 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_lib2to3.py: -------------------------------------------------------------------------------- 1 | # Skipping test_parser and test_all_fixers 2 | # because of running 3 | from lib2to3.tests import (test_fixers, test_pytree, test_util, test_refactor, 4 | test_parser, 5 | test_main as test_main_) 6 | import unittest 7 | from test.support import run_unittest 8 | 9 | def suite(): 10 | tests = unittest.TestSuite() 11 | loader = unittest.TestLoader() 12 | for m in (test_fixers, test_pytree, test_util, test_refactor, test_parser, 13 | test_main_): 14 | tests.addTests(loader.loadTestsFromModule(m)) 15 | return tests 16 | 17 | def test_main(): 18 | run_unittest(suite()) 19 | 20 | 21 | if __name__ == '__main__': 22 | test_main() 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_longexp.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from test import support 3 | 4 | class LongExpText(unittest.TestCase): 5 | def test_longexp(self): 6 | REPS = 65580 7 | l = eval("[" + "2," * REPS + "]") 8 | self.assertEqual(len(l), REPS) 9 | 10 | def test_main(): 11 | support.run_unittest(LongExpText) 12 | 13 | if __name__=="__main__": 14 | test_main() 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_multiprocessing_fork.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | import test._test_multiprocessing 3 | 4 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'fork') 5 | 6 | if __name__ == '__main__': 7 | unittest.main() 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_multiprocessing_forkserver.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | import test._test_multiprocessing 3 | 4 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'forkserver') 5 | 6 | if __name__ == '__main__': 7 | unittest.main() 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_multiprocessing_spawn.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | import test._test_multiprocessing 3 | 4 | test._test_multiprocessing.install_tests_in_module_dict(globals(), 'spawn') 5 | 6 | if __name__ == '__main__': 7 | unittest.main() 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_openpty.py: -------------------------------------------------------------------------------- 1 | # Test to see if openpty works. (But don't worry if it isn't available.) 2 | 3 | import os, unittest 4 | from test.support import run_unittest 5 | 6 | if not hasattr(os, "openpty"): 7 | raise unittest.SkipTest("os.openpty() not available.") 8 | 9 | 10 | class OpenptyTest(unittest.TestCase): 11 | def test(self): 12 | master, slave = os.openpty() 13 | self.addCleanup(os.close, master) 14 | self.addCleanup(os.close, slave) 15 | if not os.isatty(slave): 16 | self.fail("Slave-end of pty is not a terminal.") 17 | 18 | os.write(slave, b'Ping!') 19 | self.assertEqual(os.read(master, 1024), b'Ping!') 20 | 21 | def test_main(): 22 | run_unittest(OpenptyTest) 23 | 24 | if __name__ == '__main__': 25 | test_main() 26 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_pickletools.py: -------------------------------------------------------------------------------- 1 | import pickle 2 | import pickletools 3 | from test import support 4 | from test.pickletester import AbstractPickleTests 5 | from test.pickletester import AbstractPickleModuleTests 6 | 7 | class OptimizedPickleTests(AbstractPickleTests, AbstractPickleModuleTests): 8 | 9 | def dumps(self, arg, proto=None): 10 | return pickletools.optimize(pickle.dumps(arg, proto)) 11 | 12 | def loads(self, buf, **kwds): 13 | return pickle.loads(buf, **kwds) 14 | 15 | # Test relies on precise output of dumps() 16 | test_pickle_to_2x = None 17 | 18 | 19 | def test_main(): 20 | support.run_unittest(OptimizedPickleTests) 21 | support.run_doctest(pickletools) 22 | 23 | 24 | if __name__ == "__main__": 25 | test_main() 26 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_sndhdr.py: -------------------------------------------------------------------------------- 1 | import sndhdr 2 | import unittest 3 | from test.support import findfile 4 | 5 | class TestFormats(unittest.TestCase): 6 | def test_data(self): 7 | for filename, expected in ( 8 | ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), 9 | ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), 10 | ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), 11 | ('sndhdr.au', ('au', 44100, 2, 5.0, 16)), 12 | ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)), 13 | ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)), 14 | ('sndhdr.voc', ('voc', 0, 1, -1, 8)), 15 | ('sndhdr.wav', ('wav', 44100, 2, 5, 16)), 16 | ): 17 | filename = findfile(filename, subdir="sndhdrdata") 18 | what = sndhdr.what(filename) 19 | self.assertNotEqual(what, None, filename) 20 | self.assertSequenceEqual(what, expected) 21 | 22 | if __name__ == '__main__': 23 | unittest.main() 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_source_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/test_source_encoding.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_sqlite.py: -------------------------------------------------------------------------------- 1 | import test.support 2 | 3 | # Skip test if _sqlite3 module not installed 4 | test.support.import_module('_sqlite3') 5 | 6 | import unittest 7 | import sqlite3 8 | from sqlite3.test import (dbapi, types, userfunctions, 9 | factory, transactions, hooks, regression, 10 | dump) 11 | 12 | def load_tests(*args): 13 | if test.support.verbose: 14 | print("test_sqlite: testing with version", 15 | "{!r}, sqlite_version {!r}".format(sqlite3.version, 16 | sqlite3.sqlite_version)) 17 | return unittest.TestSuite([dbapi.suite(), types.suite(), 18 | userfunctions.suite(), 19 | factory.suite(), transactions.suite(), 20 | hooks.suite(), regression.suite(), 21 | dump.suite()]) 22 | 23 | if __name__ == "__main__": 24 | unittest.main() 25 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_tk.py: -------------------------------------------------------------------------------- 1 | from test import support 2 | # Skip test if _tkinter wasn't built. 3 | support.import_module('_tkinter') 4 | 5 | # Make sure tkinter._fix runs to set up the environment 6 | support.import_fresh_module('tkinter') 7 | 8 | # Skip test if tk cannot be initialized. 9 | support.requires('gui') 10 | 11 | from tkinter.test import runtktests 12 | 13 | def test_main(): 14 | support.run_unittest( 15 | *runtktests.get_tests(text=False, packages=['test_tkinter'])) 16 | 17 | if __name__ == '__main__': 18 | test_main() 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_ttk_guionly.py: -------------------------------------------------------------------------------- 1 | import os 2 | import unittest 3 | from test import support 4 | 5 | # Skip this test if _tkinter wasn't built. 6 | support.import_module('_tkinter') 7 | 8 | # Make sure tkinter._fix runs to set up the environment 9 | support.import_fresh_module('tkinter') 10 | 11 | # Skip test if tk cannot be initialized. 12 | support.requires('gui') 13 | 14 | from _tkinter import TclError 15 | from tkinter import ttk 16 | from tkinter.test import runtktests 17 | from tkinter.test.support import get_tk_root 18 | 19 | try: 20 | ttk.Button() 21 | except TclError as msg: 22 | # assuming ttk is not available 23 | raise unittest.SkipTest("ttk not available: %s" % msg) 24 | 25 | def test_main(): 26 | try: 27 | support.run_unittest( 28 | *runtktests.get_tests(text=False, packages=['test_ttk'])) 29 | finally: 30 | get_tk_root().destroy() 31 | 32 | if __name__ == '__main__': 33 | test_main() 34 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_ttk_textonly.py: -------------------------------------------------------------------------------- 1 | import os 2 | from test import support 3 | 4 | # Skip this test if _tkinter does not exist. 5 | support.import_module('_tkinter') 6 | 7 | # Make sure tkinter._fix runs to set up the environment 8 | support.import_fresh_module('tkinter') 9 | 10 | from tkinter.test import runtktests 11 | 12 | def test_main(): 13 | support.run_unittest( 14 | *runtktests.get_tests(gui=False, packages=['test_ttk'])) 15 | 16 | if __name__ == '__main__': 17 | test_main() 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/test_unittest.py: -------------------------------------------------------------------------------- 1 | import unittest.test 2 | 3 | from test import support 4 | 5 | 6 | def test_main(): 7 | # used by regrtest 8 | support.run_unittest(unittest.test.suite()) 9 | support.reap_children() 10 | 11 | def load_tests(*_): 12 | # used by unittest 13 | return unittest.test.suite() 14 | 15 | if __name__ == "__main__": 16 | test_main() 17 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/testtar.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/testtar.tar -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tf_inherit_check.py: -------------------------------------------------------------------------------- 1 | # Helper script for test_tempfile.py. argv[2] is the number of a file 2 | # descriptor which should _not_ be open. Check this by attempting to 3 | # write to it -- if we succeed, something is wrong. 4 | 5 | import sys 6 | import os 7 | 8 | verbose = (sys.argv[1] == 'v') 9 | try: 10 | fd = int(sys.argv[2]) 11 | 12 | try: 13 | os.write(fd, b"blat") 14 | except OSError: 15 | # Success -- could not write to fd. 16 | sys.exit(0) 17 | else: 18 | if verbose: 19 | sys.stderr.write("fd %d is open in child" % fd) 20 | sys.exit(1) 21 | 22 | except Exception: 23 | if verbose: 24 | raise 25 | sys.exit(1) 26 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt: -------------------------------------------------------------------------------- 1 | # -*- coding: latin1 -*- 2 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf' 3 | # at the start of it. Make sure this is preserved if any changes 4 | # are made! Also note that the coding cookie above conflicts with 5 | # the presense of a utf-8 BOM signature -- this is intended. 6 | 7 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 8 | x = 'ЉЊЈЁЂ' 9 | def y(): 10 | """ 11 | And again in a comment. ЉЊЈЁЂ 12 | """ 13 | pass 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt: -------------------------------------------------------------------------------- 1 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf' 2 | # at the start of it. Make sure this is preserved if any changes 3 | # are made! 4 | 5 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 6 | x = 'ЉЊЈЁЂ' 7 | def y(): 8 | """ 9 | And again in a comment. ЉЊЈЁЂ 10 | """ 11 | pass 12 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # IMPORTANT: unlike the other test_tokenize-*.txt files, this file 3 | # does NOT have the utf-8 BOM signature '\xef\xbb\xbf' at the start 4 | # of it. Make sure this is not added inadvertently by your editor 5 | # if any changes are made to this file! 6 | 7 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 8 | x = 'ЉЊЈЁЂ' 9 | def y(): 10 | """ 11 | And again in a comment. ЉЊЈЁЂ 12 | """ 13 | pass 14 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # IMPORTANT: this file has the utf-8 BOM signature '\xef\xbb\xbf' 3 | # at the start of it. Make sure this is preserved if any changes 4 | # are made! 5 | 6 | # Arbitrary encoded utf-8 text (stolen from test_doctest2.py). 7 | x = 'ЉЊЈЁЂ' 8 | def y(): 9 | """ 10 | And again in a comment. ЉЊЈЁЂ 11 | """ 12 | pass 13 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tracedmodules/__init__.py: -------------------------------------------------------------------------------- 1 | """This package contains modules that help testing the trace.py module. Note 2 | that the exact location of functions in these modules is important, as trace.py 3 | takes the real line numbers into account. 4 | """ 5 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/tracedmodules/testmod.py: -------------------------------------------------------------------------------- 1 | def func(x): 2 | b = x + 1 3 | return b + 2 4 | 5 | def func2(): 6 | """Test function for issue 9936 """ 7 | return (1, 8 | 2, 9 | 3) 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/warning_tests.py: -------------------------------------------------------------------------------- 1 | # Helper module for testing the skipmodules argument of warnings.warn() 2 | 3 | import warnings 4 | 5 | def outer(message, stacklevel=1): 6 | inner(message, stacklevel) 7 | 8 | def inner(message, stacklevel=1): 9 | warnings.warn(message, stacklevel=stacklevel) 10 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/xmltestdata/simple-ns.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | text 5 | texttail 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/xmltestdata/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | text 4 | texttail 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/xmltests.py: -------------------------------------------------------------------------------- 1 | # Convenience test module to run all of the XML-related tests in the 2 | # standard library. 3 | 4 | import sys 5 | import test.support 6 | 7 | test.support.verbose = 0 8 | 9 | def runtest(name): 10 | __import__(name) 11 | module = sys.modules[name] 12 | if hasattr(module, "test_main"): 13 | module.test_main() 14 | 15 | runtest("test.test_minidom") 16 | runtest("test.test_pyexpat") 17 | runtest("test.test_sax") 18 | runtest("test.test_xml_dom_minicompat") 19 | runtest("test.test_xml_etree") 20 | runtest("test.test_xml_etree_c") 21 | runtest("test.test_xmlrpc") 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/zip_cp437_header.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/zip_cp437_header.zip -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/test/zipdir.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/test/zipdir.zip -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/__main__.py: -------------------------------------------------------------------------------- 1 | """Main entry point""" 2 | 3 | import sys 4 | if sys.argv[0].endswith("__main__.py"): 5 | sys.argv[0] = "python -m tkinter" 6 | from . import _test as main 7 | main() 8 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/README: -------------------------------------------------------------------------------- 1 | Writing new tests 2 | ================= 3 | 4 | Precaution 5 | ---------- 6 | 7 | New tests should always use only one Tk window at once, like all the 8 | current tests do. This means that you have to destroy the current window 9 | before creating another one, and clean up after the test. The motivation 10 | behind this is that some tests may depend on having its window focused 11 | while it is running to work properly, and it may be hard to force focus 12 | on your window across platforms (right now only test_traversal at 13 | test_ttk.test_widgets.NotebookTest depends on this). 14 | 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/test_tkinter/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/test_tkinter/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/test_tkinter/test_font.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | import tkinter 3 | from tkinter import font 4 | from test.support import requires, run_unittest 5 | import tkinter.test.support as support 6 | 7 | requires('gui') 8 | 9 | class FontTest(unittest.TestCase): 10 | 11 | def setUp(self): 12 | support.root_deiconify() 13 | 14 | def tearDown(self): 15 | support.root_withdraw() 16 | 17 | def test_font_eq(self): 18 | fontname = "TkDefaultFont" 19 | try: 20 | f = font.Font(name=fontname, exists=True) 21 | except tkinter._tkinter.TclError: 22 | f = font.Font(name=fontname, exists=False) 23 | font1 = font.nametofont(fontname) 24 | font2 = font.nametofont(fontname) 25 | self.assertIsNot(font1, font2) 26 | self.assertEqual(font1, font2) 27 | self.assertNotEqual(font1, font1.copy()) 28 | self.assertNotEqual(font1, 0) 29 | 30 | tests_gui = (FontTest, ) 31 | 32 | if __name__ == "__main__": 33 | run_unittest(*tests_gui) 34 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/test_ttk/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/tkinter/test/test_ttk/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/tty.py: -------------------------------------------------------------------------------- 1 | """Terminal utilities.""" 2 | 3 | # Author: Steen Lumholt. 4 | 5 | from termios import * 6 | 7 | __all__ = ["setraw", "setcbreak"] 8 | 9 | # Indexes for termios list. 10 | IFLAG = 0 11 | OFLAG = 1 12 | CFLAG = 2 13 | LFLAG = 3 14 | ISPEED = 4 15 | OSPEED = 5 16 | CC = 6 17 | 18 | def setraw(fd, when=TCSAFLUSH): 19 | """Put terminal into a raw mode.""" 20 | mode = tcgetattr(fd) 21 | mode[IFLAG] = mode[IFLAG] & ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON) 22 | mode[OFLAG] = mode[OFLAG] & ~(OPOST) 23 | mode[CFLAG] = mode[CFLAG] & ~(CSIZE | PARENB) 24 | mode[CFLAG] = mode[CFLAG] | CS8 25 | mode[LFLAG] = mode[LFLAG] & ~(ECHO | ICANON | IEXTEN | ISIG) 26 | mode[CC][VMIN] = 1 27 | mode[CC][VTIME] = 0 28 | tcsetattr(fd, when, mode) 29 | 30 | def setcbreak(fd, when=TCSAFLUSH): 31 | """Put terminal into a cbreak mode.""" 32 | mode = tcgetattr(fd) 33 | mode[LFLAG] = mode[LFLAG] & ~(ECHO | ICANON) 34 | mode[CC][VMIN] = 1 35 | mode[CC][VTIME] = 0 36 | tcsetattr(fd, when, mode) 37 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/turtledemo/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | -------------------------------------- 3 | About this viewer 4 | -------------------------------------- 5 | 6 | Tiny demo viewer to view turtle graphics example scripts. 7 | 8 | Quickly and dirtyly assembled by Gregor Lingl. 9 | June, 2006 10 | 11 | For more information see: turtledemo - Help 12 | 13 | Have fun! 14 | """ 15 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/turtledemo/turtle.cfg: -------------------------------------------------------------------------------- 1 | width = 800 2 | height = 600 3 | canvwidth = 1200 4 | canvheight = 900 5 | shape = arrow 6 | mode = standard 7 | resizemode = auto 8 | fillcolor = "" 9 | title = Python turtle graphics demo. 10 | 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/__main__.py: -------------------------------------------------------------------------------- 1 | """Main entry point""" 2 | 3 | import sys 4 | if sys.argv[0].endswith("__main__.py"): 5 | import os.path 6 | # We change sys.argv[0] to make help message more useful 7 | # use executable without path, unquoted 8 | # (it's just a hint anyway) 9 | # (if you have spaces in your executable you get what you deserve!) 10 | executable = os.path.basename(sys.executable) 11 | sys.argv[0] = executable + " -m unittest" 12 | del os 13 | 14 | __unittest = True 15 | 16 | from .main import main, TestProgram 17 | 18 | main(module=None) 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | import unittest 4 | 5 | 6 | here = os.path.dirname(__file__) 7 | loader = unittest.defaultTestLoader 8 | 9 | def suite(): 10 | suite = unittest.TestSuite() 11 | for fn in os.listdir(here): 12 | if fn.startswith("test") and fn.endswith(".py"): 13 | modname = "unittest.test." + fn[:-3] 14 | __import__(modname) 15 | module = sys.modules[modname] 16 | suite.addTest(loader.loadTestsFromModule(module)) 17 | suite.addTest(loader.loadTestsFromName('unittest.test.testmock')) 18 | return suite 19 | 20 | 21 | if __name__ == "__main__": 22 | unittest.main(defaultTest="suite") 23 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/__main__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import unittest 3 | 4 | 5 | def load_tests(loader, standard_tests, pattern): 6 | # top level directory cached on loader instance 7 | this_dir = os.path.dirname(__file__) 8 | pattern = pattern or "test_*.py" 9 | # We are inside unittest.test, so the top-level is two notches up 10 | top_level_dir = os.path.dirname(os.path.dirname(this_dir)) 11 | package_tests = loader.discover(start_dir=this_dir, pattern=pattern, 12 | top_level_dir=top_level_dir) 13 | standard_tests.addTests(package_tests) 14 | return standard_tests 15 | 16 | 17 | if __name__ == '__main__': 18 | unittest.main() 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/dummy.py: -------------------------------------------------------------------------------- 1 | # Empty module for testing the loading of modules 2 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/testmock/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | import unittest 4 | 5 | 6 | here = os.path.dirname(__file__) 7 | loader = unittest.defaultTestLoader 8 | 9 | def load_tests(*args): 10 | suite = unittest.TestSuite() 11 | for fn in os.listdir(here): 12 | if fn.startswith("test") and fn.endswith(".py"): 13 | modname = "unittest.test.testmock." + fn[:-3] 14 | __import__(modname) 15 | module = sys.modules[modname] 16 | suite.addTest(loader.loadTestsFromModule(module)) 17 | return suite 18 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/testmock/__main__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import unittest 3 | 4 | 5 | def load_tests(loader, standard_tests, pattern): 6 | # top level directory cached on loader instance 7 | this_dir = os.path.dirname(__file__) 8 | pattern = pattern or "test*.py" 9 | # We are inside unittest.test.testmock, so the top-level is three notches up 10 | top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir))) 11 | package_tests = loader.discover(start_dir=this_dir, pattern=pattern, 12 | top_level_dir=top_level_dir) 13 | standard_tests.addTests(package_tests) 14 | return standard_tests 15 | 16 | 17 | if __name__ == '__main__': 18 | unittest.main() 19 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/testmock/support.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | def is_instance(obj, klass): 4 | """Version of is_instance that doesn't access __class__""" 5 | return issubclass(type(obj), klass) 6 | 7 | 8 | class SomeClass(object): 9 | class_attribute = None 10 | 11 | def wibble(self): 12 | pass 13 | 14 | 15 | class X(object): 16 | pass 17 | 18 | 19 | def examine_warnings(func): 20 | def wrapper(): 21 | with catch_warnings(record=True) as ws: 22 | func(ws) 23 | return wrapper 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/unittest/test/testmock/testsentinel.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from unittest.mock import sentinel, DEFAULT 3 | 4 | 5 | class SentinelTest(unittest.TestCase): 6 | 7 | def testSentinels(self): 8 | self.assertEqual(sentinel.whatever, sentinel.whatever, 9 | 'sentinel not stored') 10 | self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, 11 | 'sentinel should be unique') 12 | 13 | 14 | def testSentinelName(self): 15 | self.assertEqual(str(sentinel.whatever), 'sentinel.whatever', 16 | 'sentinel name incorrect') 17 | 18 | 19 | def testDEFAULT(self): 20 | self.assertIs(DEFAULT, sentinel.DEFAULT) 21 | 22 | def testBases(self): 23 | # If this doesn't raise an AttributeError then help(mock) is broken 24 | self.assertRaises(AttributeError, lambda: sentinel.__bases__) 25 | 26 | 27 | if __name__ == '__main__': 28 | unittest.main() 29 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/urllib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkiers/python3-parser/5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd/src/test/python/cpython-3f944f44ee41/Lib/urllib/__init__.py -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/venv/__main__.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from . import main 3 | 4 | rc = 1 5 | try: 6 | main() 7 | rc = 0 8 | except Exception as e: 9 | print('Error: %s' % e, file=sys.stderr) 10 | sys.exit(rc) 11 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/venv/scripts/nt/activate.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set "VIRTUAL_ENV=__VENV_DIR__" 3 | 4 | if not defined PROMPT ( 5 | set "PROMPT=$P$G" 6 | ) 7 | 8 | if defined _OLD_VIRTUAL_PROMPT ( 9 | set "PROMPT=%_OLD_VIRTUAL_PROMPT%" 10 | ) 11 | 12 | if defined _OLD_VIRTUAL_PYTHONHOME ( 13 | set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" 14 | ) 15 | 16 | set "_OLD_VIRTUAL_PROMPT=%PROMPT%" 17 | set "PROMPT=__VENV_PROMPT__%PROMPT%" 18 | 19 | if defined PYTHONHOME ( 20 | set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%" 21 | set PYTHONHOME= 22 | ) 23 | 24 | if defined _OLD_VIRTUAL_PATH ( 25 | set "PATH=%_OLD_VIRTUAL_PATH%" 26 | ) else ( 27 | set "_OLD_VIRTUAL_PATH=%PATH%" 28 | ) 29 | 30 | set "PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%" 31 | 32 | :END 33 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/venv/scripts/nt/deactivate.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | if defined _OLD_VIRTUAL_PROMPT ( 4 | set "PROMPT=%_OLD_VIRTUAL_PROMPT%" 5 | ) 6 | set _OLD_VIRTUAL_PROMPT= 7 | 8 | if defined _OLD_VIRTUAL_PYTHONHOME ( 9 | set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" 10 | set _OLD_VIRTUAL_PYTHONHOME= 11 | ) 12 | 13 | if defined _OLD_VIRTUAL_PATH ( 14 | set "PATH=%_OLD_VIRTUAL_PATH%" 15 | ) 16 | 17 | set _OLD_VIRTUAL_PATH= 18 | 19 | set VIRTUAL_ENV= 20 | 21 | :END 22 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/wsgiref/__init__.py: -------------------------------------------------------------------------------- 1 | """wsgiref -- a WSGI (PEP 3333) Reference Library 2 | 3 | Current Contents: 4 | 5 | * util -- Miscellaneous useful functions and wrappers 6 | 7 | * headers -- Manage response headers 8 | 9 | * handlers -- base classes for server/gateway implementations 10 | 11 | * simple_server -- a simple BaseHTTPServer that supports WSGI 12 | 13 | * validate -- validation wrapper that sits between an app and a server 14 | to detect errors in either 15 | 16 | To-Do: 17 | 18 | * cgi_gateway -- Run WSGI apps under CGI (pending a deployment standard) 19 | 20 | * cgi_wrapper -- Run CGI apps under WSGI 21 | 22 | * router -- a simple middleware component that handles URL traversal 23 | """ 24 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/xml/__init__.py: -------------------------------------------------------------------------------- 1 | """Core XML support for Python. 2 | 3 | This package contains four sub-packages: 4 | 5 | dom -- The W3C Document Object Model. This supports DOM Level 1 + 6 | Namespaces. 7 | 8 | parsers -- Python wrappers for XML parsers (currently only supports Expat). 9 | 10 | sax -- The Simple API for XML, developed by XML-Dev, led by David 11 | Megginson and ported to Python by Lars Marius Garshol. This 12 | supports the SAX 2 API. 13 | 14 | etree -- The ElementTree XML library. This is a subset of the full 15 | ElementTree XML release. 16 | 17 | """ 18 | 19 | 20 | __all__ = ["dom", "parsers", "sax", "etree"] 21 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/xml/etree/cElementTree.py: -------------------------------------------------------------------------------- 1 | # Deprecated alias for xml.etree.ElementTree 2 | 3 | from xml.etree.ElementTree import * 4 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/xml/parsers/__init__.py: -------------------------------------------------------------------------------- 1 | """Python interfaces to XML parsers. 2 | 3 | This package contains one module: 4 | 5 | expat -- Python wrapper for James Clark's Expat parser, with namespace 6 | support. 7 | 8 | """ 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/xml/parsers/expat.py: -------------------------------------------------------------------------------- 1 | """Interface to the Expat non-validating XML parser.""" 2 | import sys 3 | 4 | from pyexpat import * 5 | 6 | # provide pyexpat submodules as xml.parsers.expat submodules 7 | sys.modules['xml.parsers.expat.model'] = model 8 | sys.modules['xml.parsers.expat.errors'] = errors 9 | -------------------------------------------------------------------------------- /src/test/python/cpython-3f944f44ee41/Lib/xmlrpc/__init__.py: -------------------------------------------------------------------------------- 1 | # This directory is a Python package. 2 | --------------------------------------------------------------------------------