summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12383: skip test_empty_env() of subprocess on WindowsVictor Stinner2011-06-221-0/+4
| | | | | Cannot test an empty environment on Windows: Windows requires at least the SYSTEMROOT environment variable to start Python.
* Issue #12383: fix test_empty_env() of subprocess on Mac OS XVictor Stinner2011-06-221-2/+6
| | | | | | Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix also the test on the Py_ENABLE_SHARED config varible: test that the variable is present, don't check it's value.
* Issue #12383: skip test_empty_env() if compiled is compiled in shared modeVictor Stinner2011-06-211-2/+5
| | | | | Try also to get more informations about the Mac OS X failure: display the keys of the environment, instead of just the number of variables.
* Close #12383: Fix subprocess module with env={}: don't copy the environmentVictor Stinner2011-06-212-8/+17
| | | | variables, start with an empty environment.
* Issue #12285: multiprocessing.Pool() raises a ValueError if the number ofVictor Stinner2011-06-202-0/+5
| | | | processes if negative or null.
* fix uglyNamingConventionBenjamin Peterson2011-06-191-7/+7
|
* #11584: make Header and make_header handle binary unknown-8bit inputR David Murray2011-06-182-1/+19
| | | | | | | | 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.
* #11584: make decode_header handle Header objects correctlyR David Murray2011-06-182-4/+5
| | | | This updates b21fdfa0019c, which fixed this bug incorrectly.
* #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-182-5/+22
| | | | This makes them work like the close provided by regular file objects.
* #11767: use context manager to close file in __getitem__ to prevent FD leakR David Murray2011-06-172-2/+35
| | | | | | | | 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.
* Issue #10883: test_urllib2net closes socket explicitlyVictor Stinner2011-06-171-0/+8
|
* Issue #12133: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-172-0/+5
| | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
* Issue #12310: finalize the old process after _run_after_forkers()Victor Stinner2011-06-171-2/+8
| | | | | | | | | multiprocessing: Process._bootstrap() keeps a reference to the old process to delay its finalization until after _run_after_forkers() as been executed. This change should fix a crash on Mac OS X Tiger when a lock is released after a fork. Patch written by Charles-François Nataliv and Antoine Pitrou.
* branch merge?Brian Curtin2011-06-1312-61/+186
|\
| * allow "fake" filenames in findsource (closes #9284)Benjamin Peterson2011-06-112-2/+23
| | | | | | | | | | | | This allows findsource() to work in doctests. A patch from Dirkjan Ochtman.
| * merge 3.1 (#12009)Benjamin Peterson2011-06-102-44/+99
| |\
| | * fix regression in netrc comment handling (closes #12009)Benjamin Peterson2011-06-102-44/+99
| | |
| | * Issue #10801: Fix test_unicode_filenames() of test_zipfileVictor Stinner2011-06-101-1/+2
| | | | | | | | | | | | | | | | | | Just try to open files from the ZIP for reading, don't extract them to avoid UnicodeEncodeError if the filename is not encodable to the filesystem encoding (e.g. ASCII locale encoding).
| | * update pydoc-topicsv3.1.4rc1Benjamin Peterson2011-05-291-3/+3
| | |
| | * bump to 3.1.4rc1Benjamin Peterson2011-05-292-2/+2
| | |
| | * Branch mergeÉric Araujo2011-05-291-6/+10
| | |\
| * | | #10694: zipfile now ignores garbage at the end of a zipfile.R David Murray2011-06-092-10/+26
| | | | | | | | | | | | | | | | Original fix by 'rep', final patch (with tests) by Xuanji Li.
| * | | #12283: Fixed regression in smtplib quoting of leading dots in DATA.R David Murray2011-06-092-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | I unfortunately introduced the regression when I refactored the code, and there were no tests of quoting so it wasn't caught. Now there is one.
| * | | Issue #12168: SysLogHandler now allows NUL termination to be controlled ↵Vinay Sajip2011-06-091-1/+5
| | | | | | | | | | | | | | | | using a new 'append_nul' attribute on the handler.
| * | | Correction to 88e318166eaf - Issue #11583Brian Curtin2011-06-091-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | Rather than wrapping the C _isdir function in a Python function, just import the C _isdir function directly. Additionally, add in the docstring which was left out.
| * | | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat.Brian Curtin2011-06-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time.
| * | | #12274: use proper escaping for % in IDLE config.Łukasz Langa2011-06-071-2/+2
| | | |
| * | | test.support: can_symlink() removes the temporary symbolic linkVictor Stinner2011-06-071-1/+4
| | | |
* | | | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.Brian Curtin2011-06-132-1/+46
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
* | | Branch mergeÉric Araujo2011-06-062-0/+0
|\ \ \
| * | | Remove unneeded executable bit on two distutils filesÉric Araujo2011-06-042-0/+0
| | | |
* | | | Issue #12016: Add test_errorhandle() to TestBase_Mapping ofVictor Stinner2011-06-031-3/+33
|/ / / | | | | | | | | | | | | test_multibytecodec_support. Improve also error message of the test_errorhandle() of TestBase.
* | | Fix named tuples to work with vars().Raymond Hettinger2011-06-032-1/+3
| | |
* | | Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the fileVictor Stinner2011-06-012-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. Add also requires_mac_ver() decorator to test.support.
* | | Close #12085: Fix an attribute error in subprocess.Popen destructor if theVictor Stinner2011-05-312-1/+14
| | | | | | | | | | | | | | | constructor has failed, e.g. because of an undeclared keyword argument. Patch written by Oleg Oshmyan.
* | | Issue #12057: Add tests for ISO 2022 codecsVictor Stinner2011-05-306-1/+77
| | | | | | | | | | | | iso2022_jp, iso2022_jp_2 and iso2022_kr
* | | Branch mergeÉric Araujo2011-05-291-6/+10
|\ \ \
| * \ \ Merge doc touch-ups and fixes for #9831 and #9223 from 3.1Éric Araujo2011-05-281-6/+10
| |\ \ \ | | | |/ | | |/|
| | * | Fix test_build_py when sys.dont_write_bytecode is true (#9831).Éric Araujo2011-05-281-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests now pass all combinations of -O/-OO and -B. See also #7071 and #6292 for previous variations on the same theme. test_versionpredicate needs a skip when sys.flags.optimize is true, but I don’t know how to make that work with a DocTestSuite.
* | | | Fix ProcessTestCasePOSIXPurePython to test the module from import whenGregory P. Smith2011-05-281-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _posixsubprocess doesn't exist rather than simply stubbing it out after the fact. This adds coverage for the RuntimeWarning as well as using the pure python _create_pipe instead of using _posixsubprocess.cloexec_pipe unintentionally with the pure python code. Ironically: I don't think any platform should ever actually _use_ the pure Python subprocess code on POSIX platforms anymore. This at least tests it properly in this stable branch. The pure python code for this is likely to be removed in 3.3.
* | | | Issue #985064: Make plistlib more resilient to faulty input plists.Ned Deily2011-05-282-22/+63
|\ \ \ \ | | |_|/ | |/| | | | | | Patch by Mher Movsisyan.
| * | | Issue #985064: Make plistlib more resilient to faulty input plists.Ned Deily2011-05-282-22/+63
| | | | | | | | | | | | | | | | Patch by Mher Movsisyan.
* | | | Issue #9670: Increase the default stack size for secondary threads onNed Deily2011-05-281-0/+32
|\ \ \ \ | |/ / / | | / / | |/ / |/| | | | | Mac OS X and FreeBSD to reduce the chances of a crash instead of a "maximum recursion depth" RuntimeError exception. (patch by Ronald Oussoren)
| * | Issue #9670: Increase the default stack size for secondary threads onNed Deily2011-05-281-0/+31
| |/ | | | | | | | | | | Mac OS X and FreeBSD to reduce the chances of a crash instead of a "maximum recursion depth" RuntimeError exception. (patch by Ronald Oussoren)
| * Branch mergeÉric Araujo2011-05-262-2/+2
| |\
* | \ Branch mergeÉric Araujo2011-05-262-2/+2
|\ \ \
| * \ \ Merge 3.1Éric Araujo2011-05-252-2/+2
| |\ \ \ | | | |/ | | |/|
| | * | Branch mergeÉric Araujo2011-05-252-2/+2
| | |\ \
| | | * | Fix display of html.parser.HTMLParser.feed docstringÉric Araujo2011-05-041-1/+1
| | | | |
| | | * | Add missing name in pkgutil.__all__Éric Araujo2011-05-021-1/+1
| | | | |