Commit graph

12007 commits

Author SHA1 Message Date
Brett Cannon
c249bdab92 Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
2007-05-30 21:48:58 +00:00
Brett Cannon
90134c9a05 Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation. 2007-05-30 20:46:26 +00:00
Thomas Heller
b4eec28e33 Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
Closes bug #1726026.
2007-05-30 07:01:25 +00:00
Martin v. Löwis
e9607e24a7 Revert 55634. 2007-05-29 04:02:03 +00:00
Martin v. Löwis
a652f69c1c Test pre-commit hook for a link to a .py file. 2007-05-29 04:01:29 +00:00
Lars Gustäbel
a0fcb9384e Added errors argument to TarFile class that allows the user to
specify an error handling scheme for character conversion. Additional
scheme "utf-8" in read mode. Unicode input filenames are now
supported by design. The values of the pax_headers dictionary are now
limited to unicode objects.

Fixed: The prefix field is no longer used in PAX_FORMAT (in
conformance with POSIX).
Fixed: In read mode use a possible pax header size field.
Fixed: Strip trailing slashes from pax header name values.
Fixed: Give values in user-specified pax_headers precedence when
writing.

Added unicode tests. Added pax/regtype4 member to testtar.tar all
possible number fields in a pax header.

Added two chapters to the documentation about the different formats
tarfile.py supports and how unicode issues are handled.
2007-05-27 19:49:30 +00:00
Peter Astrand
81a191b351 Applied patch 1669481, slightly modified: Support close_fds on Win32 2007-05-26 22:18:20 +00:00
Brett Cannon
6cef076ba5 Remove direct call's to file's constructor and replace them with calls to
open() as ths is considered best practice.
2007-05-25 20:17:15 +00:00
Vinay Sajip
754a5fb640 Updated docstring for SysLogHandler (#1720726). 2007-05-25 07:05:59 +00:00
Neal Norwitz
38917f56fe Get test passing again by commenting out the reference to the test class. 2007-05-25 05:13:40 +00:00
Facundo Batista
d9880d07fc Commenting out the tests until find out who can test them in
one of the problematic enviroments.
2007-05-25 04:20:22 +00:00
Facundo Batista
e312416809 Fixing stupid error, and introducing a sleep, to see if the
other thread is awakened and finish sending data.
2007-05-25 03:47:19 +00:00
Facundo Batista
b4dfafaba6 Trying to make the tests work in Windows and Solaris, everywhere
else just works
2007-05-25 03:10:28 +00:00
Facundo Batista
62c744e7d1 Let's see if reading exactly what is written allow this live
test to pass (now I know why there were so few tests in ftp,
http, etc, :( ).
2007-05-24 20:51:19 +00:00
Facundo Batista
965fa24e8d Removed the .recv() in the test, is not necessary, and was
causing problems that didn't have anything to do with was
actually being tested...
2007-05-24 20:01:59 +00:00
Facundo Batista
711a54ebde Added an optional timeout parameter to urllib.ftpwrapper, with tests
(for this and a basic one, because there weren't any). Changed also
NEWS, but didn't find documentation for this function, assumed it
wasn't public...
2007-05-24 17:50:54 +00:00
Georg Brandl
dd96ca3d6b Fix parameter passing. 2007-05-24 17:33:33 +00:00
Georg Brandl
c90bc75994 shlex.split() now has an optional "posix" parameter. 2007-05-24 16:49:29 +00:00
Georg Brandl
2134e754f2 Patch #1686487: you can now pass any mapping after '**' in function calls. 2007-05-21 20:34:16 +00:00
Facundo Batista
70f996be24 Added timeout support to HTTPSConnection, through the
socket.create_connection function. Also added a small
test for this, and updated NEWS file.
2007-05-21 17:32:32 +00:00
Raymond Hettinger
767debb6aa Allow all alphanumeric and underscores in type and field names. 2007-05-21 16:40:10 +00:00
Raymond Hettinger
0d6a8ccfb7 Replace assertion with straight error-checking. 2007-05-21 08:13:35 +00:00
Brett Cannon
41bf2fad62 Cause posixfile to raise a DeprecationWarning. Documented as deprecated since
Ptyhon 1.5.
2007-05-20 23:57:38 +00:00
Brett Cannon
49da0ead95 Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.
2007-05-20 23:56:18 +00:00
Brett Cannon
5e2635103c Remove the macfs module. This led to the deprecation of macostools.touched();
it completely relied on macfs and is a no-op on OS X according to code
comments.
2007-05-20 23:17:38 +00:00
Brett Cannon
dc48b74497 Remove the rgbimg module. It has been deprecated since Python 2.5. 2007-05-20 07:09:50 +00:00
Georg Brandl
8d76cca026 Fix docstring for add_package in site.py. 2007-05-19 18:09:26 +00:00
Neal Norwitz
d410b320ec Give some clue as to what happened if the test fails. 2007-05-19 04:35:52 +00:00
Raymond Hettinger
f3241a3727 Fix beginner mistake -- don't mix spaces and tabs. 2007-05-19 01:50:11 +00:00
Raymond Hettinger
5a41daf096 Improvements to NamedTuple's implementation, tests, and documentation 2007-05-19 01:11:16 +00:00
Collin Winter
6290305e67 Backport PEP 3110's new 'except' syntax to 2.6. 2007-05-18 23:11:24 +00:00
Neal Norwitz
6eb7bede72 Verify neither dumps or loads overflow the stack and segfault. 2007-05-18 05:47:16 +00:00
Raymond Hettinger
72ef8daa88 calendar.py gets no benefit from xrange() instead of range() 2007-05-17 01:08:04 +00:00
Brett Cannon
d75f043c33 Remove the gopherlib module. It has been raising a DeprecationWarning since
Python 2.5.

Also remove gopher support from urllib/urllib2.  As both imported gopherlib the
usage of the support would have raised a DeprecationWarning.
2007-05-16 22:42:29 +00:00
Neal Norwitz
b1a9b37aa8 Fix bug in marshal where bad data would cause a segfault due to
lack of an infinite recursion check.

Contributed by Damien Miller at Google.
2007-05-16 20:05:11 +00:00
Georg Brandl
a09a96a544 HTML-escape the plain traceback in cgitb's HTML output, to prevent
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
2007-05-15 20:19:34 +00:00
Raymond Hettinger
8be9ab8497 Small speedup. 2007-05-14 20:52:31 +00:00
Neal Norwitz
cd498be90e Remove support for freebsd[23] which haven't been released since 2000
or earlier.  http://www.freebsd.org/releases/index.html
2007-05-13 21:13:42 +00:00
Georg Brandl
0c1f6fcaac Add bz2 to content encodings. 2007-05-13 08:04:07 +00:00
Raymond Hettinger
a74b67e15e Better tests for posixpath.commonprefix 2007-05-11 17:59:59 +00:00
Neal Norwitz
42dd86b8e2 Deprecate os.popen* and popen2 module in favor of the subprocess module. 2007-05-11 06:57:33 +00:00
Neal Norwitz
82be218e97 Remove trailing whitespace in docstring 2007-05-11 06:56:52 +00:00
Neal Norwitz
aa87fb6be4 Fix typo in docstring (the module is popen2, not 3). 2007-05-11 06:23:01 +00:00
Neal Norwitz
d9841039db Don't ever report a failure when the sum of the reference count differences
are zero.  This should help reduce the false positives.

The message about references leaking is maintained to provide as much
info as possible rather than simply suppressing the message at the source.
2007-05-11 05:55:15 +00:00
Collin Winter
fa9be8c289 Fix a bug in test.test_support.open_urlresource().
If the call to requires() doesn't precede the filesystem check, we get the following situation:
1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped
2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs
3. ./python Lib/test/regrtest.py test_foo # test runs (!)

By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
2007-05-09 04:14:36 +00:00
Brett Cannon
229cee2d3d Deprecate BaseException.message as per PEP 352. 2007-05-05 01:34:02 +00:00
Thomas Heller
2ebc4d8054 Oops, these tests do not run on Windows CE. 2007-05-04 19:56:32 +00:00
Thomas Heller
1ad576c267 Do not truncate 64-bit pointers to 32-bit integers.
Fixes SF #1703286, will backport to release25-maint.
2007-05-04 19:54:22 +00:00
Thomas Heller
0455214f1c Fix some ctypes test crashes, when running with a debug Python
version on win64 by using proper argtypes and restype function
attributes.
2007-05-04 07:14:39 +00:00
Kristján Valur Jónsson
170eee9d6a Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform. 2007-05-03 20:09:56 +00:00