Commit Graph

45586 Commits

Author SHA1 Message Date
Victor Stinner ff45fedf61 Issue #11377: Fix quoting on Windows in test_platform 2011-03-03 14:07:21 +00:00
Giampaolo Rodolà 1bc75c6cee Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send(). 2011-03-03 13:57:47 +00:00
Victor Stinner 1dfd380306 Issue #11377: Deprecate platform.popen() and reimplement it with os.popen(). 2011-03-03 12:54:07 +00:00
Victor Stinner 7b3b20ad29 Issue #8513: On UNIX, subprocess supports bytes command string. 2011-03-03 12:54:05 +00:00
Nick Coghlan 8370bb9528 Update compiler recursion crasher to more reliably blow the stack and add a tracker issue for it 2011-03-03 11:08:33 +00:00
Fred Drake 446230664b issue 11372: use range instead of xrange 2011-03-03 05:27:17 +00:00
Benjamin Peterson 863a0c3f53 add tests for xml.pulldom #9373
Thanks to Mark Smith for the patch.
2011-03-02 23:40:36 +00:00
Daniel Stutzbach 8eda5f7cd9 #11335: Fix memory leak when a sort key function throws an exception 2011-03-02 23:37:50 +00:00
Victor Stinner 2f283c2c19 Fix my previous commit (r88709) for str.encode(errors=...) 2011-03-02 01:21:46 +00:00
Victor Stinner a5c68c3cb7 Issue #8923: cache str.encode() result
When a string is encoded to UTF-8 in strict mode, the result is cached into the
object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String()
and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
2011-03-02 01:03:14 +00:00
Victor Stinner f3fd733f92 Remove useless argument of _PyUnicode_AsDefaultEncodedString() 2011-03-02 01:03:11 +00:00
Éric Araujo 6f58b6b504 Remove last use of distutils.sysconfig from the stdlib (#11364).
Apart from distutils itself, the stdlib has now officially switched to
the new top-level sysconfig module.  Patch greenlighted by Ned Deily.
2011-03-02 00:31:51 +00:00
Antoine Pitrou ec78522424 assertEquals is deprecated 2011-03-02 00:15:44 +00:00
Victor Stinner 0fbe22655b Issue #10831: Document the new formats (%li, %lli, %zi) 2011-03-02 00:10:34 +00:00
Victor Stinner 6d970f4713 Issue #10831: PyUnicode_FromFormat() supports %li, %lli and %zi formats 2011-03-02 00:04:25 +00:00
Victor Stinner e7faec1aa9 Fix my previous commit (r88702): initialize size_tflag in parse_format_flags() 2011-03-02 00:01:53 +00:00
Victor Stinner 968654515f Issue #10829: Refactor PyUnicode_FromFormat()
* Use the same function to parse the format string in the 3 steps
 * Fix crashs on invalid format strings
2011-03-01 23:44:09 +00:00
Victor Stinner 096f1a85f0 Issue #10911: Add tests on CGI with non-ASCII characters
Patch written by Pierre Quentel
2011-03-01 23:08:36 +00:00
Antoine Pitrou 819c40ff35 Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
2011-03-01 23:05:42 +00:00
Victor Stinner 2512a8b62e Issue #11246: Fix PyUnicode_FromFormat("%V")
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
2011-03-01 22:46:52 +00:00
Éric Araujo c613b6bce1 Remove outdated pointer to optparse (fixes #11360).
The doc already points to argparse.
2011-03-01 18:26:56 +00:00
Antoine Pitrou 4605a00207 Endly, fix UnboundLocalError in telnetlib 2011-03-01 00:41:10 +00:00
Antoine Pitrou f06576dc2b Recommend inspecting the errno attribute of socket.error objects,
and improve wording.
2011-02-28 22:38:07 +00:00
Antoine Pitrou 061cfb5258 Issue #10866: Add socket.sethostname(). Initial patch by Ross Lagerwall. 2011-02-28 22:25:22 +00:00
Antoine Pitrou 8d0f257211 Add credit for r88682. 2011-02-28 22:06:48 +00:00
Antoine Pitrou d6d17c58af No need to put this at top 2011-02-28 22:04:51 +00:00
Antoine Pitrou fcf81fd031 Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
2011-02-28 22:03:34 +00:00
Giampaolo Rodolà cfbcec3823 Issue 11348: skip os.setpriority() test if current nice level is >= 19. 2011-02-28 19:27:16 +00:00
Giampaolo Rodolà 396ff06051 Fix issue 8594: adds a source_address parameter to ftplib module. 2011-02-28 19:19:51 +00:00
Antoine Pitrou 8a14a0c88b Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows 2011-02-27 15:44:12 +00:00
Benjamin Peterson d0f89f3247 make this a link #11345 2011-02-27 15:06:44 +00:00
Antoine Pitrou e93bf7aed2 Issue #11326: Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
2011-02-26 23:24:06 +00:00
Benjamin Peterson 2e7965e8b0 Merged revisions 88661 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r88661 | benjamin.peterson | 2011-02-26 16:06:24 -0600 (Sat, 26 Feb 2011) | 6 lines

  fix refactoring on formfeed characters #11250

  This is because text.splitlines() is not the same as
  list(StringIO.StringIO(text)).
........
2011-02-26 22:12:10 +00:00
Benjamin Peterson d8a43b4a4b revert accidental formatting change 2011-02-26 21:35:16 +00:00
Benjamin Peterson c6696d272f this isn't true anymore 2011-02-26 21:32:16 +00:00
Antoine Pitrou 2de51ff4e1 Make sendfile tests more robust 2011-02-26 17:52:50 +00:00
Vinay Sajip 399fc14609 Issue #11330: Updated tests for correct asctime handling. 2011-02-26 16:06:02 +00:00
Vinay Sajip 4a7f2168a6 Issue #11330: Added regression test. 2011-02-26 16:00:04 +00:00
Antoine Pitrou d20a5f6161 Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
2011-02-26 15:58:05 +00:00
Éric Araujo 8ed41a8e5c Replace links to the old dev doc with links to the new devguide. 2011-02-26 14:57:23 +00:00
Antoine Pitrou 18dd0df5af Issue #11323: fix sendfile tests under 64-bit Solaris. 2011-02-26 14:29:24 +00:00
Vinay Sajip f368895780 Removed typo. 2011-02-26 14:28:36 +00:00
Vinay Sajip 553de0ee7c Issue #11331: fixed documentation in logging cookbook. 2011-02-26 14:24:29 +00:00
Vinay Sajip 859c7fac78 Issue #11330: asctime format bug fixed. 2011-02-26 14:15:48 +00:00
Antoine Pitrou dcc20b8563 Check error return from _parse_off_t(), and remove cruft from the 2->3 transition. 2011-02-26 13:38:35 +00:00
Antoine Pitrou 09c530dfc8 Revert r88639 (the optimization changes behaviour and breaks buildbots) 2011-02-26 09:37:45 +00:00
Antoine Pitrou ffa1a77c67 Issue #11258: Speed up ctypes.util.find_library() under Linux a lot. Patch
by Jonas H.
2011-02-26 08:45:20 +00:00
Vinay Sajip ec5a2d5e89 test_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than local time. 2011-02-26 07:18:22 +00:00
Raymond Hettinger d032131dcb Add __bool__ method. Add tests. Fix-up broken test. 2011-02-26 06:53:58 +00:00
Vinay Sajip cb8b94447c test_logging: diagnostic code changes. 2011-02-26 06:37:04 +00:00