Benjamin Peterson
ae10b3201c
merge 3.2 ( #12009 )
2011-06-10 12:30:16 -05:00
Benjamin Peterson
9aa68e4b32
merge 3.1 ( #12009 )
2011-06-10 12:29:40 -05:00
Benjamin Peterson
1df0f214a9
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
Victor Stinner
ff9b5c76ab
null merge 3.2 (patch already applied to 3.3)
2011-06-10 16:38:38 +02:00
Victor Stinner
a13660807e
null merge 3.1 (patch already applied to 3.2)
2011-06-10 16:37:41 +02:00
Victor Stinner
e6eafa2ade
Issue #10801 : Fix test_unicode_filenames() of test_zipfile
...
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).
2011-06-10 16:32:54 +02:00
Victor Stinner
7f294d1e19
Issue #8407 : skip sigwait() tests if pthread_sigmask() is missing
...
The new tests now requires pthread_sigmask(). Skip the test if the function is
missing, e.g. if Python is compiled without threads.
2011-06-10 14:02:10 +02:00
Victor Stinner
3a38a6db43
test_platform: ignore DeprecationWarning on popen() test
2011-06-10 13:59:59 +02:00
Victor Stinner
46591664fa
Issue #8407 : write error message on sigwait test failure
2011-06-10 13:53:32 +02:00
Victor Stinner
af4946020e
Issue #8407 : Make signal.sigwait() tests more reliable
...
Block the signal before calling sigwait(). Use os.fork() to ensure that we have
only one thread.
Initial patch written by Charles-François Natali.
2011-06-10 12:48:13 +02:00
Ross Lagerwall
b0ae53d8a0
Issue #9344 : Add os.getgrouplist().
2011-06-10 07:30:30 +02:00
Victor Stinner
10c30d6764
Issue #8407 : signal.sigwait() releases the GIL
...
Initial patch by Charles-François Natali.
2011-06-10 01:39:53 +02:00
Brian Curtin
589f89e2ad
Removed a Windows 9x trick used before LoadLibraryExW.
...
Windows 9x has long been unsupported and the result of GetFullPathName
was not even being used in the first place.
2011-06-09 17:55:54 -05:00
R David Murray
51fcb811e3
Merge #10694 : zipfile now ignores garbage at the end of a zipfile.
2011-06-09 15:52:31 -04:00
R David Murray
4fbb9dbd34
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 15:50:51 -04:00
R David Murray
0a9f16b627
merge #12283 : Fixed regression in smtplib quoting of leading dots in DATA.
2011-06-09 15:21:02 -04:00
R David Murray
0f663d07e6
#12283 : Fixed regression in smtplib quoting of leading dots in DATA.
...
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.
2011-06-09 15:05:57 -04:00
Vinay Sajip
bf353aadf2
Merged upstream changes.
2011-06-09 18:43:11 +01:00
Vinay Sajip
ae5740f139
Made time formats in Formatter more configurable.
2011-06-09 18:42:19 +01:00
R David Murray
f97c59aaba
#10424 : argument names are now included in the missing argument message
...
Fix and initial test patch by Michele Orrù.
2011-06-09 12:34:07 -04:00
Vinay Sajip
8dd8d582e3
Merged fix for issue #12168 from 3.2.
2011-06-09 16:55:23 +01:00
Vinay Sajip
8168d10ea6
Issue #12168 : SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler.
2011-06-09 16:50:49 +01:00
Brian Curtin
d9463b233c
Merge 3.2
2011-06-09 09:46:21 -05:00
Éric Araujo
577a6af8e6
Merge doc fixes from 3.2
2011-06-09 16:28:19 +02:00
Brian Curtin
95d028fd18
Correction to 88e318166eaf - Issue #11583
...
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.
2011-06-09 09:10:38 -05:00
Éric Araujo
f5949b5e47
The change done for #10645 deserves a NEWS entry
2011-06-09 14:10:07 +02:00
Éric Araujo
e00a6703e8
Branch merge
2011-06-09 14:07:46 +02:00
Éric Araujo
e6792c1e77
Stop creating a Python-X.Y.Z-pyX.Y.egg-info file on install ( #10645 )
2011-06-09 14:07:02 +02:00
Éric Araujo
ebc991c0ce
Branch merge
2011-06-09 13:13:24 +02:00
Éric Araujo
c7f9f2bfc7
Document how to define extension modules in setup.cfg
2011-06-09 08:18:17 +02:00
Éric Araujo
a462a80722
Fix incorrect nesting of sections in setup.cfg specification
2011-06-09 08:15:47 +02:00
Éric Araujo
0a975f957d
Fix example in packaging test_config.
...
The example C extension used the “three.fast_taunt” name, but no “three” parent
was defined in the setup.cfg. This did not cause a failure nor even print a
warning, we may want to change that.
2011-06-09 07:47:25 +02:00
Brian Curtin
9a82eaade3
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
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.
2011-06-08 18:43:57 -05:00
Brian Curtin
9c669ccc77
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
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.
2011-06-08 18:17:18 -05:00
Charles-François Natali
4dd453c6aa
Issue #12021 : Make mmap's read() method argument optional. Patch by Petri
...
Lehtinen.
2011-06-08 19:18:14 +02:00
Antoine Pitrou
dd69649660
Issue #9205 : concurrent.futures.ProcessPoolExecutor now detects killed
...
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
2011-06-08 17:21:55 +02:00
Éric Araujo
d2f8cec885
Fix a few misuses of :option: I missed in r86521.
...
Extract of the commit message:
Fix usage of :option: in the docs (#9312 ).
:option: is used to create a link to an option of python, not to mark
up any instance of any arbitrary command-line option. These were
changed to ````.
2011-06-08 05:29:39 +02:00
Brett Cannon
4a5e5de03f
Revert a reversed comparison order introduced in r70695.
2011-06-07 20:09:32 -07:00
Éric Araujo
96deb7550e
Add links from builtins module docs to built-in functions and constants docs
2011-06-08 04:53:20 +02:00
Éric Araujo
df8ef02488
Style change in packaging: use “not in” over “not x in”.
...
Such tests are IMO easier to read if both operators are grouped.
2011-06-08 04:47:13 +02:00
Éric Araujo
46bdcf7d4b
Packaging: always use repr to display project names.
...
This helps debugging in case of trailing blanks and such things.
2011-06-08 04:40:13 +02:00
Éric Araujo
ea888e038b
Fix misunderstanding of how booleans work
2011-06-08 04:31:18 +02:00
Éric Araujo
3cab2f150c
Packaging cleanup: normalize print calls.
...
Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.
2011-06-08 04:10:57 +02:00
Éric Araujo
04fc999c05
Packaging cleanup: remove use of script_name where obsolete
2011-06-08 04:06:50 +02:00
Éric Araujo
b805c47138
Add examples that work on Windows to distutils docs ( #1626300 )
2011-06-08 01:11:36 +02:00
Éric Araujo
b8f2ad0380
Remove outdated bit of advice (584f9c213a6d follow-up)
2011-06-08 00:47:49 +02:00
Éric Araujo
ef3062f7af
Kill dead code in importlib.test.__main__ ( #12019 , reviewed by Brett Cannon)
2011-06-07 17:58:50 +02:00
Éric Araujo
313570a185
Branch merge: packaging fixes
2011-06-07 17:31:39 +02:00
Łukasz Langa
1752468d39
#12274 : use proper escaping for % in IDLE config (merged from 3.2).
2011-06-07 15:20:51 +02:00
Łukasz Langa
41c1910bb3
#12274 : use proper escaping for % in IDLE config.
2011-06-07 15:19:44 +02:00