Commit Graph

5372 Commits

Author SHA1 Message Date
Victor Stinner
47f637ce17 getpath.c: fix test to detech PyUnicode_AsWideChar() failure
PyUnicode_AsWideChar() result is signed, whereas it was stored in a unsigned
variable, and then the test was "n >= 0" which is always true to an unsigned
number. Patch written by Hallvard B Furuseth.
2010-11-10 14:12:20 +00:00
Antoine Pitrou
fb0469112f Issue #10022: The dictionary returned by the getpeercert() method
of SSL sockets now has additional items such as `issuer` and `notBefore`.
2010-11-09 20:21:19 +00:00
Senthil Kumaran
922e904cca Fix issue10324 - Modules/binascii.c: simplify expressions 2010-11-09 09:59:13 +00:00
Victor Stinner
4fe519bf8d Issue #10359: Remove useless (duplicate) initialization in _csv 2010-11-09 09:40:16 +00:00
Victor Stinner
132ef6cca3 Issue #10359: Remove useless comma, invalid in ISO C 2010-11-09 09:39:41 +00:00
Victor Stinner
9f0b51e4e3 Issue #10359: Use Py_UNICODE for the typecode in array
And don't create non constant array, invalid in ISO C.
2010-11-09 09:38:30 +00:00
Victor Stinner
3e2b7171bf Issue #10359: Remove ";" after function definition, invalid in ISO C 2010-11-09 09:32:19 +00:00
Victor Stinner
ae4836df6d Issue #6011: decode PREFIX, EXEC_PREFIX and PYTHONPATH variables using
_Py_char2wchar(), instead of L"" VAR hack, to escape undecodable bytes using
the surrogateescape error handler.
2010-11-08 23:49:47 +00:00
Victor Stinner
2f02a51135 PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails
* Add error_pos optional argument to _Py_wchar2char()
 * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if
   _Py_wchar2char() fails
2010-11-08 22:43:46 +00:00
Antoine Pitrou
243757eb79 Issue #10180: Pickling file objects is now explicitly forbidden, since
unpickling them produced nonsensical results.
2010-11-05 21:15:39 +00:00
Antoine Pitrou
39a6591507 Issue #10311: The signal module now restores errno before returning from
its low-level signal handler.  Patch by Hallvard B Furuseth.
2010-11-05 19:47:27 +00:00
Hirokazu Yamamoto
09fff7a8d1 Fixed socket_gethostname() on windows. 2010-11-05 17:24:13 +00:00
Antoine Pitrou
b5d8204f0f Issue #10279: fix test_gc under Win64. 2010-11-05 00:05:25 +00:00
Antoine Pitrou
2397dd58b7 Issue #10314: improve performance of JSON encoding with sort_keys=True 2010-11-04 16:51:32 +00:00
Hirokazu Yamamoto
3cdd5cb959 Issue #5391: mmap.read_byte() should return unsigned value [0, 255]
instead of signed value [-127, 128].
2010-11-04 12:09:08 +00:00
Senthil Kumaran
95c0700eff Fix Issue 10307 - compile error in readline.c 2010-11-04 03:51:05 +00:00
Antoine Pitrou
87298c4a23 No declarations in the middle of a block (fixes compile under Windows) 2010-10-31 21:03:01 +00:00
Antoine Pitrou
e974571d36 Issue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou. 2010-10-31 15:26:04 +00:00
Benjamin Peterson
bbb0412ad1 if FileIO.__init__ fails, close fd 2010-10-30 23:16:28 +00:00
Benjamin Peterson
430d469758 fix style 2010-10-30 23:13:57 +00:00
Antoine Pitrou
8d2b51b46a Issue #10253: FileIO leaks a file descriptor when trying to open a file
for append that isn't seekable.  Patch by Brian Brazil.
2010-10-30 16:19:14 +00:00
Benjamin Peterson
e857b29fdd plug refleak 2010-10-29 21:37:26 +00:00
Martin v. Löwis
72f48422e2 Issue #9377: Use Unicode API for gethostname on Windows. 2010-10-29 18:20:08 +00:00
Antoine Pitrou
e033e06db0 Issue #10093: ResourceWarnings are now issued when files and sockets are
deallocated without explicit closing.  These warnings are silenced by
default, except in pydebug mode.
2010-10-29 10:38:18 +00:00
Antoine Pitrou
b156a46b26 Issue #8852: Allow the socket module to build on OpenSolaris. 2010-10-27 20:13:57 +00:00