Commit Graph

15068 Commits

Author SHA1 Message Date
Ronald Oussoren 9fa9a0d635 Fix an issue with the detection of a non-existing SDK
on OSX. Without this patch it wasn't possible after all
to compile extensions on OSX 10.6 with the binary
installer unless the user had installed the (non-default)
10.4u SDK.
2009-12-10 10:27:09 +00:00
Raymond Hettinger a5fd24e97d Add a reverse() method to collections.deque(). 2009-12-10 06:42:54 +00:00
Raymond Hettinger 0b3263b073 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 2009-12-10 06:00:33 +00:00
R. David Murray d4e31a4316 Skip new imaplib SSL tests if ssl is not available. 2009-12-09 16:41:39 +00:00
R. David Murray 93321f333c Issue 5949: fixed IMAP4_SSL hang when the IMAP server response is
missing proper end-of-line termination.  Patch and tests by
Scott Dial.  The new tests include a test harness which will
make it easier to add additional tests.
2009-12-09 15:15:31 +00:00
Antoine Pitrou 29dcdabf40 Make test_pipes a little bit more robust. 2009-12-08 19:46:38 +00:00
Antoine Pitrou ca173e2a07 Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. 2009-12-08 19:35:12 +00:00
Antoine Pitrou 8c54e7819a Fix the transient refleaks in test_zipimport_support.
Diagnosis and original patch by Florent Xicluna (flox).
2009-12-08 19:25:51 +00:00
Antoine Pitrou 187177fc55 Issue #6986: Fix crash in the JSON C accelerator when called with the
wrong parameter types.  Patch by Victor Stinner.
2009-12-08 15:40:51 +00:00
Tarek Ziadé 4b7f9439c0 removed the usage of rfc822 in favor of email.message.Message 2009-12-08 09:39:51 +00:00
Tarek Ziadé a939ecd95b Issue #7457: added a read_pkg_file method to distutils.dist.DistributionMetadata so we can read back PKG-INFO files 2009-12-08 08:56:49 +00:00
Benjamin Peterson a4a04d1a89 fix test_parser from tokenizer tweak 2009-12-06 21:24:30 +00:00
Vinay Sajip bd1094a4a5 logging: Improved support for SMTP over TLS. 2009-12-06 18:05:04 +00:00
Vinay Sajip 4830566751 logging: Added optional 'secure' parameter to SMTPHandler. 2009-12-06 17:57:11 +00:00
Tarek Ziadé 4f38317d5a Fixed #1923: make sure we don't strip meaningful whitespace in PKG-INFO Description field 2009-12-06 09:22:40 +00:00
Benjamin Peterson d78cec5f39 bump version to 2.7a1 2009-12-05 17:47:56 +00:00
Benjamin Peterson c0321aa0d9 regenerate pydoc_topics 2009-12-05 17:45:40 +00:00
R. David Murray 820b0ea36c Issue 7431: use TESTFN in test_linecache instead of trying to create a
file in the Lib/test directory, which might be read-only for the
user running the tests.
2009-12-03 23:57:59 +00:00
Martin v. Löwis c218a2fac8 Issue #4120: Drop reference to CRT from manifest when building
extensions with msvc9compiler.
2009-12-03 20:53:51 +00:00
Philip Jenvey 0299d0d7f0 actually close files 2009-12-03 02:40:13 +00:00
Antoine Pitrou 30b3b35cba Issue #7333: The `posix` module gains an `initgroups()` function providing
access to the initgroups(3) C library call on Unix systems which implement
it.  Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Eric Smith f2bf0d2a51 Issue #4482: Add tests for special float value formatting. 2009-12-02 17:43:06 +00:00
Amaury Forgeot d'Arc d728871ee1 #7419: Fix a crash on Windows in locale.setlocale() when the category
is outside the allowed range.
2009-12-01 21:51:04 +00:00
Raymond Hettinger e09f45a2e3 Issue 7410: deepcopy of itertools.count resets the count 2009-11-30 19:44:40 +00:00
Benjamin Peterson d46430bd81 now that deepcopy can handle instance methods, this hack can be removed #7409
Thanks Robert Collins
2009-11-29 22:26:26 +00:00
Tarek Ziadé a5076a2543 Fixed #7408: dropped group ownership checking because it relies on os-specific rules 2009-11-29 22:20:30 +00:00
Eric Smith c4ab8339e9 Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson. 2009-11-29 17:40:57 +00:00
Antoine Pitrou d16f57bf4d Issue #1515: Enable use of deepcopy() with instance methods. Patch by Robert Collins. 2009-11-28 15:55:58 +00:00
Vinay Sajip 01801d1f08 Issue #7403: Fixed possible race condition in lock creation. 2009-11-27 14:03:36 +00:00
Martin v. Löwis 50ea4565bd Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}. 2009-11-27 13:56:01 +00:00
Antoine Pitrou acbe3bdbab Issue #6845: Add restart support for binary upload in ftplib. The
`storbinary()` method of FTP and FTP_TLS objects gains an optional `rest`
argument.  Patch by Pablo Mouzo.

