Sean Reifscheider
5e2b27b5e5
Issue8810: Clearing up docstring for tzinfo.utcoffset.
2010-06-04 01:51:26 +00:00
Vinay Sajip
9a26aabf89
Issue #8890 : Documentation changed to avoid reference to temporary files.
2010-06-03 22:34:42 +00:00
Benjamin Peterson
3b95934e05
use a set for membership testing
2010-06-03 21:21:03 +00:00
R. David Murray
4653fb556c
#8889 : rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.
...
FreeBSD doesn't have socket.EAI_NODATA. I rewrote the routine because
there's no easy way to conditionally include a context manager in a
with statement. As a side benefit, instead of a stack of context
managers there's now only one.
2010-06-03 20:19:25 +00:00
R. David Murray
61746d580e
#5610 : use \Z not $ so we don't eat extra chars when body part ends with \r\n.
...
If a body part ended with \r\n, feedparser, using '$' to terminate its
search for the newline, would match on the \r\n, and think that it needed
to strip two characters in order to account for the line end before the
boundary. That made it chop one too many characters off the end of
the body part. Using \Z makes the match correct.
Patch and test by Tony Nelson.
2010-06-03 15:43:20 +00:00
Stefan Krah
23152ea5bd
Use compiler rather than compiler_obj. Thanks Michael Foord for noticing.
2010-06-03 14:25:16 +00:00
Stefan Krah
449aa86bd6
Issue #7384 : If the system readline library is linked against ncurses,
...
the curses module must be linked against ncurses as well. Otherwise it
is not safe to load both the readline and curses modules in an application.
Thanks Thomas Dickey for answering questions about ncurses/ncursesw
and readline!
2010-06-03 12:39:50 +00:00
Lars Gustäbel
4da7d410b3
Issue #8741 : Fixed the TarFile.makelink() method that is responsible
...
for extracting symbolic and hard link entries as regular files as a
work-around on platforms that do not support filesystem links.
This stopped working reliably after a change in r74571. I also added
a few tests for this functionality.
2010-06-03 12:34:14 +00:00
Lars Gustäbel
2ee9c6fa50
Issue #8833 : tarfile created hard link entries with a size
...
field != 0 by mistake. The associated testcase did not
expose this bug because it was broken too.
2010-06-03 09:56:22 +00:00
Ronald Oussoren
593e4ca7a5
Fix for issue #7724 : ensure that distutils and python's own setup.py
...
honor the MacOSX SDK when one is specified.
This is needed to be able to build using the 10.4u SDK while running
on OSX 10.6.
This is a fixed version of the patch in r80963, I've tested this patch
on OSX and Linux.
2010-06-03 09:47:21 +00:00
R. David Murray
52dcd45906
#1368247 : make set_charset/MIMEText automatically encode unicode _payload.
...
Fixes (mysterious, to the end user) UnicodeErrors when using utf-8 as
the charset and unicode as the _text argument. Also makes the way in
which unicode gets encoded to quoted printable for other charsets more
sane (it only worked by accident previously). The _payload now is encoded
to the charset.output_charset if it is unicode.
2010-06-02 22:03:15 +00:00
Antoine Pitrou
c395545a4a
Issue #8873 : add a documentation note about possible performance issues with the
...
default of unbuffered IO in subprocess.Popen.
2010-06-02 17:08:47 +00:00
Vinay Sajip
3b4849a21d
Logging: improved error reporting for BaseConfigurator.resolve().
2010-06-02 10:05:31 +00:00
Ronald Oussoren
27c72e9e5c
Fix for issue8868: without this patch 'MacOS.WMAvailable()' will return
...
False on MacOSX 10.5 or earlier and scripts won't be able to access GUI
functionality.
2010-06-02 03:47:14 +00:00
Senthil Kumaran
98bc31f5e0
Fix issue8788 - description of doseq parameter in urllib.urlencode
2010-06-02 02:19:15 +00:00
Brian Curtin
824912eb30
Fix #8618 . Ask the Windows mixer API if there are any playback devices
...
configured before attempting to test PlaySound.
2010-06-01 13:29:13 +00:00
Senthil Kumaran
4f0108b0d9
Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It fails after 5 retries.
2010-06-01 12:40:07 +00:00
Georg Brandl
b1a14051b7
Put docs for RegexObject.search() before RegexObject.match() to mirror re.search() and re.match() order.
2010-06-01 07:25:23 +00:00
R. David Murray
ac94f4f716
#7583 : clarify discussion of hard tab expansion in doctests.
2010-06-01 01:42:41 +00:00
Antoine Pitrou
de535cb615
Improve documentation for getaddrinfo() (part of #8857 )
2010-05-31 17:01:01 +00:00
Mark Dickinson
4ca7c3c089
Issue #8748 : Fix incorrect results from comparisons between an integer
...
and a complex instance. Based on a patch by Meador Inge.
2010-05-30 13:18:10 +00:00
Mark Dickinson
4b3035d0b8
Remove declaration for unused variable.
2010-05-30 12:17:11 +00:00
Mark Dickinson
813363743d
Issue #5211 : Complete removal of implicit coercions for the complex
...
type. Coercion for arithmetic operations was already removed in
r78280, but that commit didn't remove coercion for rich comparisons.
2010-05-30 12:12:25 +00:00
Mark Dickinson
ddac33882b
Untabify Modules/config.c.in.
2010-05-29 21:00:52 +00:00
Stefan Krah
3d08d88459
Fix typo
2010-05-29 12:54:35 +00:00
Antoine Pitrou
9fe6199b4e
Issue #8840 : Make documentation for truncate() clearer
2010-05-29 12:06:13 +00:00
Georg Brandl
84a8d8fbf2
#8616 : add new turtle demo "nim".
2010-05-29 08:46:18 +00:00
R. David Murray
cbd7d3dbf2
Make the ctl-C shutdown of serve.py prettier.
2010-05-28 18:17:20 +00:00
R. David Murray
e5d1c05216
Make reference to Generic Attribute Management a hyperlink.
2010-05-28 18:08:11 +00:00
Brian Curtin
83cba05c30
Fix #8405 for slow buildbots. Remove the sleep on startup and move the
...
pipe communication into a loop to retry in case a buildbot gets even slower.
2010-05-28 15:49:21 +00:00
Martin v. Löwis
b41afb5544
Issue #1759169 : Drop _XOPEN_SOURCE on Solaris.
2010-05-28 15:28:47 +00:00
Benjamin Peterson
9b14ae8814
2to3 doesn't fix test_support #6583
2010-05-28 03:10:31 +00:00
Benjamin Peterson
29d438c96c
remove non-ascii coding per PEP 8
2010-05-28 02:12:36 +00:00
Victor Stinner
03883624a4
Issue #8835 : test_support.transient_internet() catchs gaierror(EAI_NONAME) and
...
gaierror(EAI_NODATA)
2010-05-27 22:29:48 +00:00
Andrew M. Kuchling
29f1bb3227
Add item
2010-05-27 21:29:59 +00:00
Alexander Belopolsky
9292ee0667
Issue #7150 : Raise OverflowError if the result of adding or subtracting
...
timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
2010-05-27 20:55:27 +00:00
Andrew M. Kuchling
3bfd0311f9
Remove top-level 'General Questions' section, pushing up the questions it contains
2010-05-27 13:30:09 +00:00
Andrew M. Kuchling
2eaa542e00
Rewrite wxWidgets section
2010-05-27 13:22:53 +00:00
Alexander Belopolsky
4a057e6509
Added Andrej Krpic. (Thanks for issue #7879 patch.)
2010-05-26 20:57:04 +00:00
Alexander Belopolsky
58451d2dd7
Issue #7879 : Skip negative timestamps test on any Windows platform
...
using unittest.skipIf decorator.
2010-05-26 20:45:37 +00:00
Alexander Belopolsky
a26cf46dd4
Issue #7879 : Do not test negative timestamps on any Windows platform
...
including Windows CE.
2010-05-26 19:43:16 +00:00
Mark Dickinson
784a47f2c0
Issue #8825 : additional testcases for int(string, 0) and long(string, 0).
2010-05-26 19:06:33 +00:00
Victor Stinner
708c0727f9
Issue #7449 : Skip test_socketserver if threading support is disabled
2010-05-26 17:25:28 +00:00
Victor Stinner
c49dfcc8dc
Issue #3798 : Write sys.exit() message to sys.stderr to use stderr encoding and
...
error handler, instead of writing to the C stderr file in utf-8
2010-05-25 22:30:32 +00:00
Martin v. Löwis
7c4d7d3e17
Add Alexander Belopolsky.
2010-05-25 20:06:02 +00:00
Mark Dickinson
ecb8316885
Fix a NameError in test_enumerate.
2010-05-25 19:44:49 +00:00
Mark Dickinson
2066559913
Issue #8816 : Extra tests for some built-in functions. These tests are
...
ports of IronPython tests. Thanks Gregory Nofi.
2010-05-25 19:01:08 +00:00
R. David Murray
172e06e019
Issue 8818: urlparse/urlsplit keyword is 'scheme', not 'default_scheme'.
2010-05-25 15:32:06 +00:00
R. David Murray
bfbdefe539
Issue 8143: sync unquote in urlparse with urllib; add comment about doing so.
...
unquote is duplicated in the two files to avoid a circular reference.
(This is fixed in Python3.) Updates keep getting made to the public unquote
without fixing the urlparse one, however, so this fix syncs the two
and adds a comment to both to make sure changes are applied to both.
2010-05-25 15:20:46 +00:00
Brian Curtin
b64c89bd7a
Fix #2810 - handle the case where some registry calls return
...
ERROR_MORE_DATA, requiring another call to get the remaining data.
Patch by Daniel Stutzbach
2010-05-25 15:06:15 +00:00