Andrew M. Kuchling
08c08bb3d1
[Bug #912845 ] urllib2 only checks for a 200 return code, but 206 is also legal if a Range: header was supplied.
...
(Actually, should the first 'if' statement be modified to allow any 2xx status code?)
2004-06-29 13:19:19 +00:00
Andrew M. Kuchling
31352c5a30
Remove unused import. (If it's there for some deep, dark reason, it should have been commented.)
2004-06-29 13:17:29 +00:00
Andrew M. Kuchling
bd3200fa2b
Add test case for bug #912845 : requesting an HTTP byte range doesn't work
2004-06-29 13:15:46 +00:00
Andrew M. Kuchling
f1a2f9ec41
Docstring grammar fix
2004-06-29 13:07:53 +00:00
Brett Cannon
fbac294d59
rsync is now a recognized protocol that uses "netloc" (i.e. specifies a network
...
location) in its addressing.
Closes bug #981299 .
2004-06-29 04:02:40 +00:00
Raymond Hettinger
3b04ce824d
Patch from Mark Hammond to fix a test error.
...
Now runs without exception on WinME/98.
2004-06-28 06:57:19 +00:00
Gregory P. Smith
19699a9351
Adds support for DB.pget and DBCursor.pget methods.
...
Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb
mailing list 2004-03-26.
2004-06-28 04:06:49 +00:00
Barry Warsaw
11b91a0ea3
Added socket.getservbyport(), and make its second argument and that of
...
getservbyname() optional. Update the tests and the docs.
2004-06-28 00:50:43 +00:00
Gregory P. Smith
dc5af70631
SF patch / bug #967763
...
Fix memory leaks revealed by valgrind and ensuing code inspection.
In the existing test suite valgrind revealed two memory leaks (DB_get
and DBC_set_range). Code inspection revealed that there were many other
potential similar leaks (many on odd code error paths such as passing
something other than a DBTxn object for a txn= parameter or in the face
of an out of memory error). The most common case that would cause a
leak was when using recno or queue format databases with integer keys,
sometimes only with an exception exit.
2004-06-27 23:32:34 +00:00
Gregory P. Smith
a6b3caad41
Fix SF bug # 897820 - we can no longer use the DB_TRUNCATE flag when
...
opening the DB to implement legacy interface flag='n' support as
BerkeleyDB 4.2.52 no longer allows it in transaction protected
environments. Do the os.unlink ourselves.
2004-06-27 22:56:42 +00:00
Raymond Hettinger
ebd95222bf
* Silence a test failure that resulted when test_site was run by
...
regrtest.py after it ran test_frozen. This test was really only
designed to be run immediately after startup. Afterwards, other
modules could be loaded when had not been fixed-up by site.py
Took the chicken way out and only tested those modules known to
be imported by site.py.
* Normalized whitespace.
2004-06-27 03:02:18 +00:00
Skip Montanaro
5fad8bd088
remove debugging print
2004-06-26 19:42:10 +00:00
Skip Montanaro
90e0153940
Allow classes from other modules to be specified at startup. For example,
...
using the postfixproxy module from Spambayes you might start smtpd up like
smtpd.py -c spambayes.postfixproxy.SpambayesProxy :8025 :8026
2004-06-26 19:18:49 +00:00
Nicholas Bastin
d858a7763a
Massive performance improvement for C extension and builtin tracing code
2004-06-25 23:31:06 +00:00
Fred Drake
ec6229e352
Make distutils "install --home" support all platforms.
2004-06-25 23:02:59 +00:00
Fred Drake
22021579a9
add boilerplate so the test modules can be run as scripts
2004-06-25 19:04:21 +00:00
Raymond Hettinger
9c18e81fb2
Install two code generation optimizations that depend on NOP.
...
Reduces the cost of "not" to almost zero.
2004-06-21 16:31:15 +00:00
Fred Drake
2c9f889122
add a couple of tests for the build_scripts command
2004-06-21 16:15:22 +00:00
Martin v. Löwis
873a277eb4
Patch #975885 : print file name in err msg in quiet mode
2004-06-20 20:59:56 +00:00
Raymond Hettinger
28224f897a
Improve the documented advice on how to best use heapq.heapreplace().
2004-06-20 09:07:53 +00:00
Tim Peters
1b6f7a9057
Bug 975996: Add _PyTime_DoubleToTimet to C API
...
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c. timemodule should export
some other functions too (look for painful bits in datetimemodule.c).
Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods. Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
2004-06-20 02:50:16 +00:00
Brett Cannon
1c3fa18be7
shutil.move() will raise an exception when trying to move a directory into
...
itself.
Closes bug #919012 . Thanks Johannes Gijsbers.
2004-06-19 21:11:35 +00:00
Marc-André Lemburg
cdc7923f6d
Added normalization for Windows system name. Closes SF #945665 .
2004-06-19 17:17:00 +00:00
Brett Cannon
84601f14a3
Change pydoc.stripid() be able to match against 64-bit addresses by having
...
regex match from 6 to 16 characters.
2004-06-19 01:22:48 +00:00
Brett Cannon
c6c1f478d9
pydoc.stripid() is now case-insensitive for its regex to support platforms that
...
have pointer addresses in uppercase.
Closes bug #934282 . Thanks Robin Becker.
2004-06-19 01:02:51 +00:00
Fred Drake
2b2fe94cde
fix typo
2004-06-18 21:28:28 +00:00
Sjoerd Mullender
4dbda47aea
If self.packages is None (this can happen, I saw it), return
...
immediately (since None is not a sequence you can iterate over).
2004-06-18 20:39:11 +00:00
Thomas Heller
89a2dc72b1
Rebuild the wininst.exe files.
2004-06-18 18:30:27 +00:00
Fred Drake
b849eddde6
fix bug: list of data files was initialized too soon in build_py
2004-06-17 20:16:19 +00:00
Fred Drake
b8ab8b6da8
move support code to a helper module to ease re-use
2004-06-17 20:14:50 +00:00
Raymond Hettinger
aefde435ef
Reverse argument order for nsmallest() and nlargest().
...
Reads better when the iterable is a generator expression.
2004-06-15 23:53:35 +00:00
Fred Drake
d0620dcf00
add a test that actually installs some scripts
2004-06-15 16:55:46 +00:00
Fred Drake
bb7c14461d
One unit test for distutils is not much, but is more than we had yesterday.
...
We need to write more; hopefully the barrier is a little lower now.
2004-06-15 15:49:46 +00:00
Raymond Hettinger
a050171ee9
SF bug #973092 : inspect.getframeinfo bug if 'context' is to big
...
Make sure the start argument is not negative.
2004-06-15 11:22:53 +00:00
Raymond Hettinger
b67ad7e671
Patch #826074 : cmath.log optional base argument, fixes #823209
...
(Contributed by Andrew Gaul.)
2004-06-14 07:40:10 +00:00
Martin v. Löwis
ad21945d03
Back out #957240 .
2004-06-14 04:58:42 +00:00
Raymond Hettinger
bb6b7346ce
Apply heapq.nlargest() to find best matches.
2004-06-13 09:57:33 +00:00
Raymond Hettinger
59efe363b6
Add heapq to list of __all__ checks.
2004-06-13 05:46:14 +00:00
Raymond Hettinger
2e3dfaf707
Install C version of heapq.nsmallest().
2004-06-13 05:26:33 +00:00
Michael W. Hudson
84a7f0077c
note a really bad test (no time to fix now)
2004-06-12 16:30:32 +00:00
Raymond Hettinger
b25aa36f83
Improve the memory performance and speed of heapq.nsmallest() by using
...
an alternate algorithm when the number of selected items is small
relative to the full iterable.
2004-06-12 08:33:36 +00:00
Fred Drake
0eb32a65b0
Add support for package data.
...
This is basically the support for package data from Phillip Eby's
setuptools package. I've changed it only to fit it into the core
implementation rather than to live in subclasses, and added
documentation.
2004-06-11 21:50:33 +00:00
Michael W. Hudson
5c26e86096
lightly modified version of my patch
...
[ 971323 ] make test_signal less annoying
after some comments on IRC from a highly opinionated australian who
wishes to remain anonymous.
2004-06-11 18:09:28 +00:00
Anthony Baxter
c982bbde1c
Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora releases.
...
Ignore it, rather than breaking.
Will backport.
(and r1.1000 for Misc/NEWS!)
2004-06-11 17:16:46 +00:00
Anthony Baxter
01e80b45d6
fix a poorly worded error message
2004-06-11 15:57:49 +00:00
Skip Montanaro
a5616d2255
Respect a module's __all__ attribute. Closes #969938 .
2004-06-11 04:46:12 +00:00
Raymond Hettinger
bce036b49e
Convert test_heapq.py to unittests.
2004-06-10 05:07:18 +00:00
Raymond Hettinger
33ecffb65a
SF patch #969791 : Add nlargest() and nsmallest() to heapq.
2004-06-10 05:03:17 +00:00
Tim Peters
4182cfd7db
test_devnull(): Use assertEqual() instead of an assert stmt.
2004-06-08 20:34:34 +00:00
Brett Cannon
6ccc9a99df
Removed test_sitepackages test. Skip discovered that it only passed if Python
...
had already been installed previously.
2004-06-08 18:25:48 +00:00