Benjamin Peterson
ad100c3acb
backport r67300
2008-11-20 22:06:22 +00:00
Benjamin Peterson
d3b5a7985d
oops! didn't mean to disable that test
2008-11-20 21:44:23 +00:00
Benjamin Peterson
46cc6d1102
make sure that bytearray methods return a new bytearray even if there is no change
...
Fixes #4348
Reviewed by Brett
2008-11-19 21:49:09 +00:00
Josiah Carlson
a98d72d598
Fix for issue 4332 in trunk.
2008-11-19 18:26:12 +00:00
Martin v. Löwis
bb9b1f1d4a
Issue #4116 : Resolve member name conflict in ScrolledCanvas.__init__
2008-11-19 09:09:41 +00:00
Skip Montanaro
7fb29797e3
patch from issue 1108
2008-11-19 03:35:41 +00:00
Amaury Forgeot d'Arc
7cfe7ea745
#4317 : Fix an Array Bounds Read in imageop.rgb2rgb8.
...
Will backport to 2.4.
2008-11-18 22:19:37 +00:00
Benjamin Peterson
273c233c78
when __getattr__ is a descriptor, call it correctly; fixes #4230
...
patch from Ziga Seilnacht
2008-11-17 22:39:09 +00:00
Brett Cannon
e3d0bf740f
The docs for httplib.HTTPConnection.putheader() have claimed for quite a while
...
that their could be an arbitrary number of values passed in. Turns out the code
did not match that. The code now matches the docs.
2008-11-15 22:40:44 +00:00
Benjamin Peterson
ba4d480776
Merged revisions 66985,67170,67173,67177-67179 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66985 | benjamin.peterson | 2008-10-20 16:43:46 -0500 (Mon, 20 Oct 2008) | 1 line
no need to use nested try, except, finally
........
r67170 | benjamin.peterson | 2008-11-08 12:28:31 -0600 (Sat, 08 Nov 2008) | 1 line
fix #4271 : fix_imports didn't recognize imports with parenthesis (ie from x import (a, b))
........
r67173 | benjamin.peterson | 2008-11-08 17:42:08 -0600 (Sat, 08 Nov 2008) | 1 line
consolidate test
........
r67177 | benjamin.peterson | 2008-11-09 21:52:52 -0600 (Sun, 09 Nov 2008) | 1 line
let the metclass fixer handle complex assignments in the class body gracefully
........
r67178 | benjamin.peterson | 2008-11-10 15:26:43 -0600 (Mon, 10 Nov 2008) | 1 line
the metaclass fixers shouldn't die when bases are not a simple name
........
r67179 | benjamin.peterson | 2008-11-10 15:29:58 -0600 (Mon, 10 Nov 2008) | 1 line
allow the fix_import pattern to catch from imports with parenthesis
........
2008-11-10 22:11:12 +00:00
Benjamin Peterson
b7c95ce8b8
fix comment
2008-11-09 01:52:32 +00:00
Benjamin Peterson
2c98faada6
check for assignment to __debug__ during AST generation
...
Also, give assignment to None a better error message
2008-11-08 18:38:54 +00:00
Benjamin Peterson
81e92e582e
move a FileIO test to test_fileio
2008-11-03 22:34:57 +00:00
Hirokazu Yamamoto
b9828f67b8
Issue #3774 : Fixed an error when create a Tkinter menu item without command
...
and then remove it. Written by Guilherme Polo (gpolo).
2008-11-03 18:03:06 +00:00
Benjamin Peterson
6624a9fddd
#4048 make the parser module accept relative imports as valid
2008-11-03 15:14:51 +00:00
Benjamin Peterson
dcee09d920
make sure the parser flags and passed onto the compiler
...
This fixes "from __future__ import unicode_literals" in an exec statment
See #4225
2008-10-31 02:16:05 +00:00
Christian Heimes
ab5f879022
Issue #4237 : io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.
2008-10-30 21:26:15 +00:00
Amaury Forgeot d'Arc
69a9c5b539
Issue #4176 : Pickle would crash the interpreter when a __reduce__ function
...
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)
A list is not an iterator...
Will backport to 2.6 and 2.5.
2008-10-30 21:18:34 +00:00
Thomas Heller
1fac5a4505
Fixed a modulefinder crash on certain relative imports.
2008-10-30 20:18:13 +00:00
Armin Rigo
581eb1e498
Fix one of the tests: it relied on being present in an "output test" in
...
order to actually test what it was supposed to test, i.e. that the code
in the __del__ method did not crash. Use instead the new helper
test_support.captured_output().
2008-10-28 17:01:21 +00:00
Benjamin Peterson
260f5bae70
add forgotten test for r67030
2008-10-26 20:33:19 +00:00
Benjamin Peterson
bdca942ffc
fix __future__ imports when multiple features are given
2008-10-26 20:21:13 +00:00
Benjamin Peterson
399b1fe8df
give a py3k warning when 'nonlocal' is used as a variable name
2008-10-25 02:53:28 +00:00
Hirokazu Yamamoto
592c275567
Issue #4183 : Some tests didn't run with pickle.HIGHEST_PROTOCOL.
2008-10-23 00:37:33 +00:00
Benjamin Peterson
c18574c98e
fix #4150 : pdb's up command didn't work for generators in post-mortem
2008-10-22 21:16:34 +00:00
Benjamin Peterson
4d9b0cd409
return ArgInfo from inspect.getargvalues #4092
2008-10-21 22:18:29 +00:00
Amaury Forgeot d'Arc
fbc0b0ca29
#4157 move two test functions out of platform.py.
...
Turn them into unit tests, and correct an obvious typo:
(("a", "b") ("c", "d") ("e", "f"))
compiles even with the missing commas, but does not execute very well...
2008-10-21 22:01:38 +00:00
Benjamin Peterson
77c2f93663
make sure to call iteritems()
2008-10-21 20:51:13 +00:00
Armin Ronacher
297ddcd823
Fixed #4062 , added import for _ast.__version__ to ast to match the documented behavior.
2008-10-20 21:29:08 +00:00
Benjamin Peterson
595e3cbb3d
check for error conditions in _json #3623
2008-10-16 21:09:28 +00:00
Benjamin Peterson
b76444b2fa
use new showwarnings signature for idle #3391
2008-10-16 19:40:14 +00:00
Benjamin Peterson
6ae94ee299
Merged revisions 66805,66841,66860,66884-66886,66893,66907,66910 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66805 | benjamin.peterson | 2008-10-04 20:11:02 -0500 (Sat, 04 Oct 2008) | 1 line
mention what the fixes directory is for
........
r66841 | benjamin.peterson | 2008-10-07 17:48:12 -0500 (Tue, 07 Oct 2008) | 1 line
use assertFalse and assertTrue
........
r66860 | benjamin.peterson | 2008-10-08 16:05:07 -0500 (Wed, 08 Oct 2008) | 1 line
instead of abusing the pattern matcher, use start_tree to find a next binding
........
r66884 | benjamin.peterson | 2008-10-13 15:50:30 -0500 (Mon, 13 Oct 2008) | 1 line
don't print tokens to stdout when -v is given
........
r66885 | benjamin.peterson | 2008-10-13 16:28:57 -0500 (Mon, 13 Oct 2008) | 1 line
add the -x option to disable fixers
........
r66886 | benjamin.peterson | 2008-10-13 16:33:53 -0500 (Mon, 13 Oct 2008) | 1 line
cut down on some crud
........
r66893 | benjamin.peterson | 2008-10-14 17:16:54 -0500 (Tue, 14 Oct 2008) | 1 line
add an optional set literal fixer
........
r66907 | benjamin.peterson | 2008-10-15 16:59:41 -0500 (Wed, 15 Oct 2008) | 1 line
don't write backup files by default
........
r66910 | benjamin.peterson | 2008-10-15 17:43:10 -0500 (Wed, 15 Oct 2008) | 1 line
add the -n option; it stops backupfiles from being written
........
2008-10-15 23:10:28 +00:00
Benjamin Peterson
9dc0a639bd
support the optional line argument for idle
2008-10-15 21:05:55 +00:00
Skip Montanaro
c01e32118b
easter egg
2008-10-15 11:49:10 +00:00
Benjamin Peterson
32e7aa6ab9
remove set compat cruft
2008-10-14 22:37:18 +00:00
Benjamin Peterson
76f71a52d7
give poplib a real test suite
...
#4088 from Giampaolo Rodola'x
2008-10-11 17:25:36 +00:00
Georg Brandl
f3776a17ef
#3935 : properly support list subclasses in the C impl. of bisect.
...
Patch reviewed by Raymond.
2008-10-08 18:47:17 +00:00
Amaury Forgeot d'Arc
d78b9dcbc3
#4069 : aSet.remove(otherSet) would always report the empty frozenset([]) as the missing key.
...
Now it correctly refers to the initial otherset.
Reviewed by Raymond. Will backport to 2.6.
2008-10-07 20:32:10 +00:00
Hirokazu Yamamoto
39defbe6a9
more intensive test on dbm.
2008-10-07 18:10:47 +00:00
Skip Montanaro
7d9d7a2659
save/restore stdout/stderr instead of relying on __*__ versions
2008-10-07 15:03:40 +00:00
Skip Montanaro
0d8372bdb9
Simplify individual tests by defining setUp and tearDown methods.
2008-10-07 01:55:20 +00:00
Andrew M. Kuchling
ddbce9e845
Per Greg Ward, optparse is no longer being externally maintained.
...
I'll look at the bugs in the Optik bug tracker and copy them to the Python bug
tracker if they're still relevant.
2008-10-06 12:07:04 +00:00
Hirokazu Yamamoto
18c4e8734c
More strict test. Consider the case sys.executable itself is symlink.
2008-10-06 02:41:59 +00:00
Hirokazu Yamamoto
6e5e50104c
Added the test for issue3762.
2008-10-06 01:57:03 +00:00
Andrew M. Kuchling
dcf3b1c79a
#1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable_interspersed_args()
2008-10-05 00:11:56 +00:00
Benjamin Peterson
4d164158d6
Merged revisions 66707,66775,66782 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66707 | benjamin.peterson | 2008-09-30 18:27:10 -0500 (Tue, 30 Sep 2008) | 1 line
fix #4001 : fix_imports didn't check for __init__.py before converting to relative imports
........
r66775 | collin.winter | 2008-10-03 12:08:26 -0500 (Fri, 03 Oct 2008) | 4 lines
Add an alternative iterative pattern matching system that, while slower, correctly parses files that cause the faster recursive pattern matcher to fail with a recursion error. lib2to3 falls back to the iterative matcher if the recursive one fails.
Fixes http://bugs.python.org/issue2532 . Thanks to Nick Edds.
........
r66782 | benjamin.peterson | 2008-10-03 17:51:36 -0500 (Fri, 03 Oct 2008) | 1 line
add Victor Stinner's fixer for os.getcwdu -> os.getcwd #4023
........
2008-10-04 20:55:50 +00:00
Andrew M. Kuchling
081bb457ab
Typo fix
2008-10-03 16:42:52 +00:00
Hirokazu Yamamoto
b7df32e620
Fixed following error when DocXMLRPCServer failed.
...
UnboundLocalError: local variable 'serv' referenced before assignment
2008-10-03 16:18:42 +00:00
Benjamin Peterson
c95726e28b
update pydoc topics
2008-10-02 20:46:58 +00:00
Barry Warsaw
afa1436958
Bumping to 2.6 final.
2008-10-01 21:46:40 +00:00
Andrew MacIntyre
bf24401a1f
fix for issue 3862: test_array fails FreeBSD 7 amd64
...
FreeBSD 7's underlying malloc() is behaves differently to earlier versions
and seriously overcommits available memory on amd64. This may affect
other 64bit platforms in some circumstances, so the scale of the
problematic test is wound back.
Patch by Mark Dickinson, reviewed by Martin von Loewis.
2008-10-01 03:25:25 +00:00
Gregory P. Smith
0806749e63
Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
...
calling fork() from a child thread. This disables that unit test (with a note
printed to stderr) on those platforms.
A caveat about buggy platforms is added to the os.fork documentation.
2008-09-30 20:41:13 +00:00
Benjamin Peterson
8d77d448a5
fix security issue 2: imageop's poor validation of arguments could result in segfaults
...
patch by Victor Stinner
reviewed by myself and Brett
2008-09-30 01:31:49 +00:00
Jesse Noller
37040cdace
issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller
2008-09-30 00:15:45 +00:00
Martin v. Löwis
e563aa4383
Issue #3965 : Allow repeated calls to turtle.Screen, by making it a
...
true singleton object.
Reviewed by Gregor Lingl.
2008-09-29 22:09:07 +00:00
Thomas Heller
e144873071
Fix issue #3547 for MingW, update comments.
2008-09-29 19:56:24 +00:00
Bill Janssen
eb257ac97d
fix for release blocker 3910, 2.6 regression in socket.ssl method
2008-09-29 18:56:38 +00:00
Brett Cannon
b2d61bde28
The _lsprof module could crash the interpreter if it was given an external
...
timer that did not return a float and a timer was still running when the
Profiler object was garbage collected.
Fixes issue 3895.
Code review by Benjamin Peterson.
2008-09-29 03:41:21 +00:00
Benjamin Peterson
e14267bbad
merge in the fix for test_ftplib on some bots [reviewed by Georg]
2008-09-28 20:57:21 +00:00
Benjamin Peterson
dee0b175f6
backport r66656 so people using -Qnew aren't affected
2008-09-27 22:08:12 +00:00
Benjamin Peterson
003d7463dd
enable refactor tests
2008-09-27 21:12:20 +00:00
Benjamin Peterson
08be29193e
Merged revisions 66511,66548-66549,66644,66646-66652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66511 | benjamin.peterson | 2008-09-18 21:49:27 -0500 (Thu, 18 Sep 2008) | 1 line
remove a useless if __name__ == '__main__'
........
r66548 | benjamin.peterson | 2008-09-21 21:14:14 -0500 (Sun, 21 Sep 2008) | 1 line
avoid the perils of mutable default arguments
........
r66549 | benjamin.peterson | 2008-09-21 21:26:11 -0500 (Sun, 21 Sep 2008) | 1 line
some places in RefactoringTool should raise an error instead of logging it
........
r66644 | benjamin.peterson | 2008-09-27 10:45:10 -0500 (Sat, 27 Sep 2008) | 1 line
fix doctest refactoring
........
r66646 | benjamin.peterson | 2008-09-27 11:40:13 -0500 (Sat, 27 Sep 2008) | 1 line
don't print to stdout when 2to3 is used as a library
........
r66647 | benjamin.peterson | 2008-09-27 12:28:28 -0500 (Sat, 27 Sep 2008) | 1 line
let fixer modules and classes have different prefixes
........
r66648 | benjamin.peterson | 2008-09-27 14:02:13 -0500 (Sat, 27 Sep 2008) | 1 line
raise errors when 2to3 is used as a library
........
r66649 | benjamin.peterson | 2008-09-27 14:03:38 -0500 (Sat, 27 Sep 2008) | 1 line
fix docstring
........
r66650 | benjamin.peterson | 2008-09-27 14:22:21 -0500 (Sat, 27 Sep 2008) | 1 line
make use of enumerate
........
r66651 | benjamin.peterson | 2008-09-27 14:24:13 -0500 (Sat, 27 Sep 2008) | 1 line
revert last revision; it breaks things
........
r66652 | benjamin.peterson | 2008-09-27 16:03:06 -0500 (Sat, 27 Sep 2008) | 1 line
add tests for lib2to3.refactor
........
2008-09-27 21:09:10 +00:00
Benjamin Peterson
3c0c483af4
give ftplib a real test suite
...
A asyncore based mock ftp server is used to test the protocol.
This is all thanks to Giampaolo Rodola #3939
(Barry gave me permission to do this before final on IRC.)
2008-09-27 02:49:54 +00:00
Amaury Forgeot d'Arc
fc5ea39289
#3967 : Correct a crash in count() and find() methods of string-like objects.
...
For example:
"".count("xxxx", sys.maxint, 0)
Reviewed by Benjamin Peterson.
Will port to 2.5 and 3.0.
2008-09-26 22:34:08 +00:00
Raymond Hettinger
6ee7bc04f7
Fix namedtuple bug reported by Glenn Linderman. Template did not form correctly if the field names were input in Unicode.
2008-09-25 23:31:52 +00:00
Amaury Forgeot d'Arc
17617a07d1
#3965 : on Windows, open() crashes if the filename or the mode is invalid,
...
and if the filename is a unicode string.
Reviewed by Martin von Loewis.
2008-09-25 20:52:56 +00:00
Benjamin Peterson
52d52f185a
#3950 fix missing scale factors in turtle.py
...
reviewers: Georg, Benjamin
2008-09-24 22:11:59 +00:00
Thomas Heller
a85c95d5e8
Fix issue #3547 : ctypes is confused by bitfields of varying integer types
...
Reviewed by Fredrik Lundh and Skip Montanaro.
2008-09-24 18:26:05 +00:00
Benjamin Peterson
a74d675fac
backport the atexit test for r66563
2008-09-23 20:43:09 +00:00
Jesus Cea
5cd5f12a48
Bugfix for issue3885 and 'DB.verify()' crash.
...
Reviewed by Nick Coghlan.
2008-09-23 18:54:08 +00:00
Benjamin Peterson
ffb3cca39b
use the new threading properties for multiprocessing (reviewed by Jesse #3927 )
2008-09-22 21:11:43 +00:00
Andrew MacIntyre
41c56b5ea1
build_os2emx.patch in issue 3868 - update OS/2 EMX makefile and config files
...
Part of source_os2emx.patch in issue 3868:
Include/pystrcmp.h: OS/2 has same C APIs as Windows
Lib/test/test_io.py: OS/2 has same behaviour as Windows for this test
Reviewed by Amaury Forgeot d'Arc
2008-09-22 14:23:45 +00:00
Benjamin Peterson
2c7470d951
#3879 fix a regression in urllib.getproxies_environment
...
reviewers: Benjamin, Georg
2008-09-21 21:27:51 +00:00
Hirokazu Yamamoto
1672e10dc2
Issue #3925 : Ignores shutil.rmtree error on cygwin too.
...
Reviewed by Benjamin Peterson.
2008-09-21 20:48:41 +00:00
Hirokazu Yamamoto
56d380de1d
Issue #3838 : TarFile object assigned to self.tar should be closed explicitly.
...
Reviewed by Lars Gustäbel.
2008-09-21 11:44:23 +00:00
Barry Warsaw
6af16190f6
Bumping to 2.6rc2
2008-09-18 04:33:43 +00:00
Mark Hammond
900155fa42
avoid putting unicode objects in the environment causing
...
later test failures. As discussed on #python-dev
2008-09-18 03:51:46 +00:00
Mark Hammond
9f381ec50b
On Windows, temporarily disable the bsddb test referenced in bug 3892.
...
We do yell to stderr and the bug is marked as a blocker.
Reviewed by barry in #python-dev.
2008-09-18 02:47:35 +00:00
Benjamin Peterson
8c2b7dc463
fix possible integer overflows in _hashopenssl #3886
2008-09-18 01:22:16 +00:00
Benjamin Peterson
c237f8e0ce
Merged revisions 66470 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66470 | benjamin.peterson | 2008-09-15 18:29:43 -0500 (Mon, 15 Sep 2008) | 1 line
don't use os.linesep for newlines; it breaks tests on windows
........
2008-09-15 23:55:01 +00:00
Benjamin Peterson
d51e07f989
Merged revisions 66191,66418,66438,66445 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66191 | benjamin.peterson | 2008-09-03 17:00:52 -0500 (Wed, 03 Sep 2008) | 1 line
update the Grammar file after recent syntax changes
........
r66418 | benjamin.peterson | 2008-09-12 18:49:48 -0500 (Fri, 12 Sep 2008) | 1 line
a trival fix to get a few more print corner cases #2899
........
r66438 | benjamin.peterson | 2008-09-12 21:32:30 -0500 (Fri, 12 Sep 2008) | 5 lines
add Jack Diederich's fixer for metaclass syntax #2366
my contribution to this was adding a few tests and fixing a few bugs
I also reviewed it (Jack is a committer)
........
r66445 | benjamin.peterson | 2008-09-13 10:50:00 -0500 (Sat, 13 Sep 2008) | 1 line
add a few more tests concerning int literals and weird spacing
........
2008-09-13 17:43:19 +00:00
Barry Warsaw
1e62aec3ed
Bumping to 2.6rc1
2008-09-12 23:25:57 +00:00
Nick Coghlan
d2e0938362
Issue #3781 : Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
2008-09-11 12:11:06 +00:00
Martin v. Löwis
4dd3a50ca4
Read unidata_version from unicodedata module.
...
Delete old NormalizationTest.txt if it doesn't match
unidata_version.
2008-09-10 19:16:35 +00:00
Martin v. Löwis
6d5ec2474d
Update to test Unicode 5.1.
2008-09-10 18:43:49 +00:00
Guido van Rossum
e3c4fd9cc0
- Issue #3629 : Fix sre "bytecode" validator for an end case.
...
Reviewed by Amaury.
2008-09-10 14:27:00 +00:00
Martin v. Löwis
24329ba176
Issue #3811 : The Unicode database was updated to 5.1.
...
Reviewed by Fredrik Lundh and Marc-Andre Lemburg.
2008-09-10 13:38:12 +00:00
Benjamin Peterson
97179b0f58
Fix #3634 invalid return value from _weakref.ref(Exception).__init__
...
Reviewers: Amaury, Antoine, Benjamin
2008-09-09 20:55:01 +00:00
Vinay Sajip
844f741039
Issue #3809 : Fixed spurious 'test.blah' file left behind by test_logging.
2008-09-09 13:42:08 +00:00
Amaury Forgeot d'Arc
d3ffb8974f
#3777 : long(4.2) returned an int, and broke backward compatibility.
...
the __long__ slot is allowed to return either int or long, but the behaviour of
float objects should not change between 2.5 and 2.6.
Reviewed by Benjamin Peterson
2008-09-09 07:24:30 +00:00
Brett Cannon
672237dc6c
warnings.catch_warnings() now returns a list or None instead of the custom
...
WarningsRecorder object. This makes the API simpler to use as no special object
must be learned.
Closes issue 3781.
Review by Benjamin Peterson.
2008-09-09 00:49:16 +00:00
Hirokazu Yamamoto
631be01252
Issue #3806 : LockTests in test_imp should be skipped when thread is not available.
...
Reviewed by Benjamin Peterson.
2008-09-08 23:38:42 +00:00
Hirokazu Yamamoto
74ce88fd67
Issue #3804 : Added test for Issue #2222 .
...
Reviewed by Benjamin Peterson.
2008-09-08 23:03:47 +00:00
Bill Janssen
61c001a939
incorporate fixes from issue 3162; SSL doc patch
2008-09-08 16:37:24 +00:00
Facundo Batista
ace0bcf669
Issue 3801. Fixing a dumb error in the deprecated parse_qsl()
...
function. Tests added.
2008-09-08 00:20:28 +00:00
Josiah Carlson
b7a841ca40
undoing change that broke trunk. Need to find a better solution to this.
2008-09-07 04:37:10 +00:00
Josiah Carlson
1680b8c16c
This fixes a small inconsistency between trunk and 3.0, closing bug 3764.
2008-09-07 03:53:58 +00:00
Benjamin Peterson
a853a89dc3
fix missing module
2008-09-06 23:19:15 +00:00
Antoine Pitrou
9fb1aca5d8
Backport relevant part of r66274 (in issue #874900 ).
2008-09-06 23:04:32 +00:00
Amaury Forgeot d'Arc
feb8cade4d
#3796 : A test class was not run in test_float.
...
Reviewed by Benjamin.
2008-09-06 20:53:51 +00:00
Benjamin Peterson
6ac7d7c80b
#1638033 : add support for httponly on Cookie.Morsel
...
Reviewer: Benjamin
2008-09-06 19:28:11 +00:00
Antoine Pitrou
ebcd0ced14
Issue #3535 : zipfile couldn't read some zip files larger than 2GB.
...
Reviewed by Amaury Forgeot d'Arc.
2008-09-05 23:30:23 +00:00
Antoine Pitrou
187ac1bda4
#3601 : test_unicode.test_raiseMemError fails in UCS4
...
Reviewed by Benjamin Peterson on IRC.
2008-09-05 22:04:54 +00:00
Brett Cannon
32476fc5a8
Deprecate bsddb for removal in Python 3.0.
...
Closes issue 3776.
Review by Nick Coghlan.
2008-09-05 18:33:51 +00:00
Hirokazu Yamamoto
171c4aae4e
Issue #3762 : platform.architecture() fails if python is lanched via its symbolic link.
...
Reviewed by Amaury Forgeot d'Arc.
2008-09-04 11:15:14 +00:00
Vinay Sajip
65d66e1006
Issue #3772 : Fixed regression problem in StreamHandler.emit().
2008-09-04 07:31:21 +00:00
Brett Cannon
a0b7444f68
test_py3kwarn had been overlooked when test.test_support.catch_warning() was
...
re-implemented to use warnings.catch_warnings() and had its API improved.
Closes issue #3768 .
Code review by Benjamin Peterson.
2008-09-03 22:45:11 +00:00
Facundo Batista
c585df9476
Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
...
to the urlparse one. Added a PendingDeprecationWarning in the old
module, it will be deprecated in the future. Docs and tests updated.
2008-09-03 22:35:50 +00:00
Jesus Cea
69acb43327
Python3.0 bsddb testsuite compatibility improvements
2008-09-03 22:07:11 +00:00
Marc-André Lemburg
b339b2aa6f
Issue #2562 : Fix distutils PKG-INFO writing logic to allow having
...
non-ascii characters and Unicode in setup.py meta-data.
2008-09-03 11:13:56 +00:00
Vinay Sajip
6a2fd81316
Issue #3726 : Allowed spaces in separators in logging configuration files.
2008-09-03 09:20:05 +00:00
Benjamin Peterson
0151b5350b
Merged revisions 66176 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66176 | benjamin.peterson | 2008-09-02 21:04:06 -0500 (Tue, 02 Sep 2008) | 1 line
fix typo
........
2008-09-03 02:14:03 +00:00
Benjamin Peterson
eb55fd8d2f
Merged revisions 66173 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r66173 | benjamin.peterson | 2008-09-02 18:57:48 -0500 (Tue, 02 Sep 2008) | 8 lines
A little 2to3 refactoring #3637
This moves command line logic from refactor.py to a new file called
main.py. RefactoringTool now merely deals with the actual fixers and
refactoring; options processing for example is abstracted out.
This patch was reviewed by Gregory P. Smith.
........
2008-09-03 00:21:32 +00:00
Amaury Forgeot d'Arc
293924bf31
Issue 2975: when compiling multiple extension modules with visual studio 2008
...
from the same python instance, some environment variables (LIB, INCLUDE)
would grow without limit.
Tested with these statements:
distutils.ccompiler.new_compiler().initialize()
print os.environ['LIB']
But I don't know how to turn them into reliable unit tests.
2008-09-02 23:19:56 +00:00
Hirokazu Yamamoto
3e7dd78344
Issue #3759 : test_asyncore.py leaked handle.
...
Reviewed by Amaury Forgeot d'Arc
2008-09-02 20:36:44 +00:00
Marc-André Lemburg
d15fad7a89
Add quotes around the file name to avoid issues with spaces.
...
Closes #3719 .
2008-09-02 10:32:34 +00:00
Nick Coghlan
91ae3ea2b4
Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl)
2008-09-02 10:14:47 +00:00
Gregory P. Smith
d712203d17
Issue #3708 : os.urandom no longer goes into an infinite loop when passed a
...
non-integer floating point number.
2008-09-02 05:36:11 +00:00
Jesus Cea
3b6be74304
Improve compatibility with Python3.0 testsuite
2008-09-02 02:29:06 +00:00
Brett Cannon
1eaf0742d8
Move test.test_support.catch_warning() to the warnings module, rename it
...
catch_warnings(), and clean up the API.
While expanding the test suite, a bug was found where a warning about the
'line' argument to showwarning() was not letting functions with '*args' go
without a warning.
Closes issue 3602.
Code review by Benjamin Peterson.
2008-09-02 01:25:16 +00:00
Benjamin Peterson
973e6c2cf3
remove py3k warnings about the threading api; update docs
...
Reviewer: Benjamin Peterson
2008-09-01 23:12:58 +00:00
Jesus Cea
057dfddc88
In Python3.0, "test.test_support" is renamed to "test.support".
2008-09-01 20:48:16 +00:00
Amaury Forgeot d'Arc
3571fbfed7
Issue #3751 : str.rpartition would perform a left-partition when called with
...
a unicode argument.
will backport.
2008-09-01 19:52:00 +00:00
Benjamin Peterson
e5c1d294b1
Merged revisions 65887,65889,65967-65968,65981 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65887 | benjamin.peterson | 2008-08-19 17:45:04 -0500 (Tue, 19 Aug 2008) | 1 line
allow the raw_input fixer to handle calls after the raw_input (ie. raw_input().split())
........
r65889 | benjamin.peterson | 2008-08-19 18:11:03 -0500 (Tue, 19 Aug 2008) | 1 line
no need for 2.4 compatibility now
........
r65967 | benjamin.peterson | 2008-08-21 18:43:37 -0500 (Thu, 21 Aug 2008) | 1 line
allow a Call to have no arguments
........
r65968 | benjamin.peterson | 2008-08-21 18:45:13 -0500 (Thu, 21 Aug 2008) | 1 line
add a fixer for sys.exc_info etc by Jeff Balogh #2357
........
r65981 | benjamin.peterson | 2008-08-22 15:41:30 -0500 (Fri, 22 Aug 2008) | 1 line
add a fixer to add parenthese for list and gen comps #2367
........
2008-09-01 17:17:22 +00:00
Benjamin Peterson
f7feaec16c
revert r66114 for Jesse
2008-09-01 17:10:46 +00:00
Jesse Noller
27cc8e1dd2
Submit Nick's patch for issue 3589, reviewed by jnoller
2008-09-01 16:47:25 +00:00
Hirokazu Yamamoto
ed8c6441b5
Issue #3748 : platform.architecture() printed vogus message on windows.
...
Reviewed by Marc-Andre Lemburg.
2008-09-01 14:32:58 +00:00
Vinay Sajip
72ed07843a
logging: fixed lack of use of encoding attribute specified on a stream.
2008-09-01 14:30:10 +00:00
Hirokazu Yamamoto
f7dd75f484
Issue #3732 : Backported r53335 to supress deprecation warning.
...
Reviewed by Benjamin Peterson.
2008-09-01 14:24:04 +00:00
Benjamin Peterson
f22c26ecf4
#3703 unhelpful _fileio.FileIO error message when trying to open a directory
...
Reviewer: Gregory P. Smith
2008-09-01 14:13:43 +00:00
Gregory P. Smith
f07e5a9e4b
issue3715: docstring representation of hex escaped string needs to be double
...
escaped.
2008-08-31 16:34:18 +00:00
Jesus Cea
4907d27c1f
Update bsddb code to version 4.7.3pre2. This code should
...
be compatible with Python 3.0, also.
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
2008-08-31 14:00:51 +00:00
Georg Brandl
5c669db194
#3707 : fix inf. recursion in pydoc topic search. Rev'd by Antoine.
2008-08-30 19:03:43 +00:00
Armin Rigo
dcde494114
A collection of crashers, all variants of the idea
...
of issue #3720 .
2008-08-29 21:21:52 +00:00
Antoine Pitrou
0668c62677
Issue #2534 : speed up isinstance() and issubclass() by 50-70%, so as to
...
match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
mechanism. In the process, fix a bug where isinstance() and issubclass(),
when given a tuple of classes as second argument, were looking up
__instancecheck__ / __subclasscheck__ on the tuple rather than on each
type object.
Reviewed by Benjamin Peterson and Raymond Hettinger.
2008-08-26 22:42:08 +00:00
Neal Norwitz
e39be53c3c
Try to reduce the flakiness of this test
2008-08-25 03:52:40 +00:00
Neal Norwitz
2a7767a173
Use bytes as return type from recv_bytes() methods. Not sure why this only
...
affects some buildbots.
R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
2008-08-25 03:03:25 +00:00
Neal Norwitz
0c519b3a5e
Fix problem reported by pychecker where AuthenticationError wasn't imported.
...
Add some test coverage to this code. More tests should be added (TODO added).
R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
2008-08-25 01:50:24 +00:00
Neal Norwitz
901e4715bd
#3662 : Fix segfault introduced when fixing memory leaks.
...
TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio
R (approach from bug)=Amaury and Benjamin
2008-08-24 22:03:05 +00:00
Georg Brandl
30de77b97d
#3654 : fix duplicate test method name. Review by Benjamin P.
2008-08-24 18:11:07 +00:00
Benjamin Peterson
712ee92309
generate py3k warnings on __getslice__, __delslice__, and __setslice__
...
Reviewer: Brett Cannon
2008-08-24 18:10:20 +00:00
Neal Norwitz
18aa388ca0
Fix:
...
* crashes on memory allocation failure found with failmalloc
* memory leaks found with valgrind
* compiler warnings in opt mode which would lead to invalid memory reads
* problem using wrong name in decimal module reported by pychecker
Update the valgrind suppressions file with new leaks that are small/one-time
leaks we don't care about (ie, they are too hard to fix).
TBR=barry
TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
in opt mode:
valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
-x test_logging test_ssl test_multiprocessing
valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
for i in `seq 1 4000` ; do
LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
./python -c pass
done
At least some of these fixes should probably be backported to 2.5.
2008-08-24 05:04:52 +00:00
Mark Hammond
69ed524045
Fix bug 3625: test issues on 64bit windows. r=pitrou
2008-08-23 00:59:14 +00:00
Benjamin Peterson
b6a955672f
fix a few get_name() calls and turn then to .name
...
Reviewer: Christian Heimes
2008-08-22 20:43:48 +00:00
Robert Schuppenies
af1aae3aa6
Issue #1342811 : Fixed broken patch. Reviewed by benjamin.peterson.
2008-08-22 08:03:43 +00:00
Mark Dickinson
892429b08b
Fix float.fromhex test to give additional information on failure. This
...
change is aimed at diagnosing issue 3633 (test_float fails on Solaris).
Reviewed by Benjamin Peterson
2008-08-21 20:02:24 +00:00
Barry Warsaw
07a4a3851d
Bump to 2.6b3.
2008-08-21 01:15:08 +00:00
Hirokazu Yamamoto
cd3b74d4e8
Reverted r65900. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
2008-08-20 16:15:28 +00:00
Hirokazu Yamamoto
838c79f472
Issue #3612 : Added some missing basic types in ctypes.wintypes.
2008-08-20 13:14:07 +00:00
Hirokazu Yamamoto
ccfdcd0cb2
fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)
2008-08-20 04:13:28 +00:00
Benjamin Peterson
e6b5ba621f
fix silly errors of mine
2008-08-20 02:15:42 +00:00
Benjamin Peterson
86da890a9e
newSymbolTable is not public API
2008-08-20 01:44:45 +00:00
Benjamin Peterson
e977ad4d7b
deprecate some useless, noop methods in symtable
2008-08-20 01:42:01 +00:00
Amaury Forgeot d'Arc
67f24f1ed6
follow-up of issue3473: update the compiler package to recognize the new syntax.
2008-08-20 00:08:47 +00:00
Benjamin Peterson
bd6a05fe81
check that the parser module can handle the new keyword syntax
2008-08-19 22:06:11 +00:00
Benjamin Peterson
bd7bda4345
Merged revisions 65876 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65876 | benjamin.peterson | 2008-08-19 15:54:52 -0500 (Tue, 19 Aug 2008) | 1 line
apply a fix I think will help Windows
........
2008-08-19 21:07:15 +00:00
Benjamin Peterson
80f0ed5bb1
allow keyword args to be passed in after *args #3473
2008-08-19 19:52:46 +00:00
Thomas Heller
0ad5ae02af
Fix a regression introduced by rev. 63792: ctypes function pointers
...
that are COM methods must have a boolean True value.
2008-08-19 19:25:04 +00:00
Benjamin Peterson
4348a25665
silence callable warning in hmac
2008-08-19 19:07:38 +00:00
Jesse Noller
5bc9f4c09c
issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
2008-08-19 19:06:19 +00:00
Benjamin Peterson
d068ad5879
Merged revisions 65853-65854 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65853 | benjamin.peterson | 2008-08-19 11:09:09 -0500 (Tue, 19 Aug 2008) | 1 line
apply a patch for #3131 . this solves the problem for the moment, but we should do some refactoring to get display logic out of RefactoringTool
........
r65854 | benjamin.peterson | 2008-08-19 11:37:38 -0500 (Tue, 19 Aug 2008) | 1 line
another quick fix to get lib2to3 to work
........
2008-08-19 16:41:34 +00:00
Benjamin Peterson
6ee1a31e9b
add py3k warnings for old threading APIs
...
they will still live in 3.0 but it can't hurt
2008-08-18 21:53:29 +00:00
Amaury Forgeot d'Arc
351ffb80c3
#2234 distutils failed with mingw binutils 2.18.50.20080109.
...
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.
2008-08-18 19:23:47 +00:00
Benjamin Peterson
26f521668a
fix old API names in test_ssl
2008-08-18 18:39:57 +00:00
Benjamin Peterson
82aa201022
patch up multiprocessing until it's API can be changed too
2008-08-18 18:31:58 +00:00
Benjamin Peterson
d810626f99
bring back the old API
2008-08-18 18:13:17 +00:00
Benjamin Peterson
a9b2222de4
change a few uses of the threading APIs
2008-08-18 18:01:43 +00:00
Benjamin Peterson
cbae869759
backport threading property changes
2008-08-18 17:45:09 +00:00
Benjamin Peterson
d8a8972ca9
change threading.getIdent to a property
...
This is new in 2.6 so now need to worry about backwards compatibility :)
2008-08-18 16:40:03 +00:00
Marc-André Lemburg
4763f7184e
Restore Python 2.3 compatibility and remove "with" usage.
2008-08-18 11:13:45 +00:00
Benjamin Peterson
541f7da3a9
add a test for reduce's move
2008-08-18 02:12:23 +00:00
Brett Cannon
88f801d409
Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
...
the module but exposed as part of the API.
2008-08-18 00:46:22 +00:00
Brett Cannon
7b96f07feb
Remove an unneeded import of abc.ABCMeta from 'inspect'.
2008-08-18 00:41:11 +00:00
Brett Cannon
46225e77fa
Remove two unneeded imports in 'io'.
2008-08-18 00:36:52 +00:00
Brett Cannon
25c9d6aa00
Remove imports of 'warnings' that are no longer needed in dummy_thread,
...
filecmp, and shelve.
2008-08-17 22:10:11 +00:00
Antoine Pitrou
954ea64753
#3580 : fix a failure in test_os
2008-08-17 20:15:07 +00:00
Benjamin Peterson
7dd854725b
get the symtable module back in working order
...
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
2008-08-17 17:13:26 +00:00
Antoine Pitrou
fd7c43e7be
#3556 : test_raiseMemError consumes an insane amount of memory
2008-08-17 17:01:49 +00:00
Antoine Pitrou
bebb18bef5
backport r65723: strengthen test_os.test_closerange
2008-08-17 14:43:41 +00:00
Antoine Pitrou
c53427087e
fix ZipFile.testzip() to work with very large embedded files
2008-08-17 13:06:29 +00:00
Brett Cannon
047e4a915d
Update distutils so that it triggers no warnings when run under -3.
2008-08-17 04:16:04 +00:00
Facundo Batista
94f243aa41
Issue 2464. Supports a malformation in the URL received
...
in a redirect.
2008-08-17 03:38:39 +00:00
Antoine Pitrou
1e45c58a55
Make test_ossaudiodev work.
2008-08-17 00:36:03 +00:00
Benjamin Peterson
0847332716
include filename and line number in SyntaxError
2008-08-16 22:11:33 +00:00
Brett Cannon
721b1457a0
Silence DeprecationWarning raised by mimetools and rfc822 in cgi.
2008-08-16 22:00:27 +00:00
Brett Cannon
0a4128eae2
Silence the DeprecationWarning raised in httplib when mimetools is imported.
2008-08-16 21:56:03 +00:00
Brett Cannon
abe423ed2c
Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
...
This does have an unfortunate side-effect of silencing the warning for all
subsequent code that imports mimetools as well since the warning is only
executed upon the first import of mimetools.
2008-08-16 21:47:07 +00:00
Benjamin Peterson
4acb1899c6
#3424 rearrange the order of tests in imghdr to place more common types first
2008-08-16 16:29:02 +00:00
Facundo Batista
eb90b788f4
Issue #2776 : fixed small issue when handling an URL with double slash
...
after a 302 response in the case of not going through a proxy.
2008-08-16 14:44:07 +00:00
Benjamin Peterson
1b5c32cd75
Merged revisions 65397 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65397 | collin.winter | 2008-08-01 22:39:06 -0500 (Fri, 01 Aug 2008) | 5 lines
Patch #3480 by Nick Edds.
Dramatically simplifies the fix_imports pattern, resulting in a reduction of the test_all_fixers runtime from 122+ secs to 59 secs (a good predictor of 2to3 performance).
........
2008-08-15 23:51:24 +00:00
Antoine Pitrou
b90a8be96f
#2676 : email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
2008-08-15 21:03:21 +00:00
Antoine Pitrou
11ec65d82b
Issue #3476 : make BufferedReader and BufferedWriter thread-safe
2008-08-14 21:04:30 +00:00
Thomas Heller
63d325e8c4
Disable the test until I have one that works.
2008-08-14 20:19:18 +00:00
Thomas Heller
6d2014ee59
Try to fix the test on 64-bit platforms.
2008-08-14 20:04:38 +00:00
Thomas Heller
57adf22f6e
issue #3554 : ctypes.string_at and ctypes.wstring_at must use the
...
pythonapi calling convention so that the GIL is held and error return
values are checked.
2008-08-14 19:10:48 +00:00
Facundo Batista
67d1981c51
Issue 1432. Fixes a bug caused because of the evolution
...
of the RFC that describes the behaviour. Note that we now
have the same behaviour than the current browsers.
2008-08-14 16:51:00 +00:00
Hirokazu Yamamoto
41a4f4631b
Fixed test_distutils error (test_build_ext) on VC6.
2008-08-14 05:50:43 +00:00
Brett Cannon
bf3157b8e0
Silence the DeprecationWarning of rfc822 triggered by its importation in
...
mimetools.
This has an unfortunate side-effect of potentially not letting any warning
about rfc822's deprecation be seen by user-visible code if rfc822 is not
imported before mimetools. This is because modules are cached in sys.modules
and thus do not have their deprecation triggered more than once. But this
silencing would have happened by other code that silences the use of mimetools
or rfc822 anyway in the stdlib or user code, and thus seems justified to be
done here.
2008-08-14 05:00:03 +00:00
Bill Janssen
39295c2650
remove duplicate close() from ssl.py; expose unwrap and add test for it
2008-08-12 16:31:21 +00:00
Jesse Noller
5d35373706
Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.
2008-08-11 19:00:15 +00:00
Antoine Pitrou
9fcd4b3d29
#3134 : shutil referenced undefined WindowsError symbol
2008-08-11 17:21:36 +00:00
Nick Coghlan
48361f5cbf
Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
2008-08-11 15:45:58 +00:00
Jesse Noller
f8d62d23e9
Remove the fqdn call for issue 3270
2008-08-11 14:28:07 +00:00
Georg Brandl
1e13ea94a3
- Issue #3537 : Fix an assertion failure when an empty but presized dict
...
object was stored in the freelist.
2008-08-11 09:07:59 +00:00
Robert Schuppenies
14646337bf
Issue #1342811 : Fix leak in Tkinter.Menu.delete. Commands associated to
...
menu entries were not deleted.
2008-08-10 11:01:53 +00:00
Brett Cannon
9fc5631be6
Silence warnings in csv about using reduce() when run under -3 by using
...
functools.reduce() instead.
2008-08-09 23:39:11 +00:00
Brett Cannon
46265860c2
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
...
warnings when running under -3.
2008-08-09 23:34:11 +00:00
Brett Cannon
83e818415a
Copy reduce() to _functools so to have functools.reduce() not raise a warning
...
from usage under -3.
2008-08-09 23:30:55 +00:00
Brett Cannon
c1b76e4aaa
Suppress the warning in asynchat from using buffer() when running udner -3.
...
Naively removing the usage causes a large number of test failures, so it was
just easier to suppress the warning.
2008-08-09 23:06:16 +00:00
Skip Montanaro
a032bf41f6
accept issue 3436
2008-08-08 22:52:51 +00:00
Brett Cannon
3f92bc6f48
Remove buffer() usage in the socket module by just slicing directly on the
...
object. This removes all warnings for the module caused by running under -3.
2008-08-08 04:27:28 +00:00
Brett Cannon
03446c43ca
Remove warnings generated for the suprocess module when run under -3. Required
...
commenting out True/False compatbility stuff, remove a use of apply(), and
remove a use of buffer() (just pulled the solution used in 3.0 which is direct
slicing).
2008-08-08 04:19:32 +00:00
Antoine Pitrou
74022ab013
#1288615 : Python code.interact() and non-ASCII input
2008-08-07 18:42:40 +00:00
Brett Cannon
3aa2a49ec9
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
...
has been removed there.
2008-08-06 22:28:09 +00:00
Mark Dickinson
c777a412f1
Remove duplicate import
2008-08-06 21:36:57 +00:00
Mark Dickinson
9752195a71
Docstring typo
2008-08-06 20:12:30 +00:00
Andrew M. Kuchling
10288e19bf
Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check for having os.stat available
2008-08-05 01:00:57 +00:00
Brett Cannon
211b3cdbdc
Remove use of callable() from pickle to silence warnings under -3.
2008-08-04 21:34:34 +00:00
Brett Cannon
d13e4ba416
Remove tuple parameter unpacking in aifc to silence warnings under -3.
2008-08-04 21:33:00 +00:00
Brett Cannon
d250c8d666
Silence warnings under -3 triggered by wsgiref.
2008-08-04 21:30:53 +00:00
Mark Dickinson
b646757e01
Issue #1481296 : (again!) Make conversion of a float NaN to an int or
...
long raise ValueError instead of returning 0. Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).
2008-08-04 21:30:09 +00:00
Brett Cannon
ff6868cf10
Remove a use of callable() from Tkinter to silence warnings under -3.
2008-08-04 21:24:43 +00:00
Brett Cannon
132fc54069
Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
...
warnings under -3.
2008-08-04 21:23:07 +00:00
Brett Cannon
cf297cd73f
Remove usage of apply() in sqlite3 to silence warnings under -3.
2008-08-04 21:19:41 +00:00
Brett Cannon
753ecb13db
Remove dict.has_key() usage in the shelve module to silence warnings under -3.
2008-08-04 21:17:15 +00:00
Brett Cannon
5b3d3729ba
Remove dict.has_key() usage in xml.sax to silence warnings under -3.
2008-08-04 21:10:50 +00:00
Brett Cannon
d9636e17cc
Remove the use of callable() in re to silence warnings under -3.
2008-08-04 21:07:59 +00:00
Andrew M. Kuchling
70a6dbd46e
Bug 3228: Explicitly supply the file mode to avoid creating executable files,
...
and add corresponding tests.
Possible 2.5 backport candidate
2008-08-04 01:43:43 +00:00
Brett Cannon
814820bb28
Remove assignment to True/False and use of dict.has_key() to silence warnings
...
while running under -3.
2008-08-04 00:50:11 +00:00
Brett Cannon
9bd059ff4e
Silence warnings under -3 about using dict.has_key() for modulefinder.
2008-08-04 00:27:29 +00:00
Brett Cannon
5dd504df28
Remove dict.has_key() usage in xml.dom.minidom to silence warnings while
...
running under -3.
2008-08-04 00:23:58 +00:00
Gregory P. Smith
a36f8fefb0
- Issue #1857 : subprocess.Popen.poll gained an additional _deadstate keyword
...
argument in python 2.5, this broke code that subclassed Popen to include its
own poll method. Fixed my moving _deadstate to an _internal_poll method.
2008-08-04 00:13:29 +00:00
Brett Cannon
e6bfe80b67
Remove dict.has_key() and apply() usage from the logging package to silence
...
warnings when run under -3.
2008-08-04 00:09:43 +00:00
Brett Cannon
36bed8a25f
Remove a use of callable() in fileinput to silence a -3 warning.
2008-08-03 23:52:32 +00:00
Brett Cannon
c66b03a4c1
Move filecmp from using dict.has_key() to dict.__contains__() to silence
...
warnings triggered under -3.
2008-08-03 23:46:46 +00:00
Brett Cannon
8161498817
Remove a dict.has_key() usage in email._parseaddr found while running -3.
2008-08-03 23:40:13 +00:00
Brett Cannon
1f571c6e60
Remove Barry's love of deprecated syntax to silence warnings in the email
...
package, when run under -3, about using <>.
2008-08-03 23:27:32 +00:00
Brett Cannon
b2f49ff88d
Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3.
2008-08-03 22:59:46 +00:00
Brett Cannon
0a0f608244
Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered
...
under -3 through test_xmlrpc.
2008-08-03 22:57:23 +00:00
Brett Cannon
c3ce0e53ad
Silence -3 warnings in pstats: a dict.has_key() usage and backport solution to
...
move from list.sort(cmp=) to key=.
2008-08-03 22:52:42 +00:00
Brett Cannon
cc2f7b4994
Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
2008-08-03 22:38:19 +00:00
Brett Cannon
52f03c5d20
Remove a use of list.sort(cmp=) to silence a -3 DeprecationWarning in
...
cookielib.
2008-08-03 22:34:25 +00:00
Brett Cannon
aca98b0a2c
Silence SyntaxWarning and DeprecationWarning in pydoc triggered by tuple
...
unpacking in parameter lists and using callable(). Found through -3.
2008-08-03 00:58:51 +00:00
Brett Cannon
89318d89d6
Silence some SyntaxWarnings for tuple unpacking in a parameter list for
...
urlparse when run under -3.
2008-08-03 00:51:02 +00:00
Antoine Pitrou
92a6240198
Preemptively backport the relevant parts of r65420
2008-08-02 21:58:05 +00:00
Lars Gustäbel
727bd0b687
Issue #3039 : Fix TarFileCompat.writestr() which always raised an
...
AttributeError since __slots__ were added to zipfile.ZipInfo in
r46967 two years ago.
Add a warning about the removal of TarFileCompat in Python 3.0.
2008-08-02 11:26:39 +00:00
Martin v. Löwis
aabf404ecc
Issue #799428 : Fix Tkinter.Misc._nametowidget to unwrap
...
Tcl command objects.
2008-08-02 07:20:25 +00:00
Brett Cannon
97b1fb6a98
Remove a __getitem__() removal on an exception to silence a warning triggered
...
under -3.
2008-08-02 03:37:50 +00:00
Brett Cannon
0d89407a0d
Remove a dict.has_key() use to silence a warning when running under -3.
2008-08-02 03:32:13 +00:00
Brett Cannon
926779e758
Remove a dict.has_key() use to silence a warning raised under -3.
2008-08-02 03:28:42 +00:00