summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mark files as executable that are meant as scripts. (GH-15354)Greg Price2019-09-0911-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This is the converse of GH-15353 -- in addition to plenty of scripts in the tree that are marked with the executable bit (and so can be directly executed), there are a few that have a leading `#!` which could let them be executed, but it doesn't do anything because they don't have the executable bit set. Here's a command which finds such files and marks them. The first line finds files in the tree with a `#!` line *anywhere*; the next-to-last step checks that the *first* line is actually of that form. In between we filter out files that already have the bit set, and some files that are meant as fragments to be consumed by one or another kind of preprocessor. $ git grep -l '^#!' \ | grep -vxFf <( \ git ls-files --stage \ | perl -lane 'print $F[3] if (!/^100644/)' \ ) \ | grep -ve '\.in$' -e '^Doc/includes/' \ | while read f; do head -c2 "$f" | grep -qxF '#!' \ && chmod a+x "$f"; \ done
* bpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)Alan Yee2019-09-092-2/+3
| | | Constants added by the site module like exit() "should not be used in programs"
* bpo-38053 Update documentation for plistlib (GH-15727)Jon Janzen2019-09-092-4/+19
| | | | | | * Update documentation for plistlib - Update "Mac OS X" to "Apple" since plists are used more widely than just macOS - Re-add the UID class documentation (oops, removed in GH-15615)
* Fix typo in the algorithm description (GH-15774)Pablo Galindo2019-09-091-1/+1
|
* bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082)Naitree Zhu2019-09-093-0/+18
| | | | | | | | * bpo-34596: Fallback to a default reason when @unittest.skip is uncalled * Change default reason to empty string * Fix rst formatting of NEWS entry
* bpo-37662: Documented venv.EnvBuilder.upgrade_dependencies(). (GH-15768)Vinay Sajip2019-09-091-0/+8
|
* bpo-38037: Fix reference counters in signal module (GH-15753)animalize2019-09-092-8/+18
|
* bpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)Steve Dower2019-09-091-1/+1
|
* bpo-26185: Fix repr() on empty ZipInfo object (#13441)Mickaël Schoentgen2019-09-093-5/+32
| | | | | | | | | | | | * bpo-26185: Fix repr() on empty ZipInfo object It was failing on AttributeError due to inexistant but required attributes file_size and compress_size. They are now initialized to 0 in ZipInfo.__init__(). * Remove useless hasattr() in ZipInfo._open_to_write() * Completely remove file_size setting in _open_to_write().
* Fix typo in math.prod example (GH-15614)Ashwin Vishnu2019-09-091-1/+1
|
* bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)neonene2019-09-092-0/+3
| | | | | ssl_collect_certificates function in _ssl.c has a memory leak. Calling CertOpenStore() and CertAddStoreToCollection(), a store's refcnt gets incremented by 2. But CertCloseStore() is called only once and the refcnt leaves 1.
* bpo-37589: Add a few missing dependencies on .h files in the Makefile. ↵T. Wouters2019-09-091-7/+11
| | | | | | (GH-15757) The missing dependencies prevented incremental builds from working when you touched any of these files. Based on GH-14758 by @vemakereporter.
* bpo-37283: Ensure command-line and unattend.xml setting override previously ↵Steve Dower2019-09-093-8/+27
| | | | detected states in Windows installer (GH-15759)
* bpo-34652 again: Remove lchmod from the default AC_CHECK_FUNCS list. (GH-15758)Benjamin Peterson2019-09-093-74/+18
|
* logging.Formatter docs: Add missing `validate` parameter, clarify `style` ↵David Röthlisberger2019-09-091-3/+6
| | | | parameter (GH-15222)
* bpo-37212: Preserve keyword argument order in unittest.mock.call and error ↵Xtreak2019-09-093-4/+6
| | | | messages (GH-14310)
* Doc: Fix PDF build (NoUri). (GH-15739)Julien Palard2019-09-091-4/+11
|
* Future-proof .travis.yml for Python 3.10 (GH-14831)Anthony Sottile2019-09-091-1/+1
|
* bpo-36250: ignore ValueError from signal in non-main thread (GH-12251)Daniel Hahler2019-09-093-2/+37
| | | | Authored-By: blueyed <github@thequod.de>
* bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623)Zackery Spytz2019-09-093-109/+138
| | | | | winerror_to_errno() is no longer automatically generated. Do not rely on the old _dosmapperr() function. Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ.
* bpo-37936: Avoid ignoring files that we actually do track. (GH-15451)Greg Price2019-09-092-3/+6
| | | | | | | | | | | | | | | | | | | | There were about 14 files that are actually in the repo but that are covered by the rules in .gitignore. Git itself takes no notice of what .gitignore says about files that it's already tracking... but the discrepancy can be confusing to a human that adds a new file unexpectedly covered by these rules, as well as to non-Git software that looks at .gitignore but doesn't implement this wrinkle in its semantics. (E.g., `rg`.) Several of these are from rules that apply more broadly than intended: for example, `Makefile` applies to `Doc/Makefile` and `Tools/freeze/test/Makefile`, whereas `/Makefile` means only the `Makefile` at the repo's root. And the `Modules/Setup` rule simply wasn't updated after 961d54c5c. https://bugs.python.org/issue37936
* bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (#13239)Zackery Spytz2019-09-093-16/+27
| | | | | | * bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations * Address review comments.
* bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls ↵Zackery Spytz2019-09-094-3/+9
| | | | | (GH-14462) If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition.
* bpo-38043: Use `bool` for boolean flags on is_normalized_quickcheck. (GH-15711)Greg Price2019-09-091-11/+11
|
* bpo-11953: Extend table of Windows WSA* error codes (GH-15004)Ngalim Siregar2019-09-092-1/+83
|
* bpo-15817: gdbinit: Document commands after defining them (GH-15021)Florian Bruhin2019-09-091-23/+23
| | | | | | | | | | | | | | | | The gdb manual[1] says the following for "document": The command commandname must already be defined. [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Define.html And indeed when trying to use the gdbinit file with gdb 8.3, I get: .../cpython/Misc/gdbinit:17: Error in sourced command file: Undefined command: "pyo". Try "help". Fix this by moving all documentation blocks after the define blocks. This was introduced in GH-6384.
* Fix assertions regarding magic methods function body that was not executed ↵Xtreak2019-09-091-9/+2
| | | | (GH-14154)
* bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)Serhiy Storchaka2019-09-094-0/+52
| | | | RuntimeError is now raised in this case.
* Revert "Raise a RuntimeError when tee iterator is consumed from different ↵Serhiy Storchaka2019-09-093-12/+1
| | | | | threads (GH-15567)" (GH-15736) This reverts commit fa220ec7633e9674baccc28dde987f29d7f65141.
* bpo-36018: Address more reviewer feedback (GH-15733)Raymond Hettinger2019-09-083-39/+69
|
* bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)HongWeipeng2019-09-084-3/+12
| | | | This is a complement to PR 13375.
* Correct Roman-numeral example in Unicode HOWTO. (GH-15541)Greg Price2019-09-081-6/+6
|
* bpo-38038: Remove urllib.parse._splittype from xmlrpc.client. (GH-15703)Dong-hee Na2019-09-081-6/+5
|
* Remove some unused defines in multiprocessing.h. (GH-15661)Sergey Fedoseev2019-09-071-10/+0
| | | | | It looks like they are unused since 87cf220972c9cb400ddcd577962883dcc5dca51a.
* bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)Joannah Nanjekye2019-09-071-1/+3
|
* bpo-38041: Refine IDLE Shell restart lines. (GH-15709)Terry Jan Reedy2019-09-064-3/+44
| | | Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
* bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702)Joannah Nanjekye2019-09-065-22/+9
| | | | | Remove PyGen_NeedsFinalizing(): it was not documented, tested or used anywhere within CPython after the implementation of PEP 442.
* More refinements to the statistics docs (GH-15713)Raymond Hettinger2019-09-061-27/+33
|
* replace inline function `is_small_int` with a macro version (GH-15710)animalize2019-09-062-15/+10
|
* bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705)Victor Stinner2019-09-051-1/+5
| | | | If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed.
* bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)Joannah Nanjekye2019-09-057-14/+18
| | | | | | | * Rename PyThreadState_DeleteCurrent() to _PyThreadState_DeleteCurrent() * Move it to the internal C API Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700)Miro Hrončok2019-09-052-2/+3
| | | https://bugs.python.org/issue36797
* bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548)PatrikKopkan2019-09-053-5/+99
| | | Add flag -k to pathscript.py script: preserve shebang flags.
* Correct minor gramatical mistake in sys.settrace doc (GH-15637)Andre Delfino2019-09-051-1/+2
|
* bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615)Jon Janzen2019-09-055-324/+31
| | | | * Remove implementation for old plistlib API deprecated in 3.4
* bpo-36324: Apply review comment from Jake Vanderplas (GH-15695)Raymond Hettinger2019-09-051-2/+2
|
* bpo-36324: Apply review comments from Allen Downey (GH-15693)Raymond Hettinger2019-09-053-85/+83
|
* bpo-38026: fix inspect.getattr_static (GH-15676)Inada Naoki2019-09-052-2/+4
| | | | | It should avoid dynamic lookup including `isinstance`. This is a regression caused by GH-5351.
* bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368)GeeTransit2019-09-057-21/+78
| | | | Modify the wheel event handler so it can also be used for module, path, and stack browsers. Patch by George Zhang.
* bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs ↵Dong-hee Na2019-09-054-2/+13
| | | | | (GH-15522) https://bugs.python.org/issue22347