- 09 Sep, 2019 31 commits
-
-
Zeth authored
The Rot-13 codec is for educational use but does not have unit tests, dragging down test coverage. This adds a few very simple tests.
-
Mario Corchero authored
Update the docs as patch can now return an AsyncMock if the patched object is an async function.
-
Greg Price authored
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
-
Alan Yee authored
Constants added by the site module like exit() "should not be used in programs"
-
Jon Janzen authored
* 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)
-
Pablo Galindo authored
-
Naitree Zhu authored
* bpo-34596: Fallback to a default reason when @unittest.skip is uncalled * Change default reason to empty string * Fix rst formatting of NEWS entry
-
Vinay Sajip authored
-
animalize authored
-
Steve Dower authored
-
Mickaël Schoentgen authored
* 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().
-
Ashwin Vishnu authored
-
neonene authored
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.
-
T. Wouters authored
The missing dependencies prevented incremental builds from working when you touched any of these files. Based on GH-14758 by @vemakereporter.
-
Steve Dower authored
bpo-37283: Ensure command-line and unattend.xml setting override previously detected states in Windows installer (GH-15759)
-
Benjamin Peterson authored
-
David Röthlisberger authored
-
Xtreak authored
-
Julien Palard authored
-
Anthony Sottile authored
-
Daniel Hahler authored
Authored-By: blueyed <github@thequod.de>
-
Zackery Spytz authored
winerror_to_errno() is no longer automatically generated. Do not rely on the old _dosmapperr() function. Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ.
-
Greg Price authored
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 961d54c5. https://bugs.python.org/issue37936
-
Zackery Spytz authored
* bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations * Address review comments.
-
Zackery Spytz authored
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.
-
Greg Price authored
-
Ngalim Siregar authored
-
Florian Bruhin authored
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.
-
Xtreak authored
-
Serhiy Storchaka authored
RuntimeError is now raised in this case.
-
Serhiy Storchaka authored
Revert "Raise a RuntimeError when tee iterator is consumed from different threads (GH-15567)" (GH-15736) This reverts commit fa220ec7.
-
- 08 Sep, 2019 4 commits
-
-
Raymond Hettinger authored
-
HongWeipeng authored
This is a complement to PR 13375.
-
Greg Price authored
-
Dong-hee Na authored
-
- 07 Sep, 2019 2 commits
-
-
Sergey Fedoseev authored
It looks like they are unused since 87cf2209.
-
Joannah Nanjekye authored
-
- 06 Sep, 2019 3 commits
-
-
Terry Jan Reedy authored
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.
-
Joannah Nanjekye authored
Remove PyGen_NeedsFinalizing(): it was not documented, tested or used anywhere within CPython after the implementation of PEP 442.
-
Raymond Hettinger authored
-