]> granicus.if.org Git - python/log
python
14 years agoFix order.
Florent Xicluna [Sat, 14 Aug 2010 17:02:49 +0000 (17:02 +0000)]
Fix order.

14 years ago_Py_stat(): ensure that path ends with a nul character
Victor Stinner [Sat, 14 Aug 2010 16:59:08 +0000 (16:59 +0000)]
_Py_stat(): ensure that path ends with a nul character

14 years agoList Misc/python-config.in in Misc/README. Fix few typos.
Florent Xicluna [Sat, 14 Aug 2010 16:56:27 +0000 (16:56 +0000)]
List Misc/python-config.in in Misc/README.  Fix few typos.

14 years agofix issue #8857: provide a test case for socket.getaddrinfo
Giampaolo Rodolà [Sat, 14 Aug 2010 16:45:41 +0000 (16:45 +0000)]
fix issue #8857: provide a test case for socket.getaddrinfo

14 years agoThere doesn't seem to be a reason for this test to be disabled.
Antoine Pitrou [Sat, 14 Aug 2010 16:33:38 +0000 (16:33 +0000)]
There doesn't seem to be a reason for this test to be disabled.

14 years agoThis is a better resolution than r84021 (because it will also affect
Antoine Pitrou [Sat, 14 Aug 2010 16:32:10 +0000 (16:32 +0000)]
This is a better resolution than r84021 (because it will also affect
ssl.get_server_certificate()).

14 years agoAdd a reasonable timeout to network SSL tests, so as to avoid buildbot timeouts
Antoine Pitrou [Sat, 14 Aug 2010 16:24:38 +0000 (16:24 +0000)]
Add a reasonable timeout to network SSL tests, so as to avoid buildbot timeouts
when the remote server doesn't answer.

14 years agoFix format.
Georg Brandl [Sat, 14 Aug 2010 15:57:20 +0000 (15:57 +0000)]
Fix format.

14 years agoMerged manually from 2.7 branch to 3.x trunk.
Florent Xicluna [Sat, 14 Aug 2010 15:56:42 +0000 (15:56 +0000)]
Merged manually from 2.7 branch to 3.x trunk.

  ------------------------------------------------------------------------
  r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010)

  Try to turn some buildbots green by allowing test_multiprocessing to
  pass even if it hits the sys.exc_clear code in the threading module, and
  improve the test coverage by making the ctypes dependencies a bit more
  granular (two of the cited ctypes objects don't exist on my system)
  ------------------------------------------------------------------------

14 years agoTypo fix.
Georg Brandl [Sat, 14 Aug 2010 15:48:49 +0000 (15:48 +0000)]
Typo fix.

14 years agoTypo fix.
Georg Brandl [Sat, 14 Aug 2010 15:46:59 +0000 (15:46 +0000)]
Typo fix.

14 years agoWording fix.
Georg Brandl [Sat, 14 Aug 2010 15:46:15 +0000 (15:46 +0000)]
Wording fix.

14 years agoAdd some maintainers.
Georg Brandl [Sat, 14 Aug 2010 15:44:34 +0000 (15:44 +0000)]
Add some maintainers.

14 years agoIssue #9425: zipimporter_init() is fully unicode compliant
Victor Stinner [Sat, 14 Aug 2010 14:54:10 +0000 (14:54 +0000)]
Issue #9425: zipimporter_init() is fully unicode compliant

14 years agoIssue #9425: Create private _Py_stat() function
Victor Stinner [Sat, 14 Aug 2010 14:50:26 +0000 (14:50 +0000)]
Issue #9425: Create private _Py_stat() function

Use stat() or _wstat() depending on the OS.

14 years agoThere are no *.doc files anymore. Also update "funny" target.
Georg Brandl [Sat, 14 Aug 2010 13:43:37 +0000 (13:43 +0000)]
There are no *.doc files anymore. Also update "funny" target.

14 years agoFix indentation in Modules/getpath.c
Antoine Pitrou [Sat, 14 Aug 2010 12:34:41 +0000 (12:34 +0000)]
Fix indentation in Modules/getpath.c

14 years agoAdd comments about Windows in Modules/getpath.c
Antoine Pitrou [Sat, 14 Aug 2010 12:33:18 +0000 (12:33 +0000)]
Add comments about Windows in Modules/getpath.c

14 years agoAdd myself to threads topic (suggested by Ezio)
Antoine Pitrou [Sat, 14 Aug 2010 12:06:40 +0000 (12:06 +0000)]
Add myself to threads topic (suggested by Ezio)

14 years agoAdd myself for the bug tracker (and for re).
Ezio Melotti [Sat, 14 Aug 2010 09:02:36 +0000 (09:02 +0000)]
Add myself for the bug tracker (and for re).

14 years agoRevert r82831 as discussed at EP now that the wording of maintainers.rst has been...
Ezio Melotti [Sat, 14 Aug 2010 08:54:33 +0000 (08:54 +0000)]
Revert r82831 as discussed at EP now that the wording of maintainers.rst has been clarified.

14 years agoOops, fix typo
Éric Araujo [Sat, 14 Aug 2010 05:00:18 +0000 (05:00 +0000)]
Oops, fix typo

14 years agoLet's commit
Éric Araujo [Sat, 14 Aug 2010 04:56:48 +0000 (04:56 +0000)]
Let's commit

14 years agoFix reference (follow-up to #9061)
Éric Araujo [Sat, 14 Aug 2010 04:55:45 +0000 (04:55 +0000)]
Fix reference (follow-up to #9061)

14 years agoManually merge r83995: Fix version{added,changed} and spacing in NEWS
Éric Araujo [Sat, 14 Aug 2010 03:59:54 +0000 (03:59 +0000)]
Manually merge r83995: Fix version{added,changed} and spacing in NEWS

14 years agoUse a marker in generated MANIFEST files, don't touch files without it. Fixes #8688.
Éric Araujo [Sat, 14 Aug 2010 02:30:34 +0000 (02:30 +0000)]
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688.

14 years agoKill a gcc warning introduced by r83988
Victor Stinner [Sat, 14 Aug 2010 00:07:14 +0000 (00:07 +0000)]
Kill a gcc warning introduced by r83988

14 years agoIssue #9542: Create PyUnicode_FSDecoder() function
Victor Stinner [Fri, 13 Aug 2010 23:59:58 +0000 (23:59 +0000)]
Issue #9542: Create PyUnicode_FSDecoder() function

It's a ParseTuple converter: decode bytes objects to unicode using
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.

 * Don't specify surrogateescape error handler in the comments nor the
   documentation, but PyUnicode_DecodeFSDefaultAndSize() and
   PyUnicode_EncodeFSDefault() because these functions use strict error handler
   for the mbcs encoding (on Windows).
 * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
   inconsistency with unicodeobject.h.

14 years agoCreate _Py_wchar2char() function, reverse of _Py_char2wchar()
Victor Stinner [Fri, 13 Aug 2010 23:29:08 +0000 (23:29 +0000)]
Create _Py_wchar2char() function, reverse of _Py_char2wchar()

 * Use _Py_wchar2char() in _wstat() and _Py_wfopen()
 * Document _Py_char2wchar()

14 years agoReimplement addbuilddir() in C inside getpath.c, so as to execute it
Antoine Pitrou [Fri, 13 Aug 2010 22:25:01 +0000 (22:25 +0000)]
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
at interpreter startup before importing any non-builtin modules.
Should fix #9589.

14 years agoFix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE
Victor Stinner [Fri, 13 Aug 2010 22:23:24 +0000 (22:23 +0000)]
Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE

14 years agoIssue #9203: Computed gotos are now enabled by default on supported
Antoine Pitrou [Fri, 13 Aug 2010 21:15:58 +0000 (21:15 +0000)]
Issue #9203: Computed gotos are now enabled by default on supported
compilers (which are detected by the configure script).  They can still
be disable selectively by specifying --without-computed-gotos.

14 years agoFix #9588. Add sys.executable to two shell=True tests.
Brian Curtin [Fri, 13 Aug 2010 20:42:57 +0000 (20:42 +0000)]
Fix #9588. Add sys.executable to two shell=True tests.

14 years agoPer request, make 'nosy' vs 'assign' explicit in maintainers.rst.
R. David Murray [Fri, 13 Aug 2010 18:16:35 +0000 (18:16 +0000)]
Per request, make 'nosy' vs 'assign' explicit in maintainers.rst.

Also add myself as assignable for email issues.

14 years agoIssue #9560: Use -b option of the file command in _syscmd_file()
Victor Stinner [Fri, 13 Aug 2010 16:30:15 +0000 (16:30 +0000)]
Issue #9560: Use -b option of the file command in _syscmd_file()

Omit the filename to avoid enconding issues, especially with non encodable
characters in the Python full path.

14 years agoReapply r83877.
Antoine Pitrou [Fri, 13 Aug 2010 16:27:38 +0000 (16:27 +0000)]
Reapply r83877.

14 years agoRe-apply r83871.
Antoine Pitrou [Fri, 13 Aug 2010 16:26:40 +0000 (16:26 +0000)]
Re-apply r83871.

14 years agoDe-duplicate contents of pytime.h
Antoine Pitrou [Fri, 13 Aug 2010 15:25:56 +0000 (15:25 +0000)]
De-duplicate contents of pytime.h

14 years agoFix copy-paste error.
Georg Brandl [Fri, 13 Aug 2010 15:10:49 +0000 (15:10 +0000)]
Fix copy-paste error.

14 years agoIssue #9425: Create PyErr_WarnFormat() function
Victor Stinner [Fri, 13 Aug 2010 14:03:48 +0000 (14:03 +0000)]
Issue #9425: Create PyErr_WarnFormat() function

Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.

Strip also some trailing spaces.

14 years agoOops, I did it again: add missing \ removed in previous commit
Victor Stinner [Fri, 13 Aug 2010 13:47:18 +0000 (13:47 +0000)]
Oops, I did it again: add missing \ removed in previous commit

14 years agoOops, create TESTFN_UNENCODEABLE from TEST_FN, not TESTFN_UNICODE
Victor Stinner [Fri, 13 Aug 2010 13:45:00 +0000 (13:45 +0000)]
Oops, create TESTFN_UNENCODEABLE from TEST_FN, not TESTFN_UNICODE

test_imp fails on Linux with C locale because TESTFN_UNICODE is not encodable
to ascii.

14 years agoIssue #9425: PyFile_FromFd() ignores the name argument
Victor Stinner [Fri, 13 Aug 2010 13:34:52 +0000 (13:34 +0000)]
Issue #9425: PyFile_FromFd() ignores the name argument

This function is only by imp.find_module() which does return the filename in a
separated variable.

14 years agoIssue #9425: NullImporter constructor is fully unicode compliant
Victor Stinner [Fri, 13 Aug 2010 13:07:29 +0000 (13:07 +0000)]
Issue #9425: NullImporter constructor is fully unicode compliant

 * On non-Windows OSes: the constructor accepts bytes filenames
   and use surrogateescape for unicode filenames
 * On Windows: use GetFileAttributesW() instead of GetFileAttributesA()

14 years agoSet TESTFN_UNENCODEABLE on non-Windows OSes
Victor Stinner [Fri, 13 Aug 2010 13:02:04 +0000 (13:02 +0000)]
Set TESTFN_UNENCODEABLE on non-Windows OSes

 * Use 0xff byte on non-Windows OSes
 * mbcs is now really strict by default: i closed the issue #850997, so use the
   filesystem encoding and not Latin-1
 * Rename TESTFN_UNICODE_UNENCODEABLE to TESTFN_UNENCODEABLE

14 years agoRemove unused test class.
Eric Smith [Thu, 12 Aug 2010 21:55:30 +0000 (21:55 +0000)]
Remove unused test class.

14 years agoTypo.
Antoine Pitrou [Thu, 12 Aug 2010 15:15:01 +0000 (15:15 +0000)]
Typo.

14 years agoIssue #7467: when a file from a ZIP archive, its CRC is checked and a
Antoine Pitrou [Thu, 12 Aug 2010 15:11:50 +0000 (15:11 +0000)]
Issue #7467: when a file from a ZIP archive, its CRC is checked and a
BadZipfile error is raised if it doesn't match (as used to be the
case in Python 2.5 and earlier).

14 years agouse pep 383 decoding for mknod and mkfifo #9570
Benjamin Peterson [Wed, 11 Aug 2010 19:20:42 +0000 (19:20 +0000)]
use pep 383 decoding for mknod and mkfifo #9570

Patch by David Watson.

14 years agoIssue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
Alexander Belopolsky [Wed, 11 Aug 2010 17:31:17 +0000 (17:31 +0000)]
Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
va_copy, but available on all python platforms.  Untabified a few
unrelated files.

14 years ago#9055: remove assertion at the end of test_8959_b since the test is about crashing...
Tim Golden [Wed, 11 Aug 2010 15:59:57 +0000 (15:59 +0000)]
#9055: remove assertion at the end of test_8959_b since the test is about crashing, not about counting and is difficult to manage when run as a service

14 years ago#2304: fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as...
Tim Golden [Wed, 11 Aug 2010 14:20:40 +0000 (14:20 +0000)]
#2304: fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as well as Windows

14 years agoIssue #9550: a BufferedReader could issue an additional read when the
Antoine Pitrou [Wed, 11 Aug 2010 13:31:33 +0000 (13:31 +0000)]
Issue #9550: a BufferedReader could issue an additional read when the
original read request had been satisfied, which can block indefinitely
when the underlying raw IO channel is e.g. a socket.  Report and original
patch by Jason V. Miller.

14 years agoAdd George Boutsioukis, from the GSoC project.
Martin v. Löwis [Wed, 11 Aug 2010 05:48:57 +0000 (05:48 +0000)]
Add George Boutsioukis, from the GSoC project.

14 years agoNote that Éric Araujo has been given commit privileges.
Brett Cannon [Wed, 11 Aug 2010 00:18:19 +0000 (00:18 +0000)]
Note that Éric Araujo has been given commit privileges.

14 years agoIssue #8834: Added a comment describing the order of entries in Misc/ACKS.
Alexander Belopolsky [Tue, 10 Aug 2010 21:54:48 +0000 (21:54 +0000)]
Issue #8834: Added a comment describing the order of entries in Misc/ACKS.
Added names from release27-maint branch that were missing from py3k.

14 years agoIssue #9530: Fix undefined-behaviour-inducing overflow checks in bytes and bytearray...
Mark Dickinson [Tue, 10 Aug 2010 18:35:01 +0000 (18:35 +0000)]
Issue #9530:  Fix undefined-behaviour-inducing overflow checks in bytes and bytearray implementations.

14 years agoIssue #9425: create Py_UNICODE_strrchr() function
Victor Stinner [Tue, 10 Aug 2010 16:37:20 +0000 (16:37 +0000)]
Issue #9425: create Py_UNICODE_strrchr() function

14 years agoIssue #8411: new condition variable emulation under Windows for the new GIL,
Antoine Pitrou [Tue, 10 Aug 2010 13:48:51 +0000 (13:48 +0000)]
Issue #8411: new condition variable emulation under Windows for the new GIL,
by Kristján.  Unfortunately the 3.x Windows buildbots are in a wreck, so we'll
have to watch them when they become fit again.

14 years agotest_winsound shouldn't crash when ctypes isn't available
Antoine Pitrou [Tue, 10 Aug 2010 00:45:32 +0000 (00:45 +0000)]
test_winsound shouldn't crash when ctypes isn't available

14 years agoIssue #6915: Under Windows, os.listdir() didn't release the Global
Antoine Pitrou [Mon, 9 Aug 2010 23:39:31 +0000 (23:39 +0000)]
Issue #6915: Under Windows, os.listdir() didn't release the Global
Interpreter Lock around all system calls.  Original patch by Ryan Kelly.

14 years agoIssue #3757: thread-local objects now support cyclic garbage collection.
Antoine Pitrou [Mon, 9 Aug 2010 22:38:19 +0000 (22:38 +0000)]
Issue #3757: thread-local objects now support cyclic garbage collection.
Thread-local objects involved in reference cycles will be deallocated
timely by the cyclic GC, even if the underlying thread is still running.

14 years agoFollowup to r83869 and issue #8524: rename socket.forget() to socket.detach()
Antoine Pitrou [Mon, 9 Aug 2010 20:39:54 +0000 (20:39 +0000)]
Followup to r83869 and issue #8524: rename socket.forget() to socket.detach()
and make it return the file descriptor.

14 years agoFix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations...
Senthil Kumaran [Mon, 9 Aug 2010 20:01:35 +0000 (20:01 +0000)]
Fix Issue7007 -  Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules.

14 years agoFix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations...
Senthil Kumaran [Mon, 9 Aug 2010 19:53:52 +0000 (19:53 +0000)]
Fix Issue7007 -  Use percent-encoded consistently instead of URL Encoded variations. Docs changed.

14 years agoMerged manually from 2.7 branch to 3.x trunk.
Florent Xicluna [Mon, 9 Aug 2010 17:18:05 +0000 (17:18 +0000)]
Merged manually from 2.7 branch to 3.x trunk.

  ------------------------------------------------------------------------
  r81149 | florent.xicluna | 2010-05-13 23:40:01 +0200 (jeu. 13 mai 2010) | 2 lignes

  Better test skipping, with message in the log.
  ------------------------------------------------------------------------
  r81150 | florent.xicluna | 2010-05-13 23:41:05 +0200 (jeu. 13 mai 2010) | 2 lignes

  Improve test feedback to troubleshoot issue #8423 on OS X.
  ------------------------------------------------------------------------
  r81151 | florent.xicluna | 2010-05-14 01:46:48 +0200 (ven. 14 mai 2010) | 2 lignes

  Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.
  ------------------------------------------------------------------------
  r82056 | florent.xicluna | 2010-06-17 22:30:56 +0200 (jeu. 17 juin 2010) | 2 lignes

  Add few words about test.test_genericpath.CommonTest
  ------------------------------------------------------------------------

14 years agoMerged manually from 2.7 branch to 3.x trunk.
Florent Xicluna [Mon, 9 Aug 2010 16:56:43 +0000 (16:56 +0000)]
Merged manually from 2.7 branch to 3.x trunk.

  ------------------------------------------------------------------------
  r80411 | florent.xicluna | 2010-04-23 19:59:10 +0200 (ven. 23 avril 2010) | 2 lignes

  Remove ImportWarnings filters.  They become obsolete after r79310, issue #8205.
  ------------------------------------------------------------------------
  r80412 | florent.xicluna | 2010-04-23 20:10:12 +0200 (ven. 23 avril 2010) | 2 lignes

  Fix the "regrtest -s" switch.
  ------------------------------------------------------------------------
  r81140 | florent.xicluna | 2010-05-13 19:05:29 +0200 (jeu. 13 mai 2010) | 3 lignes

  Add sensible information about the OS X platform to diagnose issue #8423:
  test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".
  ------------------------------------------------------------------------
  r81141 | florent.xicluna | 2010-05-13 20:16:06 +0200 (jeu. 13 mai 2010) | 2 lignes

  Revert the additional OS X information (r81140).  Keep the endianness information.
  ------------------------------------------------------------------------

14 years agocorrect comment
Benjamin Peterson [Mon, 9 Aug 2010 15:53:58 +0000 (15:53 +0000)]
correct comment

14 years agotypo
Benjamin Peterson [Mon, 9 Aug 2010 15:49:56 +0000 (15:49 +0000)]
typo

14 years agodon't alias directly, so that extra arguments don't appear #6678
Benjamin Peterson [Mon, 9 Aug 2010 13:05:35 +0000 (13:05 +0000)]
don't alias directly, so that extra arguments don't appear #6678

14 years agoissue #9452:
Fred Drake [Mon, 9 Aug 2010 12:52:45 +0000 (12:52 +0000)]
issue #9452:
Add read_file, read_string, and read_dict to the configparser API;
new source attribute to exceptions.

14 years agoAlso temporarily revert r83871, to fix compilation on buildbots
Antoine Pitrou [Mon, 9 Aug 2010 12:47:33 +0000 (12:47 +0000)]
Also temporarily revert r83871, to fix compilation on buildbots

14 years agoFix ``Tools/scripts/checkpyc.py`` after PEP 3147.
Florent Xicluna [Mon, 9 Aug 2010 12:26:44 +0000 (12:26 +0000)]
Fix ``Tools/scripts/checkpyc.py`` after PEP 3147.

14 years agoClean up syntax for some scripts.
Florent Xicluna [Mon, 9 Aug 2010 12:24:20 +0000 (12:24 +0000)]
Clean up syntax for some scripts.

14 years agoRevert r83877 in order to fix compilation
Antoine Pitrou [Mon, 9 Aug 2010 10:47:46 +0000 (10:47 +0000)]
Revert r83877 in order to fix compilation

14 years agospelling mistake.
Senthil Kumaran [Mon, 9 Aug 2010 09:03:57 +0000 (09:03 +0000)]
spelling mistake.

14 years agoFix Issue5416 - explain negative value for count in bytes object replace.
Senthil Kumaran [Mon, 9 Aug 2010 08:56:25 +0000 (08:56 +0000)]
Fix Issue5416 - explain negative value for count in bytes object replace.

14 years agoMerge the 2to3 script from /sandbox/trunk/2to3/2to3, revision 72867 (latest).
Florent Xicluna [Mon, 9 Aug 2010 08:29:08 +0000 (08:29 +0000)]
Merge the 2to3 script from /sandbox/trunk/2to3/2to3, revision 72867 (latest).

14 years agoreapply the revert made in r83875
Senthil Kumaran [Mon, 9 Aug 2010 07:30:53 +0000 (07:30 +0000)]
reapply the revert made in r83875

Now the _collections is statically built, the build dependencies are in proper
order and build works fine.

Commit Log from r83874:
Issue 9396.   Apply functools.lru_cache in the place of the
random flushing cache in the re module.

14 years agoFix Issue9545 - Adding _collections to static build.
Senthil Kumaran [Mon, 9 Aug 2010 07:24:50 +0000 (07:24 +0000)]
Fix Issue9545  - Adding _collections to static build.

14 years agoRevert 83784 adding functools.lru_cache() to the re module.
Raymond Hettinger [Mon, 9 Aug 2010 05:56:50 +0000 (05:56 +0000)]
Revert 83784 adding functools.lru_cache() to the re module.

The problem is that the re module is imported by sysconfig
and re needs functools which uses collections.OrderedDict()
but the _collectionsmodule.c code is not yet constructed
at this point in the build.

The likely best solution will be to include _collections
as part of the static build before the rest of the
boot-strapping.

14 years agoIssue 9396. Apply functools.lru_cache in the place of the
Raymond Hettinger [Mon, 9 Aug 2010 04:24:42 +0000 (04:24 +0000)]
Issue 9396.   Apply functools.lru_cache in the place of the
random flushing cache in the re module.

14 years agouse 3 space indents
Benjamin Peterson [Mon, 9 Aug 2010 02:13:10 +0000 (02:13 +0000)]
use 3 space indents

14 years agoIssue 7846: fnmatch cache can grow without bound
Raymond Hettinger [Mon, 9 Aug 2010 02:07:15 +0000 (02:07 +0000)]
Issue 7846:  fnmatch cache can grow without bound

Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).

14 years agoIssue #9425: Create load_builtin() subfunction
Victor Stinner [Mon, 9 Aug 2010 00:59:10 +0000 (00:59 +0000)]
Issue #9425: Create load_builtin() subfunction

Just move the code and some variables.

14 years agoIssue #8524: Add a forget() method to socket objects, so as to put the
Antoine Pitrou [Sun, 8 Aug 2010 23:24:50 +0000 (23:24 +0000)]
Issue #8524: Add a forget() method to socket objects, so as to put the
socket into the closed state without closing the underlying file
descriptor.

14 years agoFix xml.etree.ElementInclude to include the tail of the current node. Issue #6231
Florent Xicluna [Sun, 8 Aug 2010 23:08:41 +0000 (23:08 +0000)]
Fix xml.etree.ElementInclude to include the tail of the current node.  Issue #6231

14 years agoFix BytesWarning in test_xml_etree, introduced with r83851.
Florent Xicluna [Sun, 8 Aug 2010 22:58:56 +0000 (22:58 +0000)]
Fix BytesWarning in test_xml_etree, introduced with r83851.

14 years agoIssue #9425: file system encoding is not always utf-8
Victor Stinner [Sun, 8 Aug 2010 22:31:44 +0000 (22:31 +0000)]
Issue #9425: file system encoding is not always utf-8

Fix a regression introduced in test_sys by r83778.

14 years agoIssue #477863: Print a warning at shutdown if gc.garbage is not empty.
Antoine Pitrou [Sun, 8 Aug 2010 22:18:46 +0000 (22:18 +0000)]
Issue #477863: Print a warning at shutdown if gc.garbage is not empty.

14 years agoIssue #9425: fix setup_context() for non-ascii filenames
Victor Stinner [Sun, 8 Aug 2010 22:12:45 +0000 (22:12 +0000)]
Issue #9425: fix setup_context() for non-ascii filenames

setup_context() replaces .pyc or .pyo filename suffix by .py, but it
didn't work if the filename contains a non-ascii character because the
function used the wrong unit for the length (number of characters
instead of the number of bytes).

With this patch, it uses unicode filenames instead of bytes filenames,
to fix the bug and to be fully unicode compliant.

14 years agoFix #8530: Prevent stringlib fastsearch from reading beyond the front of an array.
Florent Xicluna [Sun, 8 Aug 2010 22:07:16 +0000 (22:07 +0000)]
Fix #8530: Prevent stringlib fastsearch from reading beyond the front of an array.

14 years agoIssue #5319: Print an error if flushing stdout fails at interpreter
Antoine Pitrou [Sun, 8 Aug 2010 20:46:42 +0000 (20:46 +0000)]
Issue #5319: Print an error if flushing stdout fails at interpreter
shutdown.

14 years agoIssue #8047: Fix the xml.etree serializer to return bytes by default.
Florent Xicluna [Sun, 8 Aug 2010 19:48:29 +0000 (19:48 +0000)]
Issue #8047: Fix the xml.etree serializer to return bytes by default.
Use ``encoding="unicode"`` to generate a Unicode string.

14 years agorevert r83830, breaks tests on unixes
Benjamin Peterson [Sun, 8 Aug 2010 19:08:44 +0000 (19:08 +0000)]
revert r83830, breaks tests on unixes

14 years agoMerged revisions 82779,82855,83740,83789-83791,83797-83801,83803,83811,83827,83844...
Benjamin Peterson [Sun, 8 Aug 2010 19:01:25 +0000 (19:01 +0000)]
Merged revisions 82779,82855,83740,83789-83791,83797-83801,83803,83811,83827,83844 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r82779 | benjamin.peterson | 2010-07-10 14:45:08 -0500 (Sat, 10 Jul 2010) | 1 line

  typo in attribute name #9217
........
  r82855 | benjamin.peterson | 2010-07-13 16:27:38 -0500 (Tue, 13 Jul 2010) | 1 line

  remove more extraneous commas #9245
........
  r83740 | alexandre.vassalotti | 2010-08-05 01:58:36 -0500 (Thu, 05 Aug 2010) | 4 lines

  Issue 5077: Update fixer for the other functions gone from the operator module.

  Patch by Meador Inge.
........
  r83789 | benjamin.peterson | 2010-08-07 17:45:14 -0500 (Sat, 07 Aug 2010) | 1 line

  cleanup and use unicode consistently
........
  r83790 | benjamin.peterson | 2010-08-07 17:52:06 -0500 (Sat, 07 Aug 2010) | 1 line

  unicode literal
........
  r83791 | benjamin.peterson | 2010-08-07 17:52:55 -0500 (Sat, 07 Aug 2010) | 1 line

  .get() is pointless here
........
  r83797 | benjamin.peterson | 2010-08-07 18:54:51 -0500 (Sat, 07 Aug 2010) | 1 line

  add a function to find how a node is indented
........
  r83798 | benjamin.peterson | 2010-08-07 18:55:28 -0500 (Sat, 07 Aug 2010) | 1 line

  when splitting import statements, use correct indentation #9386
........
  r83799 | benjamin.peterson | 2010-08-07 18:57:43 -0500 (Sat, 07 Aug 2010) | 1 line

  double quotes
........
  r83800 | benjamin.peterson | 2010-08-07 18:58:52 -0500 (Sat, 07 Aug 2010) | 1 line

  add another test
........
  r83801 | benjamin.peterson | 2010-08-07 19:02:10 -0500 (Sat, 07 Aug 2010) | 1 line

  cleanup; style-nits
........
  r83803 | benjamin.peterson | 2010-08-07 19:05:08 -0500 (Sat, 07 Aug 2010) | 1 line

  slightly more explicit
........
  r83811 | benjamin.peterson | 2010-08-07 22:56:44 -0500 (Sat, 07 Aug 2010) | 4 lines

  Fix node.pre_order() to call the right method on its children.

  This was a rather tragic copy-paste error.
........
  r83827 | benjamin.peterson | 2010-08-08 08:12:48 -0500 (Sun, 08 Aug 2010) | 1 line

  cause test to actually run and fix it
........
  r83844 | benjamin.peterson | 2010-08-08 13:46:37 -0500 (Sun, 08 Aug 2010) | 1 line

  fix whitespace
........

14 years agoFix issue6869: refcount problem in the _ctypes extension.
Thomas Heller [Sun, 8 Aug 2010 18:16:20 +0000 (18:16 +0000)]
Fix issue6869: refcount problem in the _ctypes extension.

14 years agoIssue #7564: Skip test_ioctl if another process is attached to /dev/tty.
Florent Xicluna [Sun, 8 Aug 2010 18:06:13 +0000 (18:06 +0000)]
Issue #7564: Skip test_ioctl if another process is attached to /dev/tty.

14 years agoTypo.
Florent Xicluna [Sun, 8 Aug 2010 18:03:44 +0000 (18:03 +0000)]
Typo.

14 years agoFix issue5504: ctypes does now work with systems where mmap can't be
Thomas Heller [Sun, 8 Aug 2010 17:58:53 +0000 (17:58 +0000)]
Fix issue5504: ctypes does now work with systems where mmap can't be
PROT_WRITE and PROT_EXEC.