(note: the patch also adds a test for the rest argument in retrbinary())
2009-11-27 13:18:34 +00:00
Antoine Pitrou 2dab865ff1 When open_urlresource() fails, HTTPException is another possible error 2009-11-26 12:36:30 +00:00
Antoine Pitrou bcfaf8007d Issue #5788: `datetime.timedelta` objects get a new `total_seconds()` method returning
the total number of seconds in the duration.  Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00
Barry Warsaw 0d9f61a543 Add mktime_tz to __all__. It's documented as being available in email.utils. 2009-11-25 18:38:32 +00:00
Benjamin Peterson 42d26d94cc Merged revisions 76160-76161,76250,76252,76447,76506 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r76160 | benjamin.peterson | 2009-11-08 18:53:48 -0600 (Sun, 08 Nov 2009) | 1 line

  undeprecate the -p option; it's useful for converting python3 sources
........
  r76161 | benjamin.peterson | 2009-11-08 19:05:37 -0600 (Sun, 08 Nov 2009) | 1 line

  simplify condition
........
  r76250 | benjamin.peterson | 2009-11-13 16:56:48 -0600 (Fri, 13 Nov 2009) | 1 line

  fix handling of a utf-8 bom #7313
........
  r76252 | benjamin.peterson | 2009-11-13 16:58:36 -0600 (Fri, 13 Nov 2009) | 1 line

  remove pdb turd
........
  r76447 | benjamin.peterson | 2009-11-22 18:17:40 -0600 (Sun, 22 Nov 2009) | 1 line

  #7375 fix nested transformations in fix_urllib
........
  r76506 | benjamin.peterson | 2009-11-24 18:34:31 -0600 (Tue, 24 Nov 2009) | 1 line

  use generator expressions in any()
........
2009-11-25 18:16:46 +00:00
Vinay Sajip 2ed8813f22 logging: Issue 6615: Changed handler prepend to append. 2009-11-25 14:12:03 +00:00
Vinay Sajip 17e94e052f logging: made _handlers a WeakValueDictionary. 2009-11-25 09:22:47 +00:00
Vinay Sajip c470d68d39 Issue #6615: logging: Used weak references in internal handler list. Thanks to flox (Florent Xicluna) for the patch. 2009-11-25 09:03:30 +00:00
Alexandre Vassalotti 8b2d713d32 Issue 7128: Removed reference to the non-existent copyreg module.
The reference to copyreg was a unnoticed leftover from the compatibility
support for the grand renaming of the standard library in Python 3. The
compatibility support was reverted in r63493, but not completely as this
patch shows.

Based on a patch by Amaury Forgeot d'Arc.
2009-11-24 17:53:23 +00:00
Vinay Sajip 1d2c16db7e Made logging classes new-style and added name property to handlers. 2009-11-24 15:53:25 +00:00
Mark Dickinson 3e5354934e Issue #7117: Update float formatting testcases to match those in py3k. 2009-11-24 15:12:20 +00:00
Jesse Noller 9a03f2fd03 comment out test added in r76438, which caused refleaks 2009-11-24 14:17:29 +00:00
Mark Dickinson bce783757f round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this. 2009-11-24 10:54:58 +00:00
Mark Dickinson 9dd5e16c5d Issue #7117, continued: Remove substitution of %g-style formatting for
%f-style formatting, which used to occur at high precision.  Float formatting
should now be consistent between 2.7 and 3.1.
2009-11-23 20:54:09 +00:00
Mark Dickinson 18cfada1ea Remove restriction on precision when formatting floats. This is the
first step towards removing the %f -> %g switch (see issues 7117,
5859).
2009-11-23 18:46:41 +00:00
Senthil Kumaran 5c456e6f45 Fix for issue1488943 - difflib.Differ() doesn't always add hints for tab
characters.
2009-11-23 18:41:31 +00:00
Mark Dickinson e13dc3e6d5 Issue #7379: Fix incorrect doctest for Fraction.limit_denominator. 2009-11-23 16:23:43 +00:00
Lars Gustäbel 12adc655c8 Add a testcase that checks if the TarFile constructor successfully
closes the internal file object in case of an error (issue #7341).
2009-11-23 15:46:19 +00:00
Lars Gustäbel dd866d57af Issue #6123: Fix opening empty archives and files.
(Note that an empty archive is not the same as an empty file. An
empty archive contains no members and is correctly terminated with an
EOF block full of zeros. An empty file contains no data at all.)

The problem was that although tarfile was able to create empty
archives, it failed to open them raising a ReadError. On the other
hand, tarfile opened empty files without error in most read modes and
presented them as empty archives. (However, some modes still raised
errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even
raised EOFError.)

In order to get a more fine-grained control over the various internal
error conditions I now split up the HeaderError exception into a
number of meaningful sub-exceptions. This makes it easier in the
TarFile.next() method to react to the different conditions in the
correct way.

The visible change in its behaviour now is that tarfile will open
empty archives correctly and raise ReadError consistently for empty
files.
2009-11-22 18:30:53 +00:00
Jesse Noller 814d02dcd1 issue6615: Additional test for logging support in multiprocessing 2009-11-21 14:38:23 +00:00