Commit Graph

42137 Commits

Author SHA1 Message Date
R. David Murray f7e7babb55 Pre-opened test file needs to be opened in binary mode. 2009-05-07 18:09:58 +00:00
R. David Murray d3bf34cd4b News item for Issue5955. 2009-05-07 16:29:19 +00:00
R. David Murray 8fd522fb5f Issue5955: aifc's close method did not close the file it wrapped,
now it does.  This also means getfp method now returns the real fp.
2009-05-07 16:27:02 +00:00
Benjamin Peterson 0258811125 actually close files instead of leaving it to the gc #5955 2009-05-07 11:45:38 +00:00
R. David Murray dd26681155 Revert inappropriate doc change. 2009-05-07 01:43:57 +00:00
R. David Murray e202700f4f Document how to pass a 'decode' argument to get_payload when
is_multipart is False.
2009-05-07 01:39:25 +00:00
Andrew M. Kuchling 1271662067 Remove two dead links 2009-05-06 22:54:19 +00:00
Walter Dörwald 726ba8e1c3 Add NEWS entry about issue #3739. 2009-05-06 14:32:35 +00:00
Walter Dörwald a7fb408a02 Issue 3739: The unicode-internal encoder now reports the number of *characters*
consumed like any other encoder (instead of the number of bytes).
2009-05-06 14:28:24 +00:00
Jeroen Ruigrok van der Werven c924b3d115 Be more explicit about the error we are catching.
Requested by: Antoine Pitrou
2009-05-06 13:16:36 +00:00
Tarek Ziadé 56342d578e removed string.split usage 2009-05-06 08:11:00 +00:00
Tarek Ziadé ccf608c94c more build_clib cleanup + test coverage 2009-05-06 08:05:47 +00:00
Tarek Ziadé b04a05709d pep8-fied build_clib module : it is now similar to the one in 3.x 2009-05-06 07:41:53 +00:00
Tarek Ziadé d2bb1a5377 Added a test and cleaned check_library_list to be ready to fix #5940 2009-05-06 07:17:52 +00:00
Jeroen Ruigrok van der Werven 041f465cbd Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
us from raising an exception when the locale is invalid.

Issue #1443504
2009-05-06 05:25:42 +00:00
Benjamin Peterson eaeb4c695e Merged revisions 68503,68507,68694,69054,69673,69679-69681,70991,70999,71003,71695 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r68503 | benjamin.peterson | 2009-01-10 14:14:49 -0600 (Sat, 10 Jan 2009) | 1 line

  use variable
........
  r68507 | benjamin.peterson | 2009-01-10 15:13:16 -0600 (Sat, 10 Jan 2009) | 1 line

  rewrap
........
  r68694 | benjamin.peterson | 2009-01-17 17:55:59 -0600 (Sat, 17 Jan 2009) | 1 line

  test for specific node type
........
  r69054 | guilherme.polo | 2009-01-28 10:01:54 -0600 (Wed, 28 Jan 2009) | 2 lines

  Added mapping for the ttk module.
........
  r69673 | benjamin.peterson | 2009-02-16 09:38:22 -0600 (Mon, 16 Feb 2009) | 1 line

  fix handling of as imports #5279
........
  r69679 | benjamin.peterson | 2009-02-16 11:36:06 -0600 (Mon, 16 Feb 2009) | 1 line

  make Base.get_next_sibling() and Base.get_prev_sibling() properties
........
  r69680 | benjamin.peterson | 2009-02-16 11:41:48 -0600 (Mon, 16 Feb 2009) | 1 line

  normalize docstrings in pytree according to PEP 11
........
  r69681 | benjamin.peterson | 2009-02-16 11:43:09 -0600 (Mon, 16 Feb 2009) | 1 line

  use a set
........
  r70991 | benjamin.peterson | 2009-04-01 15:54:50 -0500 (Wed, 01 Apr 2009) | 1 line

  map urllib.urlopen to urllib.request.open #5637
........
  r70999 | benjamin.peterson | 2009-04-01 17:36:47 -0500 (Wed, 01 Apr 2009) | 1 line

  add very alpha support to 2to3 for running concurrently with multiprocessing
........
  r71003 | benjamin.peterson | 2009-04-01 18:10:43 -0500 (Wed, 01 Apr 2009) | 1 line

  fix when multiprocessing is not available or used
........
  r71695 | benjamin.peterson | 2009-04-17 22:21:29 -0500 (Fri, 17 Apr 2009) | 1 line

  refactor multiprocessing support, so it's less hacky to employ and only loads mp when needed
