summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)Oz N Tiram2017-06-062-36/+108
| | | Several class attributes have been added to calendar.HTMLCalendar that allow customization of the CSS classes used in the resulting HTML. This can be done by subclasses HTMLCalendar and overwriting those class attributes (Patch by Oz Tiram).
* bpo-30557: faulthandler now correctly filters and displays exception codes ↵Steve Dower2017-06-051-0/+26
| | | | | | | | | | on Windows (#1924) * bpo-30557: faulthandler now correctly filters and displays exception codes on Windows * Adds test for non-fatal exceptions. * Adds bpo number to comment.
* Simplify code in warnings modules (#1935)Alex Gaynor2017-06-041-3/+7
| | | Metaprogramming a list of attributes was excessive, and made the code less readable and slower.
* fix comment (#1798)leodema2017-06-041-1/+1
|
* Fix bpo-30526: Add TextIOWrapper.reconfigure() and a ↵Antoine Pitrou2017-06-032-1/+73
| | | | | | | | | | TextIOWrapper.write_through attribute (#1922) * Fix bpo-30526: Add TextIOWrapper.reconfigure() * Apply Nick's improved wording * Update Misc/NEWS
* Fix skipping test_UNC_path on AppVeyor due to a different error being raised ↵Segev Finer2017-06-021-1/+1
| | | | | | (#1920) We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to ENOENT (2).
* bpo-30245: Fix possible overflow when organize struct.pack_into error ↵Johan Liu2017-06-021-0/+10
| | | | message (#1682)
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-012-7/+40
| | | | (#1676)
* bpo-25324: copy tok_name before changing it (#1608)Albert-Jan Nijburg2017-05-313-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | * add test to check if were modifying token * copy list so import tokenize doesnt have side effects on token * shorten line * add tokenize tokens to token.h to get them to show up in token * move ERRORTOKEN back to its previous location, and fix nitpick * copy comments from token.h automatically * fix whitespace and make more pythonic * change to fix comments from @haypo * update token.rst and Misc/NEWS * change wording * some more wording changes
* subprocess test_empty_env typo fix. (#1877)Gregory P. Smith2017-05-301-3/+3
|
* bpo-12383: Refactor subprocess test_empty_env (#1874)Gregory P. Smith2017-05-301-12/+20
| | | | | | | | | | | | Bugfix: This test wasn't being run because it was skipping based on the presence of Py_ENABLE_SHARED rather than its value. It is always present on POSIX systems but defaults to 0. Refactoring: Move the environment variables that can be ignored into a function. Parse the list from the child process and filter out the ones to exclude in the parent before checking that the rest is empty. Feature: Adds always present environment variables to ignore when running in a Gentoo sandbox so that the test can pass there.
* bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)Gregory P. Smith2017-05-293-10/+32
| | | | Instead use keyword only arguments to os.register_at_fork for each of the scenarios. Updates the documentation for clarity.
* bpo-16500: Use register_at_fork() in the threading module (#1843)Antoine Pitrou2017-05-281-4/+9
| | | | | | * bpo-16500: Use register_at_fork() in the threading module * Update comment at top of _after_fork()
* bpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names (#1839)csabella2017-05-283-42/+62
| | | | | Patch by Cheryl Sabella.
* Doc nits for bpo-16500 (#1841)Antoine Pitrou2017-05-281-2/+2
| | | | | | * Doc nits for bpo-16500 * Fix more references
* IDLE test_help_about: edit and add test. (#1838)terryjreedy2017-05-281-47/+75
| | | Coverage is now 100%
* bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)csabella2017-05-272-95/+119
| | | Patch by Cheryl Sabella.
* bpo-16500: Allow registering at-fork handlers (#1715)Antoine Pitrou2017-05-275-8/+64
| | | | | | | | | | | | * bpo-16500: Allow registering at-fork handlers * Address Serhiy's comments * Add doc for new C API * Add doc for new Python-facing function * Add NEWS entry + doc nit
* bpo-30310: Add a test for non-ascii font family. (#1567) (#1832)Serhiy Storchaka2017-05-271-1/+11
|
* bpo-30398: Add a docstring for re.error. (#1647)Serhiy Storchaka2017-05-271-0/+11
| | | Also document that some attributes may be None.
* bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc ↵grzgrzgrz32017-05-252-12/+24
| | | | | | | | | | | | | | | | | | (#1683) * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored.
* bpo-29104: Fixed parsing backslashes in f-strings. (#490)Serhiy Storchaka2017-05-251-0/+14
|
* bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)Eric Snow2017-05-251-43/+42
|
* bpo-29851: Have importlib.reload() raise ImportError if the module's spec is ↵Garvit Khatri2017-05-242-2/+14
| | | | not found (GH-972)
* bpo-30445: Allow appended output in RecursionError messagecodedragon2017-05-241-1/+2
| | | | | Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable. Patched by Maria Mckinley
* bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767)Kushal Das2017-05-241-0/+1
|
* bpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)Albert-Jan Nijburg2017-05-242-12/+12
|
* bpo-28707: Add the directory parameter to ↵Stéphane Wirtel2017-05-242-3/+19
| | | | | | | | http.server.SimpleHTTPRequestHandler and http.server module (#1776) * bpo-28707: call the constructor of SimpleHTTPRequestHandler in the test with a mock object * bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module
* bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700)Joel Hillacre2017-05-241-0/+1
|
* Revert "Fixed a typo in the HTMLParser.feed docstrings" (#1771)Serhiy Storchaka2017-05-241-1/+1
| | | | | * Revert "Fixed a typo in the HTMLParser.feed docstrings. The docstring started with an 'r', like a The docstring was correct. I read the patch in opposite direction, as *adding* the "r" prefix. This reverts commit 5ba185039f1bd465d3f82531324fd3fe1ee42f0c.
* Revert an invalid change to a test (from 6b4be19). (#1770)Eric Snow2017-05-231-4/+4
|
* Improves test_underpth_nosite_file to reveal why it fails. (#1763)Steve Dower2017-05-231-6/+10
| | | | | | | | | | | | | | * Improves test_underpth_nosite_file to reveal why it fails. * Enable building with Windows 10 SDK. * Fix WinSDK detection * Fix initialization on Windows when a ._pth file exists. * Fix tabs * Adds comment about Py_GetPath call.
* bpo-29335 - apply suggested test_subprocess simplifications from haypo and ↵Gregory P. Smith2017-05-231-9/+5
| | | | | Zach: (#1757) use faulthandler._sigsegv() and ctypes.util.find_library('c')
* Fixed a typo in the HTMLParser.feed docstrings. The docstring started with ↵Jani Šumak2017-05-231-1/+1
| | | | an 'r', like a rawstring. (#1759)
* call remove_done_callback in finally section (#1688)jimmylai2017-05-231-1/+2
|
* bpo-30432: FileInput doesn't accept PathLike objects for file names (#1732)Roy Williams2017-05-232-0/+17
| | | | | | | | | | * Allow FileInput to accept a single PathLike object as a parameter for `files` Fixes bpo-30432: FileInput doesn't accept PathLike objects for file names * Address comments from @ambv
* bpo-22257: Small changes for PEP 432. (#1728)Eric Snow2017-05-234-9/+36
| | | PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
* bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717)Thomas Kluyver2017-05-232-3/+24
| | | | | | | | | Some objects (like test mocks) auto-generate new objects on attribute access, which can lead to an infinite loop in inspect.unwrap(). Ensuring references are retained to otherwise temporary objects and capping the size of the memo dict turns this case into a conventional exception instead.
* bpo-29102: Add a unique ID to PyInterpreterState. (#1639)Eric Snow2017-05-231-5/+86
|
* bpo-23894: make lib2to3 recognize f-strings (#1733)Łukasz Langa2017-05-222-1/+7
| | | | | | | Note: this doesn't unpack f-strings into the underlying JoinedStr AST. Ideally we'd fully implement JoinedStr here but given its additional complexity, I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings.
* Make rb'' strings work in lib2to3 (#1724)Łukasz Langa2017-05-222-7/+37
| | | This partially solves bpo-23894.
* Fix spelling mistakes in tkinter.py (#1716)Vijay Kumar2017-05-221-6/+6
| | | Ran the docstrings through spell checker, and fixed spelling issues.
* bpo-30003: Fix handling escape characters in HZ codec (#1556)Xiang Zhang2017-05-221-0/+4
|
* bpo-30290: IDLE: Add more tests for help_about dialog (#1697)mlouielu2017-05-212-28/+99
| | | Increases coverage to 99%
* bpo-30415: Add new tests for the fnmatch module. (#1684)Serhiy Storchaka2017-05-211-9/+55
|
* #30014: refactor poll-related classes (#1035)Giampaolo Rodola2017-05-201-132/+84
| | | | | | | | | | | | | | | | * #30014: refactor poll-related classes so that poll(), epoll() and devpoll() share the same methods for register(), unregister(), close() and select() * remove unused attribute * use specific class attributes instead of select.* constants * have all classes except SelectSelector a _selector attribute * BaseException -> Exception * be explicit in defining a close() method only for selectors which have it * fix AttributeError
* bpo-27945: Fixed various segfaults with dict. (#1657)Serhiy Storchaka2017-05-201-0/+85
| | | | Based on patches by Duane Griffin and Tim Mitchell.
* bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)Serhiy Storchaka2017-05-201-0/+27
| | | | Based on patch by Eryk Sun.
* Fix typos in multiple `.rst` files (#1668)delirious-lettuce2017-05-191-1/+1
|
* Remove duplicate line in Lib/http/client.py (#1665)remitamine2017-05-191-1/+0
|