Commits

Author Commit Message Labels Comments Date
bitdancer
#6771: fix docs: curses.wrapper is exposed as a function, not a module Patch by July Tikhonov.
Branches
2.7
bitdancer
merge #11584: make Header and make_header handle binary unknown-8bit input
bitdancer
#11584: make Header and make_header handle binary unknown-8bit input Analogous to the decode_header fix, this fix makes Header.append and make_header correctly handle the unknown-8bit charset introduced by email5.1, when the input to them is binary strings. Previous to this fix the make_header(decode_header(x)) == x invariant was broken in the face of the unknown-8bit charset.
Branches
3.2
bitdancer
merge #11584: make decode_header handle Header objects correctly This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug incorrectly.
bitdancer
#11584: make decode_header handle Header objects correctly This updates b21fdfa0019c, which fixed this bug incorrectly.
Branches
3.2
bitdancer
#11781: update windows build script to account for move of email tests
bitdancer
merge #11700: proxy object close methods can now be called multiple times
bitdancer
#11700: proxy object close methods can now be called multiple times This makes them work like the close provided by regular file objects.
Branches
3.2
bitdancer
#11700: proxy object close methods can now be called multiple times This makes them work like the close provided by regular file objects. This patch also backports the close-the-underlying-file code for _ProxyFile objects that was introduced along with context manager support in the 3.x branch.
Branches
2.7
Benjamin Peterson
edit and rewrite
Éric Araujo
Make decorators used in packaging preserve docstrings
Éric Araujo
Brange merge
Éric Araujo
Brange merge
Éric Araujo
Minor tweaks to packaging tests. - Move a tearDown method right after setUp - Use assertRaises instead of reinventing it - Skip a test instead of commenting it out, as a reminder
Éric Araujo
Packaging tests: don’t let an internal cache grow indefinitely. Victor Stinner diagnosed on #12167 that some reference leaks came from util._path_created, a set used for caching; there are two tests that cause additions to this set, so now they clear it in tearDown, avoiding 17 refleaks. (My tests show that it’s necessary to clear the set in only one test, clearing it in both does not stop more refleaks, but there’s no harm in doing it.)
Éric Araujo
Minor tweaks in packaging’s test_dist. - Use different Metadata objects to write and read a PKG-INFO (METADATA) file, to make sure the tested values come from the file - No need to restore methods on an instance after monkey-patching them: the methods are still the same on the class - Harmonize dedent calls
Éric Araujo
Remove unused code in packaging.pypi.dist
Éric Araujo
Stop binding sys.path as default parameter value in packaging. The two public functions in database default to sys.path if the given *paths* argument is None; the private functions don’t have default values for their arguments anymore, which is fine as the public functions that call them pass their arguments down. Likewise in install, the functions will pass down their *paths* arguments down to database functions. A one-line unneeded function in install was…
Éric Araujo
Packaging: remove last mentions and uses of setup.py in the code. Now only the compatibility layer (in create, util and install) talk about setup.py.
Éric Araujo
Clean up packaging.tests.test_mixin2to3
bitdancer
merge #11767: use context manager to close file in __getitem__ to prevent FD leak
bitdancer
#11767: use context manager to close file in __getitem__ to prevent FD leak All of the other methods in mailbox that create message objects take care to close the file descriptors they use, so it seems to make sense to have __getitem__ do so as well. Patch by Filip Gruszczyński.
Branches
3.2
bitdancer
#12313: update Makefile.pre.in to account for email tests moving to 'test' dir
Victor Stinner
(Merge 3.2) posixmodule.c: fix function name in argument parsing Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
Victor Stinner
posixmodule.c: fix function name in argument parsing Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
Branches
3.2
Victor Stinner
(Merge 3.2) Issue #10883: test_urllib2net closes socket explicitly
Victor Stinner
Issue #10883: test_urllib2net closes socket explicitly
Branches
3.2
Victor Stinner
Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
Branches
2.7
Victor Stinner
(Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.request AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
Victor Stinner
Issue #12133: fix a ResourceWarning in urllib.request AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
Branches
3.2
  1. Prev
  2. Next