........
2009-05-05 23:13:58 +00:00
Benjamin Peterson c6c1f96420 tabify :( 2009-05-05 23:00:48 +00:00
Martin v. Löwis 8dc74f4602 Issue #5721: don't package Lib/test/README anymore. 2009-05-05 22:13:01 +00:00
Benjamin Peterson a98c8e1d2d fix running test_capi with -R ::
Also, fix a refleak in the test that was preventing running. :)
2009-05-05 21:09:21 +00:00
Thomas Heller a57773e483 Fix Issue #4875: find_library can return directories instead of files
(on win32)
2009-05-05 18:55:47 +00:00
Eric Smith a985a3aee4 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 2009-05-05 18:26:08 +00:00
Mark Dickinson 929ab93489 Issue #5933: Fix some gcc -Wextra warnings. Thanks Victor Stinner for
the patch.
2009-05-05 17:41:47 +00:00
Senthil Kumaran 2c72420a68 Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in pathname2url as windows recognizes it. test_urllib passes now. 2009-05-05 17:34:42 +00:00
Martin v. Löwis 588b54b646 Issue #5847: Remove -n switch on "Edit with IDLE" menu item. 2009-05-05 16:10:16 +00:00
Georg Brandl cecdc9c0e0 Remove unused variable. 2009-05-05 09:20:52 +00:00
Georg Brandl ba68a99656 #5929: fix signedness warning. 2009-05-05 09:19:43 +00:00
Georg Brandl 5815220a68 Fix overlong lines. 2009-05-05 09:06:02 +00:00
Georg Brandl 4d4313d59d #5142: add module skipping feature to pdb. 2009-05-05 08:54:11 +00:00
Georg Brandl e3869c41f2 Add a news entry for r72319. 2009-05-05 08:30:28 +00:00
Georg Brandl 7c26d76d9c #1309567: fix linecache behavior of stripping subdirectories from paths when looking for relative filename matches. Also add a linecache test suite. 2009-05-05 08:28:49 +00:00
Georg Brandl f71ba95e91 #5932: fix error return in _convertPyInt_AsSsize_t() conversion function. 2009-05-05 07:48:12 +00:00
Steven Bethard ab538fc2b2 Update bdist_msi so that the generated MSIs for pure Python modules can install to any version of Python, like the generated EXEs from bdist_wininst. (Previously, you had to create a new MSI for each version of Python.) 2009-05-05 01:31:22 +00:00
Benjamin Peterson 7c67b03051 using sys._getframe(x), where x > 0 doesnt' work on IronPython 2009-05-05 00:55:24 +00:00
R. David Murray 7ba8e1cbfd Fix issue 5890: (property subclass shadows __doc__ string) by inserting
the __doc__ into the subclass instance __dict__.  The fix refactors
property_copy to call property_init in such a way that the __doc__
logic is re-executed correctly when getter_doc is 1, thus simplifying
property_copy.
2009-05-04 22:16:24 +00:00
Antoine Pitrou 97377bf566 Issue #5692: In :class:`zipfile.Zipfile`, fix wrong path calculation when extracting a file to the root directory. 2009-05-04 21:17:17 +00:00
Georg Brandl e3a3726b3d #5916, 5917: small socket doc improvements. 2009-05-04 20:49:17 +00:00
Georg Brandl f5f045e470 #5927, 5928: typos. 2009-05-04 20:45:13 +00:00
Georg Brandl 2ca9be4a0c #5925: fix highlighting of keyword table. 2009-05-04 20:42:08 +00:00
Antoine Pitrou 2aabce7348 Add Nick Barnes to ACKS. 2009-05-04 18:32:50 +00:00
Antoine Pitrou 653dece278 Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences.
Patch by Nick Barnes and Victor Stinner.
2009-05-04 18:32:32 +00:00
Walter Dörwald 2827709d6d Fix typos. 2009-05-04 16:03:03 +00:00
Hirokazu Yamamoto 406d7aaee7 Issue #5913: os.listdir() should fail for empty path on windows. 2009-05-04 05:28:39 +00:00
Gregory P. Smith eeb51a99c5 cleanup applied patch to match style that is already in py3k branch. 2009-05-04 00:48:41 +00:00
Gregory P. Smith d02eedacab Issue #4751: For hashlib algorithms provided by OpenSSL, the Python
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Walter Dörwald 342c8db859 There's no %A in Python 2.x! 2009-05-03 22:46:07 +00:00
Walter Dörwald ed960ac404 Issue #5108: Handle %s like %S and %R in PyUnicode_FromFormatV(): Call
PyUnicode_DecodeUTF8() once, remember the result and output it in a second
step. This avoids problems with counting UTF-8 bytes that ignores the effect
of using the replace error handler in PyUnicode_DecodeUTF8().
2009-05-03 22:36:33 +00:00
Mark Dickinson 01fce5adc0 Don't use PyOS_strnicmp for NaN and Inf detection: it's locale-aware. 2009-05-03 22:33:34 +00:00
Mark Dickinson 777e4ff503 Eliminate some locale-dependent calls to isspace and tolower. 2009-05-03 20:59:48 +00:00
Mark Dickinson 85e269b37d Remove unnecessary uses of context in PyGetSetDef. See issue #5880. 2009-05-03 20:39:06 +00:00
Gregory P. Smith 4bd76641b8 docstring update. 2009-05-03 20:27:25 +00:00