Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mu-client-pypy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-client-pypy
Commits
b925589f
Commit
b925589f
authored
Aug 20, 2014
by
Philip Jenvey
Browse files
Options
Browse Files
Download
Plain Diff
branch for stdlib 2.7.8
parents
7dffd95a
f257ab3e
Changes
455
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
455 changed files
with
15424 additions
and
5271 deletions
+15424
-5271
lib-python/2.7/CGIHTTPServer.py
lib-python/2.7/CGIHTTPServer.py
+1
-1
lib-python/2.7/Cookie.py
lib-python/2.7/Cookie.py
+0
-3
lib-python/2.7/HTMLParser.py
lib-python/2.7/HTMLParser.py
+10
-7
lib-python/2.7/SimpleHTTPServer.py
lib-python/2.7/SimpleHTTPServer.py
+15
-9
lib-python/2.7/SimpleXMLRPCServer.py
lib-python/2.7/SimpleXMLRPCServer.py
+1
-0
lib-python/2.7/SocketServer.py
lib-python/2.7/SocketServer.py
+30
-28
lib-python/2.7/_MozillaCookieJar.py
lib-python/2.7/_MozillaCookieJar.py
+1
-1
lib-python/2.7/_abcoll.py
lib-python/2.7/_abcoll.py
+21
-2
lib-python/2.7/_osx_support.py
lib-python/2.7/_osx_support.py
+11
-3
lib-python/2.7/_pyio.py
lib-python/2.7/_pyio.py
+44
-31
lib-python/2.7/_weakrefset.py
lib-python/2.7/_weakrefset.py
+2
-0
lib-python/2.7/aifc.py
lib-python/2.7/aifc.py
+10
-5
lib-python/2.7/argparse.py
lib-python/2.7/argparse.py
+9
-3
lib-python/2.7/bsddb/dbshelve.py
lib-python/2.7/bsddb/dbshelve.py
+0
-1
lib-python/2.7/bsddb/test/test_dbtables.py
lib-python/2.7/bsddb/test/test_dbtables.py
+0
-2
lib-python/2.7/codecs.py
lib-python/2.7/codecs.py
+5
-8
lib-python/2.7/collections.py
lib-python/2.7/collections.py
+3
-0
lib-python/2.7/csv.py
lib-python/2.7/csv.py
+6
-2
lib-python/2.7/ctypes/test/__init__.py
lib-python/2.7/ctypes/test/__init__.py
+9
-1
lib-python/2.7/ctypes/test/test_arrays.py
lib-python/2.7/ctypes/test/test_arrays.py
+15
-17
lib-python/2.7/ctypes/test/test_as_parameter.py
lib-python/2.7/ctypes/test/test_as_parameter.py
+3
-5
lib-python/2.7/ctypes/test/test_bitfields.py
lib-python/2.7/ctypes/test/test_bitfields.py
+10
-12
lib-python/2.7/ctypes/test/test_buffers.py
lib-python/2.7/ctypes/test/test_buffers.py
+31
-33
lib-python/2.7/ctypes/test/test_byteswap.py
lib-python/2.7/ctypes/test/test_byteswap.py
+28
-27
lib-python/2.7/ctypes/test/test_callbacks.py
lib-python/2.7/ctypes/test/test_callbacks.py
+22
-25
lib-python/2.7/ctypes/test/test_cast.py
lib-python/2.7/ctypes/test/test_cast.py
+9
-12
lib-python/2.7/ctypes/test/test_cfuncs.py
lib-python/2.7/ctypes/test/test_cfuncs.py
+5
-4
lib-python/2.7/ctypes/test/test_checkretval.py
lib-python/2.7/ctypes/test/test_checkretval.py
+6
-9
lib-python/2.7/ctypes/test/test_errcheck.py
lib-python/2.7/ctypes/test/test_errcheck.py
+0
-19
lib-python/2.7/ctypes/test/test_find.py
lib-python/2.7/ctypes/test/test_find.py
+35
-34
lib-python/2.7/ctypes/test/test_frombuffer.py
lib-python/2.7/ctypes/test/test_frombuffer.py
+1
-1
lib-python/2.7/ctypes/test/test_funcptr.py
lib-python/2.7/ctypes/test/test_funcptr.py
+1
-1
lib-python/2.7/ctypes/test/test_functions.py
lib-python/2.7/ctypes/test/test_functions.py
+33
-39
lib-python/2.7/ctypes/test/test_integers.py
lib-python/2.7/ctypes/test/test_integers.py
+0
-5
lib-python/2.7/ctypes/test/test_keeprefs.py
lib-python/2.7/ctypes/test/test_keeprefs.py
+2
-1
lib-python/2.7/ctypes/test/test_loading.py
lib-python/2.7/ctypes/test/test_loading.py
+75
-67
lib-python/2.7/ctypes/test/test_macholib.py
lib-python/2.7/ctypes/test/test_macholib.py
+12
-8
lib-python/2.7/ctypes/test/test_memfunctions.py
lib-python/2.7/ctypes/test/test_memfunctions.py
+21
-23
lib-python/2.7/ctypes/test/test_numbers.py
lib-python/2.7/ctypes/test/test_numbers.py
+24
-21
lib-python/2.7/ctypes/test/test_objects.py
lib-python/2.7/ctypes/test/test_objects.py
+4
-7
lib-python/2.7/ctypes/test/test_parameters.py
lib-python/2.7/ctypes/test/test_parameters.py
+8
-15
lib-python/2.7/ctypes/test/test_pep3118.py
lib-python/2.7/ctypes/test/test_pep3118.py
+11
-4
lib-python/2.7/ctypes/test/test_pointers.py
lib-python/2.7/ctypes/test/test_pointers.py
+4
-4
lib-python/2.7/ctypes/test/test_prototypes.py
lib-python/2.7/ctypes/test/test_prototypes.py
+50
-52
lib-python/2.7/ctypes/test/test_python_api.py
lib-python/2.7/ctypes/test/test_python_api.py
+18
-17
lib-python/2.7/ctypes/test/test_random_things.py
lib-python/2.7/ctypes/test/test_random_things.py
+13
-14
lib-python/2.7/ctypes/test/test_refcounts.py
lib-python/2.7/ctypes/test/test_refcounts.py
+7
-7
lib-python/2.7/ctypes/test/test_slicing.py
lib-python/2.7/ctypes/test/test_slicing.py
+37
-40
lib-python/2.7/ctypes/test/test_strings.py
lib-python/2.7/ctypes/test/test_strings.py
+71
-71
lib-python/2.7/ctypes/test/test_structures.py
lib-python/2.7/ctypes/test/test_structures.py
+24
-28
lib-python/2.7/ctypes/test/test_unicode.py
lib-python/2.7/ctypes/test/test_unicode.py
+132
-123
lib-python/2.7/ctypes/test/test_values.py
lib-python/2.7/ctypes/test/test_values.py
+55
-53
lib-python/2.7/ctypes/test/test_win32.py
lib-python/2.7/ctypes/test/test_win32.py
+66
-64
lib-python/2.7/ctypes/test/test_wintypes.py
lib-python/2.7/ctypes/test/test_wintypes.py
+2
-4
lib-python/2.7/difflib.py
lib-python/2.7/difflib.py
+2
-4
lib-python/2.7/distutils/__init__.py
lib-python/2.7/distutils/__init__.py
+1
-1
lib-python/2.7/distutils/command/bdist_rpm.py
lib-python/2.7/distutils/command/bdist_rpm.py
+1
-0
lib-python/2.7/distutils/command/build_py.py
lib-python/2.7/distutils/command/build_py.py
+2
-1
lib-python/2.7/distutils/command/upload.py
lib-python/2.7/distutils/command/upload.py
+6
-5
lib-python/2.7/distutils/config.py
lib-python/2.7/distutils/config.py
+1
-1
lib-python/2.7/distutils/core.py
lib-python/2.7/distutils/core.py
+2
-5
lib-python/2.7/distutils/dir_util.py
lib-python/2.7/distutils/dir_util.py
+1
-3
lib-python/2.7/distutils/spawn.py
lib-python/2.7/distutils/spawn.py
+45
-18
lib-python/2.7/distutils/tests/support.py
lib-python/2.7/distutils/tests/support.py
+1
-1
lib-python/2.7/distutils/tests/test_archive_util.py
lib-python/2.7/distutils/tests/test_archive_util.py
+1
-1
lib-python/2.7/distutils/tests/test_bdist_rpm.py
lib-python/2.7/distutils/tests/test_bdist_rpm.py
+19
-25
lib-python/2.7/distutils/tests/test_bdist_wininst.py
lib-python/2.7/distutils/tests/test_bdist_wininst.py
+1
-1
lib-python/2.7/distutils/tests/test_build_clib.py
lib-python/2.7/distutils/tests/test_build_clib.py
+3
-6
lib-python/2.7/distutils/tests/test_build_ext.py
lib-python/2.7/distutils/tests/test_build_ext.py
+22
-17
lib-python/2.7/distutils/tests/test_build_py.py
lib-python/2.7/distutils/tests/test_build_py.py
+31
-0
lib-python/2.7/distutils/tests/test_build_scripts.py
lib-python/2.7/distutils/tests/test_build_scripts.py
+4
-4
lib-python/2.7/distutils/tests/test_ccompiler.py
lib-python/2.7/distutils/tests/test_ccompiler.py
+2
-5
lib-python/2.7/distutils/tests/test_check.py
lib-python/2.7/distutils/tests/test_check.py
+2
-4
lib-python/2.7/distutils/tests/test_clean.py
lib-python/2.7/distutils/tests/test_clean.py
+1
-1
lib-python/2.7/distutils/tests/test_config.py
lib-python/2.7/distutils/tests/test_config.py
+3
-3
lib-python/2.7/distutils/tests/test_config_cmd.py
lib-python/2.7/distutils/tests/test_config_cmd.py
+2
-3
lib-python/2.7/distutils/tests/test_install.py
lib-python/2.7/distutils/tests/test_install.py
+3
-5
lib-python/2.7/distutils/tests/test_install_lib.py
lib-python/2.7/distutils/tests/test_install_lib.py
+2
-2
lib-python/2.7/distutils/tests/test_install_scripts.py
lib-python/2.7/distutils/tests/test_install_scripts.py
+5
-5
lib-python/2.7/distutils/tests/test_msvc9compiler.py
lib-python/2.7/distutils/tests/test_msvc9compiler.py
+3
-3
lib-python/2.7/distutils/tests/test_register.py
lib-python/2.7/distutils/tests/test_register.py
+4
-4
lib-python/2.7/distutils/tests/test_sdist.py
lib-python/2.7/distutils/tests/test_sdist.py
+4
-12
lib-python/2.7/distutils/tests/test_sysconfig.py
lib-python/2.7/distutils/tests/test_sysconfig.py
+1
-1
lib-python/2.7/distutils/tests/test_unixccompiler.py
lib-python/2.7/distutils/tests/test_unixccompiler.py
+1
-5
lib-python/2.7/distutils/tests/test_upload.py
lib-python/2.7/distutils/tests/test_upload.py
+17
-8
lib-python/2.7/distutils/tests/test_util.py
lib-python/2.7/distutils/tests/test_util.py
+10
-2
lib-python/2.7/distutils/util.py
lib-python/2.7/distutils/util.py
+4
-19
lib-python/2.7/doctest.py
lib-python/2.7/doctest.py
+29
-4
lib-python/2.7/dumbdbm.py
lib-python/2.7/dumbdbm.py
+29
-33
lib-python/2.7/email/generator.py
lib-python/2.7/email/generator.py
+1
-2
lib-python/2.7/email/test/data/msg_02.txt
lib-python/2.7/email/test/data/msg_02.txt
+1
-0
lib-python/2.7/email/test/test_email.py
lib-python/2.7/email/test/test_email.py
+80
-87
lib-python/2.7/email/test/test_email_renamed.py
lib-python/2.7/email/test/test_email_renamed.py
+75
-80
lib-python/2.7/encodings/rot_13.py
lib-python/2.7/encodings/rot_13.py
+0
-0
lib-python/2.7/fileinput.py
lib-python/2.7/fileinput.py
+3
-2
lib-python/2.7/hashlib.py
lib-python/2.7/hashlib.py
+68
-1
lib-python/2.7/hmac.py
lib-python/2.7/hmac.py
+3
-0
lib-python/2.7/httplib.py
lib-python/2.7/httplib.py
+39
-17
lib-python/2.7/idlelib/AutoComplete.py
lib-python/2.7/idlelib/AutoComplete.py
+5
-0
lib-python/2.7/idlelib/AutoExpand.py
lib-python/2.7/idlelib/AutoExpand.py
+21
-0
lib-python/2.7/idlelib/Bindings.py
lib-python/2.7/idlelib/Bindings.py
+7
-25
lib-python/2.7/idlelib/CallTipWindow.py
lib-python/2.7/idlelib/CallTipWindow.py
+26
-33
lib-python/2.7/idlelib/CallTips.py
lib-python/2.7/idlelib/CallTips.py
+84
-93
lib-python/2.7/idlelib/ClassBrowser.py
lib-python/2.7/idlelib/ClassBrowser.py
+14
-6
lib-python/2.7/idlelib/ColorDelegator.py
lib-python/2.7/idlelib/ColorDelegator.py
+12
-5
lib-python/2.7/idlelib/Debugger.py
lib-python/2.7/idlelib/Debugger.py
+3
-3
lib-python/2.7/idlelib/EditorWindow.py
lib-python/2.7/idlelib/EditorWindow.py
+21
-15
lib-python/2.7/idlelib/FormatParagraph.py
lib-python/2.7/idlelib/FormatParagraph.py
+8
-6
lib-python/2.7/idlelib/GrepDialog.py
lib-python/2.7/idlelib/GrepDialog.py
+53
-21
lib-python/2.7/idlelib/HyperParser.py
lib-python/2.7/idlelib/HyperParser.py
+91
-82
lib-python/2.7/idlelib/IOBinding.py
lib-python/2.7/idlelib/IOBinding.py
+7
-9
lib-python/2.7/idlelib/Icons/idle.ico
lib-python/2.7/idlelib/Icons/idle.ico
+0
-0
lib-python/2.7/idlelib/Icons/idle_16.gif
lib-python/2.7/idlelib/Icons/idle_16.gif
+0
-0
lib-python/2.7/idlelib/Icons/idle_16.png
lib-python/2.7/idlelib/Icons/idle_16.png
+0
-0
lib-python/2.7/idlelib/Icons/idle_32.gif
lib-python/2.7/idlelib/Icons/idle_32.gif
+0
-0
lib-python/2.7/idlelib/Icons/idle_32.png
lib-python/2.7/idlelib/Icons/idle_32.png
+0
-0
lib-python/2.7/idlelib/Icons/idle_48.gif
lib-python/2.7/idlelib/Icons/idle_48.gif
+0
-0
lib-python/2.7/idlelib/Icons/idle_48.png
lib-python/2.7/idlelib/Icons/idle_48.png
+0
-0
lib-python/2.7/idlelib/IdleHistory.py
lib-python/2.7/idlelib/IdleHistory.py
+0
-2
lib-python/2.7/idlelib/MultiCall.py
lib-python/2.7/idlelib/MultiCall.py
+11
-4
lib-python/2.7/idlelib/MultiStatusBar.py
lib-python/2.7/idlelib/MultiStatusBar.py
+24
-11
lib-python/2.7/idlelib/ObjectBrowser.py
lib-python/2.7/idlelib/ObjectBrowser.py
+8
-3
lib-python/2.7/idlelib/ParenMatch.py
lib-python/2.7/idlelib/ParenMatch.py
+10
-4
lib-python/2.7/idlelib/PathBrowser.py
lib-python/2.7/idlelib/PathBrowser.py
+14
-6
lib-python/2.7/idlelib/Percolator.py
lib-python/2.7/idlelib/Percolator.py
+34
-16
lib-python/2.7/idlelib/PyShell.py
lib-python/2.7/idlelib/PyShell.py
+42
-16
lib-python/2.7/idlelib/ReplaceDialog.py
lib-python/2.7/idlelib/ReplaceDialog.py
+31
-0
lib-python/2.7/idlelib/ScriptBinding.py
lib-python/2.7/idlelib/ScriptBinding.py
+2
-2
lib-python/2.7/idlelib/ScrolledList.py
lib-python/2.7/idlelib/ScrolledList.py
+10
-9
lib-python/2.7/idlelib/SearchDialog.py
lib-python/2.7/idlelib/SearchDialog.py
+22
-0
lib-python/2.7/idlelib/SearchDialogBase.py
lib-python/2.7/idlelib/SearchDialogBase.py
+57
-30
lib-python/2.7/idlelib/SearchEngine.py
lib-python/2.7/idlelib/SearchEngine.py
+3
-6
lib-python/2.7/idlelib/StackViewer.py
lib-python/2.7/idlelib/StackViewer.py
+28
-13
lib-python/2.7/idlelib/ToolTip.py
lib-python/2.7/idlelib/ToolTip.py
+15
-7
lib-python/2.7/idlelib/TreeWidget.py
lib-python/2.7/idlelib/TreeWidget.py
+10
-21
lib-python/2.7/idlelib/UndoDelegator.py
lib-python/2.7/idlelib/UndoDelegator.py
+17
-4
lib-python/2.7/idlelib/WidgetRedirector.py
lib-python/2.7/idlelib/WidgetRedirector.py
+7
-8
lib-python/2.7/idlelib/ZoomHeight.py
lib-python/2.7/idlelib/ZoomHeight.py
+1
-1
lib-python/2.7/idlelib/aboutDialog.py
lib-python/2.7/idlelib/aboutDialog.py
+10
-10
lib-python/2.7/idlelib/config-keys.def
lib-python/2.7/idlelib/config-keys.def
+14
-14
lib-python/2.7/idlelib/config-main.def
lib-python/2.7/idlelib/config-main.def
+1
-1
lib-python/2.7/idlelib/configDialog.py
lib-python/2.7/idlelib/configDialog.py
+15
-13
lib-python/2.7/idlelib/configHandler.py
lib-python/2.7/idlelib/configHandler.py
+7
-5
lib-python/2.7/idlelib/configHelpSourceEdit.py
lib-python/2.7/idlelib/configHelpSourceEdit.py
+12
-15
lib-python/2.7/idlelib/configSectionNameDialog.py
lib-python/2.7/idlelib/configSectionNameDialog.py
+10
-18
lib-python/2.7/idlelib/dynOptionMenuWidget.py
lib-python/2.7/idlelib/dynOptionMenuWidget.py
+24
-2
lib-python/2.7/idlelib/idle_test/README.txt
lib-python/2.7/idlelib/idle_test/README.txt
+28
-21
lib-python/2.7/idlelib/idle_test/htest.py
lib-python/2.7/idlelib/idle_test/htest.py
+368
-0
lib-python/2.7/idlelib/idle_test/mock_idle.py
lib-python/2.7/idlelib/idle_test/mock_idle.py
+25
-0
lib-python/2.7/idlelib/idle_test/mock_tk.py
lib-python/2.7/idlelib/idle_test/mock_tk.py
+23
-4
lib-python/2.7/idlelib/idle_test/test_autocomplete.py
lib-python/2.7/idlelib/idle_test/test_autocomplete.py
+143
-0
lib-python/2.7/idlelib/idle_test/test_autoexpand.py
lib-python/2.7/idlelib/idle_test/test_autoexpand.py
+141
-0
lib-python/2.7/idlelib/idle_test/test_calltips.py
lib-python/2.7/idlelib/idle_test/test_calltips.py
+164
-4
lib-python/2.7/idlelib/idle_test/test_formatparagraph.py
lib-python/2.7/idlelib/idle_test/test_formatparagraph.py
+8
-5
lib-python/2.7/idlelib/idle_test/test_hyperparser.py
lib-python/2.7/idlelib/idle_test/test_hyperparser.py
+191
-0
lib-python/2.7/idlelib/idle_test/test_idlehistory.py
lib-python/2.7/idlelib/idle_test/test_idlehistory.py
+1
-0
lib-python/2.7/idlelib/idle_test/test_parenmatch.py
lib-python/2.7/idlelib/idle_test/test_parenmatch.py
+121
-0
lib-python/2.7/idlelib/idle_test/test_searchengine.py
lib-python/2.7/idlelib/idle_test/test_searchengine.py
+3
-0
lib-python/2.7/idlelib/idle_test/test_text.py
lib-python/2.7/idlelib/idle_test/test_text.py
+1
-0
lib-python/2.7/idlelib/idle_test/test_textview.py
lib-python/2.7/idlelib/idle_test/test_textview.py
+98
-0
lib-python/2.7/idlelib/idlever.py
lib-python/2.7/idlelib/idlever.py
+1
-1
lib-python/2.7/idlelib/keybindingDialog.py
lib-python/2.7/idlelib/keybindingDialog.py
+14
-16
lib-python/2.7/idlelib/macosxSupport.py
lib-python/2.7/idlelib/macosxSupport.py
+91
-31
lib-python/2.7/idlelib/tabbedpages.py
lib-python/2.7/idlelib/tabbedpages.py
+9
-1
lib-python/2.7/idlelib/textView.py
lib-python/2.7/idlelib/textView.py
+13
-22
lib-python/2.7/imaplib.py
lib-python/2.7/imaplib.py
+18
-1
lib-python/2.7/imghdr.py
lib-python/2.7/imghdr.py
+9
-11
lib-python/2.7/io.py
lib-python/2.7/io.py
+4
-3
lib-python/2.7/json/decoder.py
lib-python/2.7/json/decoder.py
+18
-17
lib-python/2.7/json/tests/test_decode.py
lib-python/2.7/json/tests/test_decode.py
+5
-0
lib-python/2.7/json/tests/test_scanstring.py
lib-python/2.7/json/tests/test_scanstring.py
+52
-4
lib-python/2.7/lib-tk/Tix.py
lib-python/2.7/lib-tk/Tix.py
+11
-33
lib-python/2.7/lib-tk/Tkinter.py
lib-python/2.7/lib-tk/Tkinter.py
+71
-57
lib-python/2.7/lib-tk/test/runtktests.py
lib-python/2.7/lib-tk/test/runtktests.py
+1
-45
lib-python/2.7/lib-tk/test/test_tkinter/test_geometry_managers.py
...on/2.7/lib-tk/test/test_tkinter/test_geometry_managers.py
+889
-0
lib-python/2.7/lib-tk/test/test_tkinter/test_images.py
lib-python/2.7/lib-tk/test/test_tkinter/test_images.py
+339
-0
lib-python/2.7/lib-tk/test/test_tkinter/test_text.py
lib-python/2.7/lib-tk/test/test_tkinter/test_text.py
+11
-0
lib-python/2.7/lib-tk/test/test_tkinter/test_variables.py
lib-python/2.7/lib-tk/test/test_tkinter/test_variables.py
+166
-0
lib-python/2.7/lib-tk/test/test_tkinter/test_widgets.py
lib-python/2.7/lib-tk/test/test_tkinter/test_widgets.py
+1172
-0
lib-python/2.7/lib-tk/test/test_ttk/support.py
lib-python/2.7/lib-tk/test/test_ttk/support.py
+55
-0
lib-python/2.7/lib-tk/test/test_ttk/test_extensions.py
lib-python/2.7/lib-tk/test/test_ttk/test_extensions.py
+21
-11
lib-python/2.7/lib-tk/test/test_ttk/test_functions.py
lib-python/2.7/lib-tk/test/test_ttk/test_functions.py
+36
-15
lib-python/2.7/lib-tk/test/test_ttk/test_style.py
lib-python/2.7/lib-tk/test/test_ttk/test_style.py
+5
-4
lib-python/2.7/lib-tk/test/test_ttk/test_widgets.py
lib-python/2.7/lib-tk/test/test_ttk/test_widgets.py
+567
-85
lib-python/2.7/lib-tk/test/widget_tests.py
lib-python/2.7/lib-tk/test/widget_tests.py
+547
-0
lib-python/2.7/lib-tk/tkFont.py
lib-python/2.7/lib-tk/tkFont.py
+2
-1
lib-python/2.7/lib-tk/ttk.py
lib-python/2.7/lib-tk/ttk.py
+49
-34
lib-python/2.7/lib-tk/turtle.py
lib-python/2.7/lib-tk/turtle.py
+9
-9
lib-python/2.7/lib2to3/Grammar.txt
lib-python/2.7/lib2to3/Grammar.txt
+4
-3
lib-python/2.7/lib2to3/fixes/fix_import.py
lib-python/2.7/lib2to3/fixes/fix_import.py
+1
-1
lib-python/2.7/lib2to3/pgen2/grammar.py
lib-python/2.7/lib2to3/pgen2/grammar.py
+1
-0
lib-python/2.7/lib2to3/pgen2/token.py
lib-python/2.7/lib2to3/pgen2/token.py
+7
-6
lib-python/2.7/lib2to3/pgen2/tokenize.py
lib-python/2.7/lib2to3/pgen2/tokenize.py
+3
-3
lib-python/2.7/lib2to3/tests/data/different_encoding.py
lib-python/2.7/lib2to3/tests/data/different_encoding.py
+0
-0
lib-python/2.7/lib2to3/tests/data/false_encoding.py
lib-python/2.7/lib2to3/tests/data/false_encoding.py
+0
-0
lib-python/2.7/lib2to3/tests/test_fixers.py
lib-python/2.7/lib2to3/tests/test_fixers.py
+1
-1
lib-python/2.7/lib2to3/tests/test_main.py
lib-python/2.7/lib2to3/tests/test_main.py
+3
-3
lib-python/2.7/lib2to3/tests/test_parser.py
lib-python/2.7/lib2to3/tests/test_parser.py
+15
-2
lib-python/2.7/lib2to3/tests/test_pytree.py
lib-python/2.7/lib2to3/tests/test_pytree.py
+8
-8
lib-python/2.7/lib2to3/tests/test_refactor.py
lib-python/2.7/lib2to3/tests/test_refactor.py
+3
-3
lib-python/2.7/locale.py
lib-python/2.7/locale.py
+120
-55
lib-python/2.7/logging/__init__.py
lib-python/2.7/logging/__init__.py
+23
-13
lib-python/2.7/logging/config.py
lib-python/2.7/logging/config.py
+66
-79
lib-python/2.7/logging/handlers.py
lib-python/2.7/logging/handlers.py
+2
-1
lib-python/2.7/mailbox.py
lib-python/2.7/mailbox.py
+0
-2
lib-python/2.7/mailcap.py
lib-python/2.7/mailcap.py
+2
-2
lib-python/2.7/mimetypes.py
lib-python/2.7/mimetypes.py
+5
-11
lib-python/2.7/multiprocessing/connection.py
lib-python/2.7/multiprocessing/connection.py
+1
-1
lib-python/2.7/multiprocessing/pool.py
lib-python/2.7/multiprocessing/pool.py
+9
-5
lib-python/2.7/multiprocessing/process.py
lib-python/2.7/multiprocessing/process.py
+1
-1
lib-python/2.7/multiprocessing/util.py
lib-python/2.7/multiprocessing/util.py
+9
-3
lib-python/2.7/ntpath.py
lib-python/2.7/ntpath.py
+94
-78
lib-python/2.7/optparse.py
lib-python/2.7/optparse.py
+4
-3
lib-python/2.7/os.py
lib-python/2.7/os.py
+8
-6
lib-python/2.7/pickle.py
lib-python/2.7/pickle.py
+1
-1
lib-python/2.7/posixpath.py
lib-python/2.7/posixpath.py
+21
-6
lib-python/2.7/pydoc.py
lib-python/2.7/pydoc.py
+55
-16
lib-python/2.7/pydoc_data/topics.py
lib-python/2.7/pydoc_data/topics.py
+12
-10
lib-python/2.7/random.py
lib-python/2.7/random.py
+7
-2
lib-python/2.7/re.py
lib-python/2.7/re.py
+10
-7
lib-python/2.7/robotparser.py
lib-python/2.7/robotparser.py
+12
-2
lib-python/2.7/shutil.py
lib-python/2.7/shutil.py
+11
-12
lib-python/2.7/site.py
lib-python/2.7/site.py
+0
-1
lib-python/2.7/sqlite3/dbapi2.py
lib-python/2.7/sqlite3/dbapi2.py
+2
-0
lib-python/2.7/sqlite3/test/factory.py
lib-python/2.7/sqlite3/test/factory.py
+50
-31
lib-python/2.7/sqlite3/test/hooks.py
lib-python/2.7/sqlite3/test/hooks.py
+1
-1
lib-python/2.7/sqlite3/test/regression.py
lib-python/2.7/sqlite3/test/regression.py
+5
-0
lib-python/2.7/sre_compile.py
lib-python/2.7/sre_compile.py
+4
-4
lib-python/2.7/sre_parse.py
lib-python/2.7/sre_parse.py
+6
-3
lib-python/2.7/ssl.py
lib-python/2.7/ssl.py
+5
-0
lib-python/2.7/subprocess.py
lib-python/2.7/subprocess.py
+6
-5
lib-python/2.7/sunau.py
lib-python/2.7/sunau.py
+1
-1
lib-python/2.7/tarfile.py
lib-python/2.7/tarfile.py
+14
-10
lib-python/2.7/telnetlib.py
lib-python/2.7/telnetlib.py
+5
-2
lib-python/2.7/tempfile.py
lib-python/2.7/tempfile.py
+6
-2
lib-python/2.7/test/audiotests.py
lib-python/2.7/test/audiotests.py
+67
-2
lib-python/2.7/test/bad_coding3.py
lib-python/2.7/test/bad_coding3.py
+2
-0
lib-python/2.7/test/crashers/recursive_call.py
lib-python/2.7/test/crashers/recursive_call.py
+0
-0
lib-python/2.7/test/curses_tests.py
lib-python/2.7/test/curses_tests.py
+0
-0
lib-python/2.7/test/imghdrdata/python.bmp
lib-python/2.7/test/imghdrdata/python.bmp
+0
-0
lib-python/2.7/test/imghdrdata/python.gif
lib-python/2.7/test/imghdrdata/python.gif
+0
-0
lib-python/2.7/test/imghdrdata/python.jpg
lib-python/2.7/test/imghdrdata/python.jpg
+0
-0
lib-python/2.7/test/imghdrdata/python.pbm
lib-python/2.7/test/imghdrdata/python.pbm
+3
-0
lib-python/2.7/test/imghdrdata/python.pgm
lib-python/2.7/test/imghdrdata/python.pgm
+0
-0
lib-python/2.7/test/imghdrdata/python.png
lib-python/2.7/test/imghdrdata/python.png
+0
-0
lib-python/2.7/test/imghdrdata/python.ppm
lib-python/2.7/test/imghdrdata/python.ppm
+0
-0
lib-python/2.7/test/imghdrdata/python.ras
lib-python/2.7/test/imghdrdata/python.ras
+0
-0
lib-python/2.7/test/imghdrdata/python.sgi
lib-python/2.7/test/imghdrdata/python.sgi
+0
-0
lib-python/2.7/test/imghdrdata/python.tiff
lib-python/2.7/test/imghdrdata/python.tiff
+0
-0
lib-python/2.7/test/imghdrdata/python.xbm
lib-python/2.7/test/imghdrdata/python.xbm
+6
-0
lib-python/2.7/test/pickletester.py
lib-python/2.7/test/pickletester.py
+22
-18
lib-python/2.7/test/pydoc_mod.py
lib-python/2.7/test/pydoc_mod.py
+10
-0
lib-python/2.7/test/string_tests.py
lib-python/2.7/test/string_tests.py
+37
-34
lib-python/2.7/test/test___future__.py
lib-python/2.7/test/test___future__.py
+0
-1
lib-python/2.7/test/test__osx_support.py
lib-python/2.7/test/test__osx_support.py
+3
-1
lib-python/2.7/test/test_aepack.py
lib-python/2.7/test/test_aepack.py
+4
-4
lib-python/2.7/test/test_aifc.py
lib-python/2.7/test/test_aifc.py
+11
-24
lib-python/2.7/test/test_al.py
lib-python/2.7/test/test_al.py
+0
-1
lib-python/2.7/test/test_anydbm.py
lib-python/2.7/test/test_anydbm.py
+0
-1
lib-python/2.7/test/test_argparse.py
lib-python/2.7/test/test_argparse.py
+60
-0
lib-python/2.7/test/test_array.py
lib-python/2.7/test/test_array.py
+44
-44
lib-python/2.7/test/test_binhex.py
lib-python/2.7/test/test_binhex.py
+0
-1
lib-python/2.7/test/test_bsddb.py
lib-python/2.7/test/test_bsddb.py
+17
-7
lib-python/2.7/test/test_buffer.py
lib-python/2.7/test/test_buffer.py
+6
-0
lib-python/2.7/test/test_builtin.py
lib-python/2.7/test/test_builtin.py
+56
-54
lib-python/2.7/test/test_bz2.py
lib-python/2.7/test/test_bz2.py
+15
-1
lib-python/2.7/test/test_capi.py
lib-python/2.7/test/test_capi.py
+3
-1
lib-python/2.7/test/test_cd.py
lib-python/2.7/test/test_cd.py
+0
-1
lib-python/2.7/test/test_cfgparser.py
lib-python/2.7/test/test_cfgparser.py
+8
-4
lib-python/2.7/test/test_cgi.py
lib-python/2.7/test/test_cgi.py
+11
-1
lib-python/2.7/test/test_cl.py
lib-python/2.7/test/test_cl.py
+0
-1
lib-python/2.7/test/test_cmath.py
lib-python/2.7/test/test_cmath.py
+1
-1
lib-python/2.7/test/test_cmd.py
lib-python/2.7/test/test_cmd.py
+0
-1
lib-python/2.7/test/test_code.py
lib-python/2.7/test/test_code.py
+5
-4
lib-python/2.7/test/test_codecencodings_cn.py
lib-python/2.7/test/test_codecencodings_cn.py
+0
-1
lib-python/2.7/test/test_codecencodings_hk.py
lib-python/2.7/test/test_codecencodings_hk.py
+0
-1
lib-python/2.7/test/test_codecencodings_iso2022.py
lib-python/2.7/test/test_codecencodings_iso2022.py
+1
-2
lib-python/2.7/test/test_codecencodings_jp.py
lib-python/2.7/test/test_codecencodings_jp.py
+0
-1
lib-python/2.7/test/test_codecencodings_kr.py
lib-python/2.7/test/test_codecencodings_kr.py
+0
-1
lib-python/2.7/test/test_codecencodings_tw.py
lib-python/2.7/test/test_codecencodings_tw.py
+0
-1
lib-python/2.7/test/test_codecmaps_cn.py
lib-python/2.7/test/test_codecmaps_cn.py
+0
-1
lib-python/2.7/test/test_codecmaps_hk.py
lib-python/2.7/test/test_codecmaps_hk.py
+0
-2
lib-python/2.7/test/test_codecmaps_jp.py
lib-python/2.7/test/test_codecmaps_jp.py
+0
-1
lib-python/2.7/test/test_codecmaps_kr.py
lib-python/2.7/test/test_codecmaps_kr.py
+0
-1
lib-python/2.7/test/test_codecmaps_tw.py
lib-python/2.7/test/test_codecmaps_tw.py
+0
-1
lib-python/2.7/test/test_codecs.py
lib-python/2.7/test/test_codecs.py
+104
-37
lib-python/2.7/test/test_collections.py
lib-python/2.7/test/test_collections.py
+193
-0
lib-python/2.7/test/test_compile.py
lib-python/2.7/test/test_compile.py
+41
-2
lib-python/2.7/test/test_compileall.py
lib-python/2.7/test/test_compileall.py
+1
-2
lib-python/2.7/test/test_cookielib.py
lib-python/2.7/test/test_cookielib.py
+74
-78
lib-python/2.7/test/test_csv.py
lib-python/2.7/test/test_csv.py
+127
-77
lib-python/2.7/test/test_datetime.py
lib-python/2.7/test/test_datetime.py
+81
-81
lib-python/2.7/test/test_decimal.py
lib-python/2.7/test/test_decimal.py
+4
-18
lib-python/2.7/test/test_descr.py
lib-python/2.7/test/test_descr.py
+181
-161
lib-python/2.7/test/test_difflib.py
lib-python/2.7/test/test_difflib.py
+9
-0
lib-python/2.7/test/test_dis.py
lib-python/2.7/test/test_dis.py
+2
-0
lib-python/2.7/test/test_dl.py
lib-python/2.7/test/test_dl.py
+0
-1
lib-python/2.7/test/test_doctest.py
lib-python/2.7/test/test_doctest.py
+27
-0
lib-python/2.7/test/test_dumbdbm.py
lib-python/2.7/test/test_dumbdbm.py
+2
-5
lib-python/2.7/test/test_enumerate.py
lib-python/2.7/test/test_enumerate.py
+1
-2
lib-python/2.7/test/test_eof.py
lib-python/2.7/test/test_eof.py
+0
-1
lib-python/2.7/test/test_epoll.py
lib-python/2.7/test/test_epoll.py
+0
-3
lib-python/2.7/test/test_errno.py
lib-python/2.7/test/test_errno.py
+0
-1
lib-python/2.7/test/test_exceptions.py
lib-python/2.7/test/test_exceptions.py
+6
-0
lib-python/2.7/test/test_fcntl.py
lib-python/2.7/test/test_fcntl.py
+30
-19
lib-python/2.7/test/test_file2k.py
lib-python/2.7/test/test_file2k.py
+21
-0
lib-python/2.7/test/test_fileinput.py
lib-python/2.7/test/test_fileinput.py
+42
-1
lib-python/2.7/test/test_fileio.py
lib-python/2.7/test/test_fileio.py
+26
-23
lib-python/2.7/test/test_float.py
lib-python/2.7/test/test_float.py
+1
-1
lib-python/2.7/test/test_format.py
lib-python/2.7/test/test_format.py
+16
-6
lib-python/2.7/test/test_ftplib.py
lib-python/2.7/test/test_ftplib.py
+17
-15
lib-python/2.7/test/test_functools.py
lib-python/2.7/test/test_functools.py
+4
-6
lib-python/2.7/test/test_gdb.py
lib-python/2.7/test/test_gdb.py
+2
-2
lib-python/2.7/test/test_genericpath.py
lib-python/2.7/test/test_genericpath.py
+28
-1
lib-python/2.7/test/test_getargs2.py
lib-python/2.7/test/test_getargs2.py
+12
-7
lib-python/2.7/test/test_gl.py
lib-python/2.7/test/test_gl.py
+0
-1
lib-python/2.7/test/test_grammar.py
lib-python/2.7/test/test_grammar.py
+6
-0
lib-python/2.7/test/test_grp.py
lib-python/2.7/test/test_grp.py
+3
-1
lib-python/2.7/test/test_gzip.py
lib-python/2.7/test/test_gzip.py
+0
-1
lib-python/2.7/test/test_hashlib.py
lib-python/2.7/test/test_hashlib.py
+76
-20
lib-python/2.7/test/test_hmac.py
lib-python/2.7/test/test_hmac.py
+113
-1
lib-python/2.7/test/test_htmlparser.py
lib-python/2.7/test/test_htmlparser.py
+12
-2
lib-python/2.7/test/test_httplib.py
lib-python/2.7/test/test_httplib.py
+51
-5
lib-python/2.7/test/test_httpservers.py
lib-python/2.7/test/test_httpservers.py
+19
-15
lib-python/2.7/test/test_idle.py
lib-python/2.7/test/test_idle.py
+5
-16
lib-python/2.7/test/test_imageop.py
lib-python/2.7/test/test_imageop.py
+0
-2
lib-python/2.7/test/test_imaplib.py
lib-python/2.7/test/test_imaplib.py
+13
-1
lib-python/2.7/test/test_imgfile.py
lib-python/2.7/test/test_imgfile.py
+0
-2
lib-python/2.7/test/test_imghdr.py
lib-python/2.7/test/test_imghdr.py
+120
-0
lib-python/2.7/test/test_imp.py
lib-python/2.7/test/test_imp.py
+6
-6
lib-python/2.7/test/test_index.py
lib-python/2.7/test/test_index.py
+5
-2
lib-python/2.7/test/test_io.py
lib-python/2.7/test/test_io.py
+57
-8
lib-python/2.7/test/test_iter.py
lib-python/2.7/test/test_iter.py
+1
-3
lib-python/2.7/test/test_itertools.py
lib-python/2.7/test/test_itertools.py
+20
-2
lib-python/2.7/test/test_locale.py
lib-python/2.7/test/test_locale.py
+83
-4
lib-python/2.7/test/test_logging.py
lib-python/2.7/test/test_logging.py
+0
-2
lib-python/2.7/test/test_long.py
lib-python/2.7/test/test_long.py
+2
-2
lib-python/2.7/test/test_macos.py
lib-python/2.7/test/test_macos.py
+4
-7
lib-python/2.7/test/test_macostools.py
lib-python/2.7/test/test_macostools.py
+28
-24
lib-python/2.7/test/test_mailbox.py
lib-python/2.7/test/test_mailbox.py
+50
-50
lib-python/2.7/test/test_marshal.py
lib-python/2.7/test/test_marshal.py
+1
-2
lib-python/2.7/test/test_math.py
lib-python/2.7/test/test_math.py
+30
-31
lib-python/2.7/test/test_memoryio.py
lib-python/2.7/test/test_memoryio.py
+55
-1
lib-python/2.7/test/test_memoryview.py
lib-python/2.7/test/test_memoryview.py
+5
-5
lib-python/2.7/test/test_mimetypes.py
lib-python/2.7/test/test_mimetypes.py
+79
-6
lib-python/2.7/test/test_minidom.py
lib-python/2.7/test/test_minidom.py
+0
-69
lib-python/2.7/test/test_mmap.py
lib-python/2.7/test/test_mmap.py
+74
-76
lib-python/2.7/test/test_multibytecodec.py
lib-python/2.7/test/test_multibytecodec.py
+43
-47
lib-python/2.7/test/test_multibytecodec_support.py
lib-python/2.7/test/test_multibytecodec_support.py
+2
-4
lib-python/2.7/test/test_multiprocessing.py
lib-python/2.7/test/test_multiprocessing.py
+25
-25
lib-python/2.7/test/test_nis.py
lib-python/2.7/test/test_nis.py
+1
-5
lib-python/2.7/test/test_nntplib.py
lib-python/2.7/test/test_nntplib.py
+9
-1
lib-python/2.7/test/test_ntpath.py
lib-python/2.7/test/test_ntpath.py
+132
-20
lib-python/2.7/test/test_optparse.py
lib-python/2.7/test/test_optparse.py
+36
-1
lib-python/2.7/test/test_os.py
lib-python/2.7/test/test_os.py
+126
-129
lib-python/2.7/test/test_pep263.py
lib-python/2.7/test/test_pep263.py
+5
-0
lib-python/2.7/test/test_poll.py
lib-python/2.7/test/test_poll.py
+17
-9
lib-python/2.7/test/test_popen.py
lib-python/2.7/test/test_popen.py
+0
-1
lib-python/2.7/test/test_popen2.py
lib-python/2.7/test/test_popen2.py
+0
-1
lib-python/2.7/test/test_poplib.py
lib-python/2.7/test/test_poplib.py
+18
-16
lib-python/2.7/test/test_posix.py
lib-python/2.7/test/test_posix.py
+227
-199
lib-python/2.7/test/test_pwd.py
lib-python/2.7/test/test_pwd.py
+11
-6
lib-python/2.7/test/test_py3kwarn.py
lib-python/2.7/test/test_py3kwarn.py
+5
-0
lib-python/2.7/test/test_pydoc.py
lib-python/2.7/test/test_pydoc.py
+150
-4
lib-python/2.7/test/test_pyexpat.py
lib-python/2.7/test/test_pyexpat.py
+11
-0
lib-python/2.7/test/test_random.py
lib-python/2.7/test/test_random.py
+7
-9
lib-python/2.7/test/test_re.py
lib-python/2.7/test/test_re.py
+30
-3
lib-python/2.7/test/test_repr.py
lib-python/2.7/test/test_repr.py
+11
-2
lib-python/2.7/test/test_resource.py
lib-python/2.7/test/test_resource.py
+60
-64
lib-python/2.7/test/test_robotparser.py
lib-python/2.7/test/test_robotparser.py
+7
-0
lib-python/2.7/test/test_set.py
lib-python/2.7/test/test_set.py
+4
-30
lib-python/2.7/test/test_sets.py
lib-python/2.7/test/test_sets.py
+0
-2
lib-python/2.7/test/test_shutil.py
lib-python/2.7/test/test_shutil.py
+71
-64
lib-python/2.7/test/test_site.py
lib-python/2.7/test/test_site.py
+1
-0
lib-python/2.7/test/test_smtplib.py
lib-python/2.7/test/test_smtplib.py
+3
-3
lib-python/2.7/test/test_smtpnet.py
lib-python/2.7/test/test_smtpnet.py
+0
-2
lib-python/2.7/test/test_socket.py
lib-python/2.7/test/test_socket.py
+91
-49
lib-python/2.7/test/test_socketserver.py
lib-python/2.7/test/test_socketserver.py
+46
-39
lib-python/2.7/test/test_spwd.py
lib-python/2.7/test/test_spwd.py
+62
-0
lib-python/2.7/test/test_ssl.py
lib-python/2.7/test/test_ssl.py
+16
-5
lib-python/2.7/test/test_str.py
lib-python/2.7/test/test_str.py
+6
-6
lib-python/2.7/test/test_strop.py
lib-python/2.7/test/test_strop.py
+6
-0
lib-python/2.7/test/test_strptime.py
lib-python/2.7/test/test_strptime.py
+3
-3
lib-python/2.7/test/test_strtod.py
lib-python/2.7/test/test_strtod.py
+32
-0
lib-python/2.7/test/test_struct.py
lib-python/2.7/test/test_struct.py
+12
-0
lib-python/2.7/test/test_structmembers.py
lib-python/2.7/test/test_structmembers.py
+5
-3
lib-python/2.7/test/test_sunau.py
lib-python/2.7/test/test_sunau.py
+8
-15
lib-python/2.7/test/test_sundry.py
lib-python/2.7/test/test_sundry.py
+0
-1
lib-python/2.7/test/test_support.py
lib-python/2.7/test/test_support.py
+142
-15
lib-python/2.7/test/test_sys.py
lib-python/2.7/test/test_sys.py
+45
-64
lib-python/2.7/test/test_tarfile.py
lib-python/2.7/test/test_tarfile.py
+127
-11
lib-python/2.7/test/test_tcl.py
lib-python/2.7/test/test_tcl.py
+390
-29
lib-python/2.7/test/test_telnetlib.py
lib-python/2.7/test/test_telnetlib.py
+0
-1
lib-python/2.7/test/test_tempfile.py
lib-python/2.7/test/test_tempfile.py
+22
-8
lib-python/2.7/test/test_thread.py
lib-python/2.7/test/test_thread.py
+23
-27
lib-python/2.7/test/test_threading.py
lib-python/2.7/test/test_threading.py
+92
-13
lib-python/2.7/test/test_timeout.py
lib-python/2.7/test/test_timeout.py
+3
-0
lib-python/2.7/test/test_tk.py
lib-python/2.7/test/test_tk.py
+4
-12
lib-python/2.7/test/test_tokenize.py
lib-python/2.7/test/test_tokenize.py
+39
-3
lib-python/2.7/test/test_traceback.py
lib-python/2.7/test/test_traceback.py
+14
-3
lib-python/2.7/test/test_ttk_guionly.py
lib-python/2.7/test/test_ttk_guionly.py
+4
-12
lib-python/2.7/test/test_ucn.py
lib-python/2.7/test/test_ucn.py
+11
-9
lib-python/2.7/test/test_unicode.py
lib-python/2.7/test/test_unicode.py
+34
-6
lib-python/2.7/test/test_urllib.py
lib-python/2.7/test/test_urllib.py
+22
-2
lib-python/2.7/test/test_urllib2.py
lib-python/2.7/test/test_urllib2.py
+4
-3
lib-python/2.7/test/test_urllib2_localnet.py
lib-python/2.7/test/test_urllib2_localnet.py
+0
-2
lib-python/2.7/test/test_urllib2net.py
lib-python/2.7/test/test_urllib2net.py
+21
-23
lib-python/2.7/test/test_urllibnet.py
lib-python/2.7/test/test_urllibnet.py
+14
-19
lib-python/2.7/test/test_urlparse.py
lib-python/2.7/test/test_urlparse.py
+10
-2
lib-python/2.7/test/test_userstring.py
lib-python/2.7/test/test_userstring.py
+0
-1
lib-python/2.7/test/test_uuid.py
lib-python/2.7/test/test_uuid.py
+32
-0
lib-python/2.7/test/test_warnings.py
lib-python/2.7/test/test_warnings.py
+2
-3
lib-python/2.7/test/test_wave.py
lib-python/2.7/test/test_wave.py
+22
-18
lib-python/2.7/test/test_weakref.py
lib-python/2.7/test/test_weakref.py
+166
-82
lib-python/2.7/test/test_weakset.py
lib-python/2.7/test/test_weakset.py
+54
-0
lib-python/2.7/test/test_whichdb.py
lib-python/2.7/test/test_whichdb.py
+0
-1
lib-python/2.7/test/test_winreg.py
lib-python/2.7/test/test_winreg.py
+9
-0
lib-python/2.7/test/test_winsound.py
lib-python/2.7/test/test_winsound.py
+9
-12
lib-python/2.7/test/test_with.py
lib-python/2.7/test/test_with.py
+0
-2
lib-python/2.7/test/test_wsgiref.py
lib-python/2.7/test/test_wsgiref.py
+8
-2
lib-python/2.7/test/test_xml_etree.py
lib-python/2.7/test/test_xml_etree.py
+9
-2
lib-python/2.7/test/test_xmlrpc.py
lib-python/2.7/test/test_xmlrpc.py
+7
-5
lib-python/2.7/test/test_zipfile.py
lib-python/2.7/test/test_zipfile.py
+25
-8
lib-python/2.7/test/test_zlib.py
lib-python/2.7/test/test_zlib.py
+87
-78
lib-python/2.7/timeit.py
lib-python/2.7/timeit.py
+0
-0
lib-python/2.7/token.py
lib-python/2.7/token.py
+0
-2
lib-python/2.7/tokenize.py
lib-python/2.7/tokenize.py
+17
-11
lib-python/2.7/trace.py
lib-python/2.7/trace.py
+0
-0
lib-python/2.7/traceback.py
lib-python/2.7/traceback.py
+4
-3
lib-python/2.7/unittest/case.py
lib-python/2.7/unittest/case.py
+2
-2
lib-python/2.7/unittest/test/test_case.py
lib-python/2.7/unittest/test/test_case.py
+12
-6
lib-python/2.7/unittest/test/test_loader.py
lib-python/2.7/unittest/test/test_loader.py
+1
-1
lib-python/2.7/unittest/test/test_result.py
lib-python/2.7/unittest/test/test_result.py
+2
-2
lib-python/2.7/urllib.py
lib-python/2.7/urllib.py
+11
-8
lib-python/2.7/urlparse.py
lib-python/2.7/urlparse.py
+5
-4
lib-python/2.7/uuid.py
lib-python/2.7/uuid.py
+28
-15
lib-python/2.7/wave.py
lib-python/2.7/wave.py
+16
-9
lib-python/2.7/weakref.py
lib-python/2.7/weakref.py
+99
-35
lib-python/2.7/webbrowser.py
lib-python/2.7/webbrowser.py
+0
-0
lib-python/2.7/xml/etree/ElementInclude.py
lib-python/2.7/xml/etree/ElementInclude.py
+7
-8
lib-python/2.7/xmlrpclib.py
lib-python/2.7/xmlrpclib.py
+4
-11
lib-python/2.7/zipfile.py
lib-python/2.7/zipfile.py
+12
-8
lib-python/3/_osx_support.py
lib-python/3/_osx_support.py
+488
-0
lib-python/3/test/crashers/trace_at_recursion_limit.py
lib-python/3/test/crashers/trace_at_recursion_limit.py
+27
-0
lib-python/3/test/json_tests/test_tool.py
lib-python/3/test/json_tests/test_tool.py
+69
-0
lib-python/3/test/mp_fork_bomb.py
lib-python/3/test/mp_fork_bomb.py
+13
-0
lib-python/3/test/sample_doctest_no_docstrings.py
lib-python/3/test/sample_doctest_no_docstrings.py
+12
-0
lib-python/3/test/sample_doctest_no_doctests.py
lib-python/3/test/sample_doctest_no_doctests.py
+15
-0
lib-python/3/test/test__osx_support.py
lib-python/3/test/test__osx_support.py
+279
-0
lib-python/3/test/test_file_eintr.py
lib-python/3/test/test_file_eintr.py
+236
-0
lib-python/3/test/test_tools.py
lib-python/3/test/test_tools.py
+433
-0
lib-python/3/tkinter/test/test_tkinter/test_misc.py
lib-python/3/tkinter/test/test_tkinter/test_misc.py
+45
-0
lib-python/stdlib-version.txt
lib-python/stdlib-version.txt
+2
-2
rpython/rlib/rsre/rpy/sre_compile.py
rpython/rlib/rsre/rpy/sre_compile.py
+4
-4
rpython/rlib/rsre/rpy/sre_parse.py
rpython/rlib/rsre/rpy/sre_parse.py
+6
-3
No files found.
lib-python/2.7/CGIHTTPServer.py
View file @
b925589f
...
...
@@ -84,7 +84,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
path begins with one of the strings in self.cgi_directories
(and the next character is a '/' or the end of the string).
"""
collapsed_path
=
_url_collapse_path
(
self
.
path
)
collapsed_path
=
_url_collapse_path
(
urllib
.
unquote
(
self
.
path
)
)
dir_sep
=
collapsed_path
.
find
(
'/'
,
1
)
head
,
tail
=
collapsed_path
[:
dir_sep
],
collapsed_path
[
dir_sep
+
1
:]
if
head
in
self
.
cgi_directories
:
...
...
lib-python/2.7/Cookie.py
View file @
b925589f
#!/usr/bin/env python
#
####
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
#
...
...
lib-python/2.7/HTMLParser.py
View file @
b925589f
...
...
@@ -22,9 +22,12 @@ charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]')
starttagopen
=
re
.
compile
(
'<[a-zA-Z]'
)
piclose
=
re
.
compile
(
'>'
)
commentclose
=
re
.
compile
(
r'--\s*>'
)
tagfind
=
re
.
compile
(
'([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\s|/(?!>))*'
)
# see http://www.w3.org/TR/html5/tokenization.html#tag-open-state
# and http://www.w3.org/TR/html5/tokenization.html#tag-name-state
# note: if you change tagfind/attrfind remember to update locatestarttagend too
tagfind
=
re
.
compile
(
'([a-zA-Z][^
\t\n\r\f
/>
\x00
]*)(?:\s|/(?!>))*'
)
# this regex is currently unused, but left for backward compatibility
tagfind_tolerant
=
re
.
compile
(
'[a-zA-Z][^
\t\n\r\f
/>
\x00
]*'
)
attrfind
=
re
.
compile
(
...
...
@@ -32,7 +35,7 @@ attrfind = re.compile(
r'(\'[^\']*\'|"[^"]*"|(?![\'"])[^>\s]*))?(?:\s|/(?!>))*'
)
locatestarttagend
=
re
.
compile
(
r"""
<[a-zA-Z][
-.a-zA-Z0-9:_]*
# tag name
<[a-zA-Z][
^\t\n\r\f />\x00]*
# tag name
(?:[\s/]* # optional whitespace before attribute name
(?:(?<=['"\s/])[^\s/>][^\s/=>]* # attribute name
(?:\s*=+\s* # value indicator
...
...
@@ -192,9 +195,9 @@ class HTMLParser(markupbase.ParserBase):
i
=
self
.
updatepos
(
i
,
k
)
continue
else
:
if
";"
in
rawdata
[
i
:]:
#bail by consuming &#
self
.
handle_data
(
rawdata
[
0
:
2
])
i
=
self
.
updatepos
(
i
,
2
)
if
";"
in
rawdata
[
i
:]:
# bail by consuming '&#'
self
.
handle_data
(
rawdata
[
i
:
i
+
2
])
i
=
self
.
updatepos
(
i
,
i
+
2
)
break
elif
startswith
(
'&'
,
i
):
match
=
entityref
.
match
(
rawdata
,
i
)
...
...
@@ -373,14 +376,14 @@ class HTMLParser(markupbase.ParserBase):
self
.
handle_data
(
rawdata
[
i
:
gtpos
])
return
gtpos
# find the name: w3.org/TR/html5/tokenization.html#tag-name-state
namematch
=
tagfind
_tolerant
.
match
(
rawdata
,
i
+
2
)
namematch
=
tagfind
.
match
(
rawdata
,
i
+
2
)
if
not
namematch
:
# w3.org/TR/html5/tokenization.html#end-tag-open-state
if
rawdata
[
i
:
i
+
3
]
==
'</>'
:
return
i
+
3
else
:
return
self
.
parse_bogus_comment
(
i
)
tagname
=
namematch
.
group
().
lower
()
tagname
=
namematch
.
group
(
1
).
lower
()
# consume and ignore other stuff between the name and the >
# Note: this is not 100% correct, since we might have things like
# </tag attr=">">, but looking for > after tha name should cover
...
...
lib-python/2.7/SimpleHTTPServer.py
View file @
b925589f
...
...
@@ -43,8 +43,10 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Serve a GET request."""
f
=
self
.
send_head
()
if
f
:
self
.
copyfile
(
f
,
self
.
wfile
)
f
.
close
()
try
:
self
.
copyfile
(
f
,
self
.
wfile
)
finally
:
f
.
close
()
def
do_HEAD
(
self
):
"""Serve a HEAD request."""
...
...
@@ -88,13 +90,17 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
except
IOError
:
self
.
send_error
(
404
,
"File not found"
)
return
None
self
.
send_response
(
200
)
self
.
send_header
(
"Content-type"
,
ctype
)
fs
=
os
.
fstat
(
f
.
fileno
())
self
.
send_header
(
"Content-Length"
,
str
(
fs
[
6
]))
self
.
send_header
(
"Last-Modified"
,
self
.
date_time_string
(
fs
.
st_mtime
))
self
.
end_headers
()
return
f
try
:
self
.
send_response
(
200
)
self
.
send_header
(
"Content-type"
,
ctype
)
fs
=
os
.
fstat
(
f
.
fileno
())
self
.
send_header
(
"Content-Length"
,
str
(
fs
[
6
]))
self
.
send_header
(
"Last-Modified"
,
self
.
date_time_string
(
fs
.
st_mtime
))
self
.
end_headers
()
return
f
except
:
f
.
close
()
raise
def
list_directory
(
self
,
path
):
"""Helper to produce a directory listing (absent index.html).
...
...
lib-python/2.7/SimpleXMLRPCServer.py
View file @
b925589f
...
...
@@ -704,4 +704,5 @@ if __name__ == '__main__':
server
=
SimpleXMLRPCServer
((
"localhost"
,
8000
))
server
.
register_function
(
pow
)
server
.
register_function
(
lambda
x
,
y
:
x
+
y
,
'add'
)
server
.
register_multicall_functions
()
server
.
serve_forever
()
lib-python/2.7/SocketServer.py
View file @
b925589f
...
...
@@ -513,35 +513,37 @@ class ForkingMixIn:
def
collect_children
(
self
):
"""Internal routine to wait for children that have exited."""
if
self
.
active_children
is
None
:
return
if
self
.
active_children
is
None
:
return
# If we're above the max number of children, wait and reap them until
# we go back below threshold. Note that we use waitpid(-1) below to be
# able to collect children in size(<defunct children>) syscalls instead
# of size(<children>): the downside is that this might reap children
# which we didn't spawn, which is why we only resort to this when we're
# above max_children.
while
len
(
self
.
active_children
)
>=
self
.
max_children
:
# XXX: This will wait for any child process, not just ones
# spawned by this library. This could confuse other
# libraries that expect to be able to wait for their own
# children.
try
:
pid
,
status
=
os
.
waitpid
(
0
,
0
)
except
os
.
error
:
pid
=
None
if
pid
not
in
self
.
active_children
:
continue
self
.
active_children
.
remove
(
pid
)
# XXX: This loop runs more system calls than it ought
# to. There should be a way to put the active_children into a
# process group and then use os.waitpid(-pgid) to wait for any
# of that set, but I couldn't find a way to allocate pgids
# that couldn't collide.
for
child
in
self
.
active_children
:
try
:
pid
,
status
=
os
.
waitpid
(
child
,
os
.
WNOHANG
)
except
os
.
error
:
pid
=
None
if
not
pid
:
continue
pid
,
_
=
os
.
waitpid
(
-
1
,
0
)
self
.
active_children
.
discard
(
pid
)
except
OSError
as
e
:
if
e
.
errno
==
errno
.
ECHILD
:
# we don't have any children, we're done
self
.
active_children
.
clear
()
elif
e
.
errno
!=
errno
.
EINTR
:
break
# Now reap all defunct children.
for
pid
in
self
.
active_children
.
copy
():
try
:
self
.
active_children
.
remove
(
pid
)
except
ValueError
,
e
:
raise
ValueError
(
'%s. x=%d and list=%r'
%
(
e
.
message
,
pid
,
self
.
active_children
))
pid
,
_
=
os
.
waitpid
(
pid
,
os
.
WNOHANG
)
# if the child hasn't exited yet, pid will be 0 and ignored by
# discard() below
self
.
active_children
.
discard
(
pid
)
except
OSError
as
e
:
if
e
.
errno
==
errno
.
ECHILD
:
# someone else reaped it
self
.
active_children
.
discard
(
pid
)
def
handle_timeout
(
self
):
"""Wait for zombies after self.timeout seconds of inactivity.
...
...
@@ -557,8 +559,8 @@ class ForkingMixIn:
if
pid
:
# Parent process
if
self
.
active_children
is
None
:
self
.
active_children
=
[]
self
.
active_children
.
a
ppen
d
(
pid
)
self
.
active_children
=
set
()
self
.
active_children
.
a
d
d
(
pid
)
self
.
close_request
(
request
)
#close handle in parent process
return
else
:
...
...
lib-python/2.7/_MozillaCookieJar.py
View file @
b925589f
...
...
@@ -39,7 +39,7 @@ class MozillaCookieJar(FileCookieJar):
magic_re
=
"#( Netscape)? HTTP Cookie File"
header
=
"""
\
# Netscape HTTP Cookie File
# http://
www.netscape.com/newsref/std
/cookie_spec.html
# http://
curl.haxx.se/rfc
/cookie_spec.html
# This is a generated file! Do not edit.
"""
...
...
lib-python/2.7/_abcoll.py
View file @
b925589f
...
...
@@ -165,12 +165,17 @@ class Set(Sized, Iterable, Container):
def
__gt__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
return
NotImplemented
return
other
<
self
return
len
(
self
)
>
len
(
other
)
and
self
.
__ge__
(
other
)
def
__ge__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
return
NotImplemented
return
other
<=
self
if
len
(
self
)
<
len
(
other
):
return
False
for
elem
in
other
:
if
elem
not
in
self
:
return
False
return
True
def
__eq__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
...
...
@@ -194,6 +199,8 @@ class Set(Sized, Iterable, Container):
return
NotImplemented
return
self
.
_from_iterable
(
value
for
value
in
other
if
value
in
self
)
__rand__
=
__and__
def
isdisjoint
(
self
,
other
):
'Return True if two sets have a null intersection.'
for
value
in
other
:
...
...
@@ -207,6 +214,8 @@ class Set(Sized, Iterable, Container):
chain
=
(
e
for
s
in
(
self
,
other
)
for
e
in
s
)
return
self
.
_from_iterable
(
chain
)
__ror__
=
__or__
def
__sub__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
if
not
isinstance
(
other
,
Iterable
):
...
...
@@ -215,6 +224,14 @@ class Set(Sized, Iterable, Container):
return
self
.
_from_iterable
(
value
for
value
in
self
if
value
not
in
other
)
def
__rsub__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
if
not
isinstance
(
other
,
Iterable
):
return
NotImplemented
other
=
self
.
_from_iterable
(
other
)
return
self
.
_from_iterable
(
value
for
value
in
other
if
value
not
in
self
)
def
__xor__
(
self
,
other
):
if
not
isinstance
(
other
,
Set
):
if
not
isinstance
(
other
,
Iterable
):
...
...
@@ -222,6 +239,8 @@ class Set(Sized, Iterable, Container):
other
=
self
.
_from_iterable
(
other
)
return
(
self
-
other
)
|
(
other
-
self
)
__rxor__
=
__xor__
# Sets are not hashable by default, but subclasses can change this
__hash__
=
None
...
...
lib-python/2.7/_osx_support.py
View file @
b925589f
...
...
@@ -182,7 +182,7 @@ def _find_appropriate_compiler(_config_vars):
# Compiler is GCC, check if it is LLVM-GCC
data
=
_read_output
(
"'%s' --version"
%
(
cc
.
replace
(
"'"
,
"'
\"
'
\"
'"
),))
if
'llvm-gcc'
in
data
:
if
data
and
'llvm-gcc'
in
data
:
# Found LLVM-GCC, fall back to clang
cc
=
_find_build_tool
(
'clang'
)
...
...
@@ -450,8 +450,16 @@ def get_platform_osx(_config_vars, osname, release, machine):
# case and disallow installs.
cflags
=
_config_vars
.
get
(
_INITPRE
+
'CFLAGS'
,
_config_vars
.
get
(
'CFLAGS'
,
''
))
if
((
macrelease
+
'.'
)
>=
'10.4.'
and
'-arch'
in
cflags
.
strip
()):
if
macrelease
:
try
:
macrelease
=
tuple
(
int
(
i
)
for
i
in
macrelease
.
split
(
'.'
)[
0
:
2
])
except
ValueError
:
macrelease
=
(
10
,
0
)
else
:
# assume no universal support
macrelease
=
(
10
,
0
)
if
(
macrelease
>=
(
10
,
4
))
and
'-arch'
in
cflags
.
strip
():
# The universal build will build fat binaries, but not on
# systems before 10.4
...
...
lib-python/2.7/_pyio.py
View file @
b925589f
...
...
@@ -192,38 +192,45 @@ def open(file, mode="r", buffering=-1,
(
appending
and
"a"
or
""
)
+
(
updating
and
"+"
or
""
),
closefd
)
line_buffering
=
False
if
buffering
==
1
or
buffering
<
0
and
raw
.
isatty
():
buffering
=
-
1
line_buffering
=
True
if
buffering
<
0
:
buffering
=
DEFAULT_BUFFER_SIZE
try
:
bs
=
os
.
fstat
(
raw
.
fileno
()).
st_blksize
except
(
os
.
error
,
AttributeError
):
pass
result
=
raw
try
:
line_buffering
=
False
if
buffering
==
1
or
buffering
<
0
and
raw
.
isatty
():
buffering
=
-
1
line_buffering
=
True
if
buffering
<
0
:
buffering
=
DEFAULT_BUFFER_SIZE
try
:
bs
=
os
.
fstat
(
raw
.
fileno
()).
st_blksize
except
(
os
.
error
,
AttributeError
):
pass
else
:
if
bs
>
1
:
buffering
=
bs
if
buffering
<
0
:
raise
ValueError
(
"invalid buffering size"
)
if
buffering
==
0
:
if
binary
:
return
result
raise
ValueError
(
"can't have unbuffered text I/O"
)
if
updating
:
buffer
=
BufferedRandom
(
raw
,
buffering
)
elif
writing
or
appending
:
buffer
=
BufferedWriter
(
raw
,
buffering
)
elif
reading
:
buffer
=
BufferedReader
(
raw
,
buffering
)
else
:
if
bs
>
1
:
buffering
=
bs
if
buffering
<
0
:
raise
ValueError
(
"invalid buffering size"
)
if
buffering
==
0
:
raise
ValueError
(
"unknown mode: %r"
%
mode
)
result
=
buffer
if
binary
:
return
raw
raise
ValueError
(
"can't have unbuffered text I/O"
)
if
updating
:
buffer
=
BufferedRandom
(
raw
,
buffering
)
elif
writing
or
appending
:
buffer
=
BufferedWriter
(
raw
,
buffering
)
elif
reading
:
buffer
=
BufferedReader
(
raw
,
buffering
)
else
:
raise
ValueError
(
"unknown mode: %r"
%
mode
)
if
binary
:
return
buffer
text
=
TextIOWrapper
(
buffer
,
encoding
,
errors
,
newline
,
line_buffering
)
text
.
mode
=
mode
return
text
return
result
text
=
TextIOWrapper
(
buffer
,
encoding
,
errors
,
newline
,
line_buffering
)
result
=
text
text
.
mode
=
mode
return
result
except
:
result
.
close
()
raise
class
DocDescriptor
:
...
...
@@ -1997,7 +2004,13 @@ class StringIO(TextIOWrapper):
def
getvalue
(
self
):
self
.
flush
()
return
self
.
buffer
.
getvalue
().
decode
(
self
.
_encoding
,
self
.
_errors
)
decoder
=
self
.
_decoder
or
self
.
_get_decoder
()
old_state
=
decoder
.
getstate
()
decoder
.
reset
()
try
:
return
decoder
.
decode
(
self
.
buffer
.
getvalue
(),
final
=
True
)
finally
:
decoder
.
setstate
(
old_state
)
def
__repr__
(
self
):
# TextIOWrapper tells the encoding in its repr. In StringIO,
...
...
lib-python/2.7/_weakrefset.py
View file @
b925589f
...
...
@@ -60,6 +60,8 @@ class WeakSet(object):
for
itemref
in
self
.
data
:
item
=
itemref
()
if
item
is
not
None
:
# Caveat: the iterator will keep a strong reference to
# `item` until it is resumed or closed.
yield
item
def
__len__
(
self
):
...
...
lib-python/2.7/aifc.py
View file @
b925589f
...
...
@@ -778,7 +778,7 @@ class Aifc_write:
def
_ensure_header_written
(
self
,
datasize
):
if
not
self
.
_nframeswritten
:
if
self
.
_comptype
in
(
'ULAW'
,
'
ALAW
'
):
if
self
.
_comptype
in
(
'ULAW'
,
'
ulaw'
,
'ALAW'
,
'alaw
'
):
if
not
self
.
_sampwidth
:
self
.
_sampwidth
=
2
if
self
.
_sampwidth
!=
2
:
...
...
@@ -844,7 +844,7 @@ class Aifc_write:
if
self
.
_datalength
&
1
:
self
.
_datalength
=
self
.
_datalength
+
1
if
self
.
_aifc
:
if
self
.
_comptype
in
(
'ULAW'
,
'
ALAW
'
):
if
self
.
_comptype
in
(
'ULAW'
,
'
ulaw'
,
'ALAW'
,
'alaw
'
):
self
.
_datalength
=
self
.
_datalength
//
2
if
self
.
_datalength
&
1
:
self
.
_datalength
=
self
.
_datalength
+
1
...
...
@@ -852,7 +852,10 @@ class Aifc_write:
self
.
_datalength
=
(
self
.
_datalength
+
3
)
//
4
if
self
.
_datalength
&
1
:
self
.
_datalength
=
self
.
_datalength
+
1
self
.
_form_length_pos
=
self
.
_file
.
tell
()
try
:
self
.
_form_length_pos
=
self
.
_file
.
tell
()
except
(
AttributeError
,
IOError
):
self
.
_form_length_pos
=
None
commlength
=
self
.
_write_form_length
(
self
.
_datalength
)
if
self
.
_aifc
:
self
.
_file
.
write
(
'AIFC'
)
...
...
@@ -864,7 +867,8 @@ class Aifc_write:
self
.
_file
.
write
(
'COMM'
)
_write_ulong
(
self
.
_file
,
commlength
)
_write_short
(
self
.
_file
,
self
.
_nchannels
)
self
.
_nframes_pos
=
self
.
_file
.
tell
()
if
self
.
_form_length_pos
is
not
None
:
self
.
_nframes_pos
=
self
.
_file
.
tell
()
_write_ulong
(
self
.
_file
,
self
.
_nframes
)
if
self
.
_comptype
in
(
'ULAW'
,
'ulaw'
,
'ALAW'
,
'alaw'
,
'G722'
):
_write_short
(
self
.
_file
,
8
)
...
...
@@ -875,7 +879,8 @@ class Aifc_write:
self
.
_file
.
write
(
self
.
_comptype
)
_write_string
(
self
.
_file
,
self
.
_compname
)
self
.
_file
.
write
(
'SSND'
)
self
.
_ssnd_length_pos
=
self
.
_file
.
tell
()
if
self
.
_form_length_pos
is
not
None
:
self
.
_ssnd_length_pos
=
self
.
_file
.
tell
()
_write_ulong
(
self
.
_file
,
self
.
_datalength
+
8
)
_write_ulong
(
self
.
_file
,
0
)
_write_ulong
(
self
.
_file
,
0
)
...
...
lib-python/2.7/argparse.py
View file @
b925589f
...
...
@@ -168,6 +168,8 @@ class HelpFormatter(object):
self
.
_prog
=
prog
self
.
_indent_increment
=
indent_increment
self
.
_max_help_position
=
max_help_position
self
.
_max_help_position
=
min
(
max_help_position
,
max
(
width
-
20
,
indent_increment
*
2
))
self
.
_width
=
width
self
.
_current_indent
=
0
...
...
@@ -339,7 +341,7 @@ class HelpFormatter(object):
else
:
line_len
=
len
(
indent
)
-
1
for
part
in
parts
:
if
line_len
+
1
+
len
(
part
)
>
text_width
:
if
line_len
+
1
+
len
(
part
)
>
text_width
and
line
:
lines
.
append
(
indent
+
' '
.
join
(
line
))
line
=
[]
line_len
=
len
(
indent
)
-
1
...
...
@@ -478,7 +480,7 @@ class HelpFormatter(object):
def
_format_text
(
self
,
text
):
if
'%(prog)'
in
text
:
text
=
text
%
dict
(
prog
=
self
.
_prog
)
text_width
=
self
.
_width
-
self
.
_current_indent
text_width
=
max
(
self
.
_width
-
self
.
_current_indent
,
11
)
indent
=
' '
*
self
.
_current_indent
return
self
.
_fill_text
(
text
,
text_width
,
indent
)
+
'
\n\n
'
...
...
@@ -486,7 +488,7 @@ class HelpFormatter(object):
# determine the required width and the entry label
help_position
=
min
(
self
.
_action_max_length
+
2
,
self
.
_max_help_position
)
help_width
=
self
.
_width
-
help_position
help_width
=
max
(
self
.
_width
-
help_position
,
11
)
action_width
=
help_position
-
self
.
_current_indent
-
2
action_header
=
self
.
_format_action_invocation
(
action
)
...
...
@@ -1155,9 +1157,13 @@ class Namespace(_AttributeHolder):
__hash__
=
None
def
__eq__
(
self
,
other
):
if
not
isinstance
(
other
,
Namespace
):
return
NotImplemented
return
vars
(
self
)
==
vars
(
other
)
def
__ne__
(
self
,
other
):
if
not
isinstance
(
other
,
Namespace
):
return
NotImplemented
return
not
(
self
==
other
)
def
__contains__
(
self
,
key
):
...
...
lib-python/2.7/bsddb/dbshelve.py
View file @
b925589f
#!/usr/bin/env python
#------------------------------------------------------------------------
# Copyright (c) 1997-2001 by Total Control Software
# All Rights Reserved
...
...
lib-python/2.7/bsddb/test/test_dbtables.py
View file @
b925589f
#!/usr/bin/env python