summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [2.7] Clean up Travis config (GH-5727)Zachary Ware2018-02-181-13/+39
| | | (cherry picked from commit 7eb3f8226ea7b79dae4e4e8b05730cfe0d9af7c1)
* DOC: fix documentation for copyright and credits (GH-5706)Miss Islington (bot)2018-02-171-3/+7
| | | | | | | | Adapt documentation for `copyright` and `credits` to reality. Previously, the documentation implied that all each of `copyright`, `credits`, and `license`, would print a message to call the object in order to see the full text. In reality, only `license` exhibits this behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called. (cherry picked from commit 243d6d71265be1996a8326002deae429106a5fba) Co-authored-by: Gerrit Holl <gerrit.holl@gmail.com>
* Update comment in posixmodule.c (GH-5681)Miss Islington (bot)2018-02-141-1/+1
| | | | | | | | A closing parentheses was missing. Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com> (cherry picked from commit 7745ec4e356ac1f4eaf43b155f4482c20a907d48) Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
* Fix installation instructions for *nix (GH-5605)Miss Islington (bot)2018-02-141-2/+4
| | | | | | | Remove pkg_add -r python from FreeBSD installation section. Moved to OpenBSD. (cherry picked from commit 3384d38d51a2c3450e742175db5d6d638fa5d2eb) Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
* [2.7] remove mercurial dot files (GH-5558).Benjamin Peterson2018-02-143-325/+0
| | | (cherry picked from commit 2b86f4cb2cd339f545804a9abb8c4d4cc28d9488)
* bpo-30109: Fix reindent.py for non-ASCII files. (#5637)Serhiy Storchaka2018-02-123-12/+32
| | | | | It now processes files as binary streams. This also fixes "make reindent".
* Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5571)Miss Islington (bot)2018-02-121-1/+1
| | | | | | It now reads: ...be aware that Python has no control over... (cherry picked from commit 517da1e58f4c489d4b31579852cde5f7113da08e) Co-authored-by: Alexey <forestbiiird@gmail.com>
* Fix AppVeyor doc short-circuit (GH-5635)Miss Islington (bot)2018-02-111-1/+4
| | | (cherry picked from commit 6ea20fc719dcaf102d2cefa1786f0421514f7a58)
* [2.7] Add short-circuit for doc changes to AppVeyor (GH-5629)Zachary Ware2018-02-111-3/+19
| | | (cherry picked from commit 28607e0dd9417ce44a109980ffd60697c1afdea0)
* bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) (GH-5613)Miss Islington (bot)2018-02-112-1/+2
| | | | | | The new link is given in a red box on the old page. (cherry picked from commit 8d1f2f40389c476d9240ec87a33da0373597c6af) Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [2.7] bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5604)Serhiy Storchaka2018-02-094-1/+13
| | | | | Co-authored-by: Jake Davis <jcdavis@awedge.net>. (cherry picked from commit 2411292ba8155327125d8a1da8a4c9fa003d5909)
* bpo-32784: Wrong argument name for csv.DictReader in documentation (GH-5575)Stéphane Wirtel2018-02-071-5/+5
| | | | Use `f` as the name of the first parameter of `csv.DictReader` and `csv.DictWriter` classes.
* bpo-32616: Disable computed gotos by default for clang < 5 (GH-5574)INADA Naoki2018-02-072-2/+12
|
* allow the test suite to pass if the strop module doesn't exist (GH-5566)Benjamin Peterson2018-02-061-1/+2
| | | strop is highly legacy and can be safely compiled out in most installations. Let's not fail the test suite for its absence.
* Fix typo -- missing "not" (GH-5532)Raymond Hettinger2018-02-041-1/+1
|
* bpo-32739: Show default value for rotate() (GH-5517)Raymond Hettinger2018-02-031-3/+6
| | | Manual backport of GH-5485
* Update Doc build for split off of 3.7 branchNed Deily2018-02-032-2/+4
|
* bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5494)Mariatta2018-02-021-4/+3
| | | | | | | | Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module.. (cherry picked from commit 461d225b195eec5269f317323b41115516144c41) Co-authored-by: oldk <oldk1331@users.noreply.github.com>
* [2.7] bpo-32137: The repr of deeply nested dict now raises a RuntimeError ↵Serhiy Storchaka2018-02-027-10/+28
| | | | | | | | | (GH-4570) (#5493) instead of crashing due to a stack overflow. This perhaps will fix similar problems in other extension types. (cherry picked from commit 1fb72d2ad243c965d4432b4e93884064001a2607)
* bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (GH-2148) ↵Victor Stinner2018-01-291-1/+2
| | | | | | | | | (GH-5429) _test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a timeout of 1 second on Queue.get(), instead of 0.1 second, for slow buildbots. (cherry picked from commit 8f6eeaf21cdf4aea25fdefeec814a1ce07453fe9)
* bpo-32304: Fix distutils upload for tar files ending with b'\r' (GH-5264) ↵Bo Bayles2018-01-294-2/+33
| | | | | (GH-5331) Patch by Bo Bayles.
* Fix PyTrace_RETURN documentation (GH-5384) (GH-5387)Miss Islington (bot)2018-01-281-1/+1
| | | | It will be triggered when propagating an exception. (cherry picked from commit 79db11ce99332d62917be9d03b31494b1ff2f96a)
* bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation ↵Miss Islington (bot)2018-01-281-2/+2
| | | | | (GH-5361) (GH-5378) (cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
* [2.7] bpo-32521: nis libnsl (GH-5190) (#5353)Christian Heimes2018-01-272-18/+49
| | | | | | The nismodule is now compatible with new libnsl and headers location Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 29a7df78277447cf6b898dfa0b1b42f8da7abc0c)
* [2.7] bpo-32640: Clarify the behavior of str.join and unicode object (GH-5333)Mariatta2018-01-261-3/+4
| | | | | | | In str.join, if any of the iterable contains a Unicode object, str.join will return a Unicode object. A Type error will be raised if iterable contains values other than a string or Unicode object.
* bpo-32667: Fix tests when $PATH contains a file (#5324)Victor Stinner2018-01-251-1/+1
| | | | | test_subprocess.test_leaking_fds_on_error() failed when the PATH environment variable contains a path to an existing file. Fix the test: ignore also ENOTDIR, not only ENOENT and EACCES.
* bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile ↵Xiang Zhang2018-01-243-21/+41
| | | | | (GH-4056). (#5299) (cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
* bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. ↵Miss Islington (bot)2018-01-245-2/+10
| | | | | | | | (GH-5284) (#5295) glibc is deprecating libcrypt in favor of libxcrypt, however python assumes that crypt.h will always be included. This change makes the header inclusion explicit when libxcrypt is present on the system. (cherry picked from commit e768c86ef442ef89004089a8a34ce5909ffb90f2)
* bpo-32586: Fix code example in urllib2's doc (GH-5238)Pablo Galindo2018-01-191-1/+1
| | | It should be `urllib2.URLError` instead of just `URLError`.
* Use assertItemsEqual instead of assertEqual. (#5224)Gregory P. Smith2018-01-171-3/+3
| | | | This test doesn't care about order, the underlying filesystem APIs do not guarantee directory listings on subsequent calls will be in the same order.
* pythoninfo: add time.time and datetime.datetime.now (GH-5214) (#5220)Miss Islington (bot)2018-01-171-1/+13
| | | (cherry picked from commit 7d91c0250408e202243c77c1dc9afdb321b6b32f)
* bpo-32539: Fix OSError for os.listdir() for extended-length paths on Windows ↵Anthony Sottile2018-01-153-1/+53
| | | | | | | (#5169) See https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx?f=255&MSPPError=-2147217396#maxpath Paths that begin with `\\?\` are "extended-length paths".
* bpo-32521: nis libtirpc (GH-5137) (#5166)Miss Islington (bot)2018-01-122-5/+14
| | | | | | | glibc has removed Sun RPC. Use replacement libtirpc headers and library in nis module Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit f3031b8a7ad71d3b6ed05da7f3041d9efbe773cf)
* Fix version in AppVeyor config (GH-5126)Zachary Ware2018-01-071-1/+1
|
* [2.7] Kill the AppVeyor file whitelist (GH-5123)Zachary Ware2018-01-071-17/+0
| | | | It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed. (cherry picked from commit 7f7de371f947dc38e67505601927e9bc58fa268a)
* [2.7] advance copyright years to 2018 (GH-5094). (#5105)Benjamin Peterson2018-01-058-11/+11
| | | (cherry picked from commit 65f2a6dcc2bc28a8566b74c8e9273f982331ec48)
* [2.7] bpo-32211: Document the existing bug in re.findall() and ↵Serhiy Storchaka2018-01-041-4/+10
| | | | | re.finditer(). (GH-4695). (#5096) (cherry picked from commit 1e6d8525f9dd3dcdc83adb93b164082c8b95d17a)
* bpo-32482: Improve syntax and grammar tests. (#5085)Serhiy Storchaka2018-01-043-177/+397
|
* coalesce GILless sections in new_buffersize (#5059)Benjamin Peterson2018-01-021-5/+6
| | | 830daae1c82ed33deef0086b7b6323e5be0b0cc8 added some new GIL-releasing to new_buffersize. This is fine, but it's better to avoid reacquiring the GIL for as long as possible. Also, it should use FILE_(BEGIN|END)_ALLOW_THREADS to avoid having the file closed from under it.
* bpo-31530: fix crash when multiple threads iterate over a file, round 2 (#5060)Benjamin Peterson2018-01-023-70/+78
| | | | | | | | | | | | | | | Multiple threads iterating over a file can corrupt the file's internal readahead buffer resulting in crashes. To fix this, cache buffer state thread-locally for the duration of a file_iternext call and only update the file's internal state after reading completes. No attempt is made to define or provide "reasonable" semantics for iterating over a file on multiple threads. (Non-crashing) races are still present. Duplicated, corrupt, and missing data will happen. This was originally fixed by 6401e5671781eb217ee1afb4603cc0d1b0367ae6, which raised an exception from seek() and next() when concurrent operations were detected. Alas, this simpler solution breaks legitimate use cases such as capturing the standard streams when multiple threads are logging.
* bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5082)Miss Islington (bot)2018-01-021-3/+3
| | | | Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (GH-5079) (cherry picked from commit f190eb59e60e2ae7a7cbd396458389a7a076e0d3)
* [2.7] bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. ↵Serhiy Storchaka2018-01-021-0/+74
| | | | | (GH-5078). (#5084) (cherry picked from commit 7cc42c356b0dc5ad9eaa9392789e84bd4aa1c7de)
* bpo-32416: Add two new tests in test_sys_settrace. (GH-5072) (#5074)Miss Islington (bot)2018-01-011-8/+30
| | | | Move other test to more proper place. (cherry picked from commit e8ed96550c6aa9a1e39c36e67e892994e25e2c41)
* [2.7] Add missing backslashes in PCbuild bat files (GH-5056) (GH-5058)Zachary Ware2017-12-311-3/+3
| | | (cherry picked from commit fe90efdc07ec70fd4ff28eac179448a41379cff1)
* bpo-18035: telnetlib: select.error doesn't have an errno attribute (#5044)Segev Finer2017-12-292-2/+4
| | | | select.error doesn't have an errno attribute so access the errno by indexing instead.
* [2.7] remove unused import (GH-5040). (#5043)Benjamin Peterson2017-12-291-1/+0
| | | (cherry picked from commit e325608740bee161ca7fefd09463d63099efa1b8)
* make PatternCompiler use the packaged grammar if possible (more bpo-24960) ↵Miss Islington (bot)2017-12-291-7/+7
| | | | | (GH-5034) (#5037) (cherry picked from commit e5f7dccefaa8d97ab53b3051acbb4a4d49379dc4)
* [2.7] bpo-32416: Refactor tests for the f_lineno setter and add new tests. ↵Serhiy Storchaka2017-12-271-235/+395
| | | | | (GH-4991). (#5017) (cherry picked from commit 53f9135667226f33e049e327db60fb033afbd77a)
* correct wording (GH-4983) (#4985)Miss Islington (bot)2017-12-231-1/+1
| | | (cherry picked from commit d11e8e0d11c759cd0f96aebb59de914e4d62b8cd)
* [2.7] bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar ↵Benjamin Peterson2017-12-225-2/+45
| | | | | | | | | files (GH-4977) (#4980) This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist.. (cherry picked from commit 8a5877165e993afb2633cd48da5222326d3f6e0e)