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
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
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
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
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
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
ebc991c0ce
Branch merge
2011-06-09 13:13:24 +02: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
É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
É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
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
Łukasz Langa
41c1910bb3
#12274 : use proper escaping for % in IDLE config.
2011-06-07 15:19:44 +02:00
Victor Stinner
62ec61fb6a
test.support: can_symlink() removes the temporary symbolic link
2011-06-07 12:17:15 +02:00
Éric Araujo
5b52f95797
Branch merge
2011-06-06 17:11:47 +02:00
Martin v. Löwis
b8c60130f1
null merge
2011-06-05 19:43:03 +02:00
Martin v. Löwis
63660ce214
merge:Do not add txt files twice
2011-06-05 19:42:21 +02:00
Martin v. Löwis
721bb33e3b
Add 3.1.4 UUIDs.
2011-06-05 10:56:44 +02:00
Martin v. Löwis
4c226dac02
Do not add txt files twice.
2011-06-05 10:55:57 +02:00
Éric Araujo
70798be6f6
Remove unneeded executable bit on two distutils files
2011-06-04 20:47:26 +02:00
Éric Araujo
fa088dbd0c
Improve glossary entry for ABCs.
...
- Rename reST target name for collections ABCs to avoid collisions
- Add link to importlib ABCs (collections, numbers and io ABCs were already
linked)
- Link to glossary entry from numbers module doc (other modules already do it)
2011-06-04 18:42:38 +02:00
Victor Stinner
f5048a4075
Issue #12016 : Add test_errorhandle() to TestBase_Mapping of
...
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:44:39 +02:00
Victor Stinner
5dfe3bb2d9
Issue #12016 : Reindent decoders of HK and JP codecs
2011-06-03 23:34:09 +02:00
Éric Araujo
07e58c3389
Remove link that’s already present at the top of the file
2011-06-03 20:43:42 +02:00
Éric Araujo
98e68adc7e
Document working dir for “make html” ( #12249 ). Patch by Tshepang Lekhonkhobe.
2011-06-03 19:25:58 +02:00
Raymond Hettinger
3d89057ff8
Fix named tuples to work with vars().
2011-06-02 23:40:24 -07:00
Raymond Hettinger
9028928156
Forward port doc updates for builtin functions.
2011-06-01 16:17:23 -07:00
Éric Araujo
affcf2967f
Branch merge
2011-06-01 19:39:27 +02:00
Victor Stinner
88701e27e9
Close #12230 : Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
...
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.
2011-06-01 13:13:04 +02:00
Benjamin Peterson
fdb2d909a4
merge 3.1
2011-05-31 21:38:49 -05:00
Benjamin Peterson
52e61449e3
return NULL on error
2011-05-31 21:38:15 -05:00
Benjamin Peterson
5c2b09e856
be extra careful with a borrowed reference when the GIL could be released ( closes #8578 )
2011-05-31 21:31:37 -05:00
Benjamin Peterson
2e3a38a774
demote this to a note
2011-05-31 21:27:41 -05:00
Benjamin Peterson
0aa71f7982
merge 3.1 ( #12221 )
2011-05-31 19:06:17 -05:00
Benjamin Peterson
a22c98de85
simply use the Python version for pyexpat.__version__ #12221
2011-05-31 18:59:49 -05:00
Victor Stinner
87b9bc3893
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 00:57:47 +02:00
Ralf Schmitt
069456267e
disable ASDLGEN if hg won't work, or if python is not installed.
...
This change makes configure check for
- the existence of a hg repository
- the hg executable itself
- the python executable
Running $(srcdir)/Parser/asdl_c.py (i.e. ASDLGEN) will fail if any of
the above prerequisites is missing, so we now disable it instead.
closes #12225
2011-05-31 17:10:03 -05:00
R David Murray
ac4e5abc78
#12147 : make send_message correctly handle Sender and Resent- headers.
...
Original patch by Nicolas Estibals. My tweaks to the patch were mostly
style/cosmetic, and adding more tests.
2011-07-02 21:03:19 -04:00
Vinay Sajip
623e8b86af
Removed some unused local variables.
2011-07-02 17:21:37 +01:00
Vinay Sajip
5bdae3bb7c
Closes #12291 : Fixed bug which was found when doing multiple loads from one stream.
2011-07-02 16:42:47 +01:00
Éric Araujo
5864b9fd3c
Fix markup: arguments in a class directive are __init__ arguments, not base classes
2011-05-31 21:50:38 +02:00
Éric Araujo
9bcf8bfb24
Fix error message to use the Python name instead of the C name
2011-05-31 14:08:26 +02:00
Victor Stinner
ee49797c8d
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:01:24 +02:00
Victor Stinner
19c5233303
Issue #1195 : fix the issue number of the NEWS entry
2011-05-30 23:50:04 +02:00
Victor Stinner
4f71101eed
Issue #12016 : my_fgets() now always clears errors before calling fgets(). Fix
...
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
2011-05-30 23:46:00 +02:00
Benjamin Peterson
76450a96ef
merge 3.1
2011-05-29 16:43:52 -05:00
Benjamin Peterson
bb11bb0dbb
Added tag v3.1.4rc1 for changeset 32fcb9e94985
2011-05-29 16:10:15 -05:00
Benjamin Peterson
5f250fbafe
update pydoc-topics
2011-05-29 16:09:08 -05:00