Florent Xicluna
edf5f0ddc0
Strengthen BytesWarning tests.
2010-09-03 20:00:37 +00:00
Florent Xicluna
764d612f5e
Remove redundant context manager.
2010-09-03 19:55:26 +00:00
Florent Xicluna
43e4ea1b17
Remove unused import, fix typo and rewrap docstrings.
2010-09-03 19:54:02 +00:00
Florent Xicluna
7dde792e62
Use a context manager for some file objects.
2010-09-03 19:52:03 +00:00
Antoine Pitrou
24e561ae04
Issue #3805 : clean up implementation of the _read method in _ssl.c.
2010-09-03 18:38:17 +00:00
Barry Warsaw
35f3a2cbeb
PEP 3149 is accepted.
...
http://mail.python.org/pipermail/python-dev/2010-September/103408.html
2010-09-03 18:30:30 +00:00
Daniel Stutzbach
06a3c8ae82
fromfd exists on Windows now
2010-09-03 11:11:43 +00:00
Raymond Hettinger
faf7b7f4ec
Issue 8420: Fix obscure set crashers.
2010-09-03 10:00:50 +00:00
Fred Drake
8844441ae6
fix output from RawConfigParser.write and ConfigParser.write for None
...
values (http://bugs.python.org/issue7005 )
(merged r84443 from the release27-mmaint branch, with changes to reflect
changes in Python 3)
2010-09-03 04:22:36 +00:00
Raymond Hettinger
af1e140334
Readability nit.
2010-09-02 19:58:35 +00:00
Raymond Hettinger
7babc1b6a5
Better method name. Tighten inner-loop with bound methods.
2010-09-02 19:56:28 +00:00
Raymond Hettinger
331722d411
Make OrderedDict.popitem() a bit smarter and faster
2010-09-02 18:44:16 +00:00
Daniel Stutzbach
045b3ba184
Issue #9212 : Added the missing isdisjoint method to the dict_keys and
...
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Raymond Hettinger
38d17e3df0
Speed-up cache updates
2010-09-02 09:44:28 +00:00
Antoine Pitrou
e0793ba992
Issue #9737 : Fix a crash when trying to delete a slice or an item from
...
a memoryview object.
2010-09-01 21:14:16 +00:00
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
...
frombytes() and tobytes(), respectively, to avoid confusion. Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects. Patch by Thomas Jollans.
2010-09-01 20:29:34 +00:00
Antoine Pitrou
fce7fd6426
Issue #9549 : sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
...
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Benjamin Peterson
49203dc9f2
reformat comment
2010-08-31 20:10:55 +00:00
Daniel Stutzbach
19d6a4fd49
Issue #808164 : Fixed socket.close to avoid references to globals, to
...
avoid issues when socket.close is called from a __del__ method.
2010-08-31 20:08:07 +00:00
Daniel Stutzbach
061b14a4a1
Reverted r84315 and r84316, with Benjamin's blessing. The tests were
...
fine. They were failing due to a problem exposed in r84307 and fixed
in r84317. See Issue 8781 for details.
2010-08-31 15:45:04 +00:00
Vinay Sajip
dc5097ff07
Removed _unicode variable which is always False in Python 3.x.
2010-08-31 07:52:17 +00:00
Vinay Sajip
ec1cd1c475
logging: merged duplicated code in fileConfig and dictConfig paths.
2010-08-30 19:02:14 +00:00
Vinay Sajip
609364a989
Logging: removed some old commented out code.
2010-08-30 18:31:13 +00:00
Giampaolo Rodolà
8b7da623ce
Fix issue #9711 : raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile.
2010-08-30 18:28:05 +00:00
Vinay Sajip
40d9a4e854
Improved logging.Formatter date/time formatting documentation.
2010-08-30 18:10:03 +00:00
Benjamin Peterson
33856de84d
handle names starting with non-ascii characters correctly #9712
2010-08-30 14:41:20 +00:00
Florent Xicluna
e01de8f2f3
remove pointless coding cookies
2010-08-30 14:05:50 +00:00
Benjamin Peterson
e992a7da01
remove pointless coding cookie
2010-08-30 13:57:28 +00:00
Giampaolo Rodolà
4a656ebe05
dedent some lines in test_ssl so that they are actually executed
2010-08-29 22:50:39 +00:00
Giampaolo Rodolà
cd9dfb919a
in ssl tests rely on IOError.errno rather thanf IOError.strerror for better compatibility across platforms.
2010-08-29 20:56:56 +00:00
Giampaolo Rodolà
745ab3807e
Fix issue issue9706: provides a better error handling for various SSL operations
2010-08-29 19:25:49 +00:00
Giampaolo Rodolà
374f835316
Raise ValuError if non-zero flag argument is provided for sendall() method for conformity with send(), recv() and recv_into()
2010-08-29 12:08:09 +00:00
Antoine Pitrou
1a9a9d5433
Issue #1868 : Eliminate subtle timing issues in thread-local objects by
...
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Mark Dickinson
64a38c0eb5
Issue #1512791 : In setframerate method of Wave_write, round non-integral
...
inputs to the nearest integer. Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Brett Cannon
a7ceeb335f
OSError is the exception raised when one tries to create a directory that
...
already exists, not IOError.
Part of the continuing saga of issue #9572 .
2010-08-26 21:07:13 +00:00
Senthil Kumaran
4bb5c273c6
Fix Issue8797 - Reset the basic auth retry count when response code is not 401.
2010-08-26 06:16:22 +00:00
Benjamin Peterson
0e10206f2c
basicsize and itemsize are Py_ssize_t #9688
2010-08-25 23:13:17 +00:00
Benjamin Peterson
6505ee8453
apparently this test should be gated, too
2010-08-25 17:57:04 +00:00
Benjamin Peterson
b35f646796
this test is only valid when sizeof(wchar) == Py_UNICODE_SIZE
2010-08-25 17:02:22 +00:00
Victor Stinner
ef6ff662c9
Fix test_sys: set LC_ALL instead of LANG
...
LC_ALL is read before LANG to choose the locale encoding (LC_ALL, LANG and then
LC_CTYPE: use the first non empty variable).
2010-08-25 08:33:34 +00:00
Martin v. Löwis
112c0f3411
Issue #1027206 : getnameinfo is now restricted to numeric addresses as input.
2010-08-25 07:38:15 +00:00
R. David Murray
219d1c8ae3
#1194222 : make parsedate always return RFC2822 four character years.
...
Two character years are now converted to four character years using
the Posix standard rule (<68 == 2000, >=68==1900). This makes the
parsed date RFC2822 compliant even if the input is not.
Patch and test by Jeffrey Finkelstein.
2010-08-25 00:45:55 +00:00
Victor Stinner
1970b62aee
Disable test_undecodable_code() of test_sys on Windows
...
This test is irrevelant on Windows
2010-08-25 00:20:27 +00:00
Victor Stinner
ebe53a23c9
Fix test_sys for FreeBSD, Solaris and Mac OS X
...
_Py_char2wchar() (mbctowcs) decodes b'\xff' to '\xff' on FreeBSD, Solaris and
Mac OS X, even if the locale is C (and the locale encoding is ASCII). Patch
test_undecodable_code() to support this output and document the two different
kinds of outputs.
2010-08-24 23:05:51 +00:00
Benjamin Peterson
16925e8539
remove parens
2010-08-24 21:30:14 +00:00
Brett Cannon
1d6569cfb9
Fix a bug where an attribute was lacking an object to work off of.
...
Related to the fix for issue #9572 . Thanks to Łukasz Czuja for catching the
bug.
2010-08-24 21:04:05 +00:00
Daniel Stutzbach
31da5b2f69
Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x
2010-08-24 20:49:57 +00:00
Benjamin Peterson
17689991e6
only catch AttributeError in hasattr() #9666
2010-08-24 03:26:23 +00:00
Giampaolo Rodolà
9cf5ef4cc0
fix issue 9129: adds proper error handling on accept() when smtpd accepts new incoming connections.
2010-08-23 22:28:13 +00:00
Giampaolo Rodolà
bbc4782d77
fix issue 9601: ftplib now provides a workaround for invalid response code returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
2010-08-23 22:10:32 +00:00