Skip Montanaro
91cc17d20e
Only AttributeError can be raised in this situation - on systems without
...
getuid or getpid. posix_getuid & posix_getpid never raise exceptions when
called with no args.
2002-03-23 05:58:52 +00:00
Skip Montanaro
3c4a629bdc
import statements only raise ImportError, right?
2002-03-23 05:55:18 +00:00
Skip Montanaro
db5d1444a1
tighten up except - only ValueError can be raised in this situation
2002-03-23 05:50:17 +00:00
Skip Montanaro
3c643d8db3
tighten up except - int() only raises ValueError
2002-03-23 05:47:31 +00:00
Skip Montanaro
6ec967d066
added RFC 2396 tests from Aaron Swartz included in bug # 450225.
...
converted to use unittest
2002-03-23 05:32:10 +00:00
Skip Montanaro
b1ba6b0044
no longer needed - converted test_urlparse.py to use unittest
2002-03-23 05:29:59 +00:00
Tim Peters
0c2c8e77fb
SF bug 533234: tm_isdst > 1 Passed to strftime.
...
One more time on this turkey, but duller instead of cleverer.
Curious: The docs say __getslice__ has been deprecated since 2.0, but
list.__getitem__ still doesn't work if you pass it a slice. This makes
it a lot clearer to emulate a list by *being* a list <wink>.
Bugfix candidate. Michael, just pile this patch on top of the others
that went by -- no need to try to pick these apart.
2002-03-23 03:26:53 +00:00
Skip Montanaro
07c57d4e60
better solution for bug #533234 courtesy of Tim.
...
Michael: use this version as the bugfix candidate...
2002-03-22 18:35:51 +00:00
Skip Montanaro
e8c6a3eef6
guarantee that the dst flag of synthetic "time" tuples passed to strftime
...
is always 0. This closes bug #533234 .
2002-03-22 18:07:49 +00:00
Walter Dörwald
92b48b739f
use stat attributes instead of tuple entries
...
and remove the unneccessary "import stat" statement.
2002-03-22 17:30:38 +00:00
Andrew M. Kuchling
b26ca9db2e
Revert part of previous patch: several install_* subcommands expect
...
.compile to be None, and set it to true if it is.
Caught by Pearu Peterson.
Bugfix candidate, if the previous change is accepted for
release22-maint.
2002-03-22 15:35:17 +00:00
Andrew M. Kuchling
76fffd81e9
Add a simple test suite for netrc.py, and remove it from test_sundry
2002-03-22 02:48:57 +00:00
Andrew M. Kuchling
366a1df7f1
[Bug #532115 ] netrc module was broken
...
* 'macdef' (macro definition) wasn't parsed correctly
* account value not reset for a subsequent 'default' line
* typo: 'whitepace' -> 'whitespace'
Bugfix candidate.
2002-03-22 02:46:41 +00:00
Andrew M. Kuchling
3f1822b468
Add missing Boolean options
...
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None
Bugfix candidate.
2002-03-21 23:46:54 +00:00
Andrew M. Kuchling
da9f0bf4dd
Add unlisted Boolean options. Thomas H., can you please check that I
...
got this right?
Bugfix candidate, unless Thomas notes a problem.
2002-03-21 23:44:01 +00:00
Andrew M. Kuchling
5de82a855e
[Bug #517451 ] bdist_rpm didn't list all of its Boolean options.
...
(Someone should check the other commands for this same error.)
Bugfix candidate.
2002-03-21 23:27:54 +00:00
Walter Dörwald
b25c2b0a4a
[Apply SF patch #504943 ]
...
This patch makes it possible to pass Warning instances as the first
argument to warnings.warn. In this case the category argument
will be ignored. The message text used will be str(warninginstance).
2002-03-21 10:38:40 +00:00
Martin v. Löwis
047c05ebc4
Do not insert characters for unicode-escape decoders if the error mode
...
is "ignore". Fixes #529104 .
2002-03-21 08:55:28 +00:00
Andrew M. Kuchling
bdf1f19fee
[Apply patch #500457 from the PyXML tracker]
...
Add iterator support to pulldom.DOMEventStream
New feature, so not a bugfix candidate (though it should be safe for inclusion)
2002-03-20 23:56:34 +00:00
Tim Peters
bcc2c125f8
Change raw "except:" constructs to pass on KeyboardInterrupt.
...
Bugfix candidate? Don't know -- never bothered me, but it's minor
either way.
2002-03-20 19:32:03 +00:00
Neil Schemenauer
cacbdf6229
Make GzipFile an iterator. Closes bug #532621 .
2002-03-20 18:36:00 +00:00
Andrew M. Kuchling
c63a396c5f
A faster version of the find_prefix_at_end() function (that I found in the
...
last Medusa release)
Should be safe as a bugfix candidate, though it's not fixing a bug.
2002-03-20 02:22:58 +00:00
Andrew M. Kuchling
a3c0b9334e
[Bug #531616 ] Make HTTPS work again by adding a sendall method to the
...
FakeSocket class. Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.
Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look... (I'll try to give it a once-over.)
2.2.1 bugfix candidate.
2002-03-18 22:51:48 +00:00
Andrew M. Kuchling
56a42356b7
To make 'urllib.py -t' run again, change FTP URL to a file that actually
...
exists.
2002-03-18 22:18:46 +00:00
Michael W. Hudson
bd3e771a97
amk's fix attached to
...
[ 516299 ] urlparse can get fragments wrong
2002-03-18 13:06:00 +00:00
Martin v. Löwis
5c137c2251
Patch #495598 : add an -q (quiet) option to pycompile.
2002-03-18 12:44:08 +00:00
Martin v. Löwis
73f570ba08
Correctly set default entry in all cases.
2002-03-18 10:43:18 +00:00
Martin v. Löwis
d22368ffb3
Patch #499513 : use readline() instead of readlines(). Removed the
...
unnecessary redirection limit code which is already in FancyURLopener.
2002-03-18 10:41:20 +00:00
Martin v. Löwis
9d3eba87d6
Patch #525870 : Avoid duplicate stat calls, use st_ attributes.
2002-03-18 08:37:19 +00:00
Guido van Rossum
7e30548285
Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault
...
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.
I also added a testcase for the fix to classmethods() in test_descr.py.
I've already applied this to the 2.2 branch.
2002-03-18 03:09:06 +00:00
Skip Montanaro
c99475e7a0
dump the string exception fallback for anydbm.error.
2002-03-18 03:07:20 +00:00
Skip Montanaro
4894a97e22
initial test_anydbm module - based on test_dumbdbm.py
2002-03-18 03:00:37 +00:00
Steven M. Gava
dbfe92cd27
further work on dynamic reconfiguration;
...
keybindings
2002-03-18 02:38:44 +00:00
Paul Prescod
b845f3b4dd
netrc will now raise a more predictable exception when $HOME is not set
...
(as it is often not on Windows). The code was always designed so that it
would raise an IOError if there was no .netrc. But if there was no $HOME
it would return a KeyError which would be somewhat unexpected for code
that didn't know the algorithm it used to find .netrc. The particular
code that triggered this problem for me was ftpmirror.py which handled
the IOError gracefully, but not the KeyError.
2002-03-18 02:13:48 +00:00
Skip Montanaro
c08fe82b32
restructure a bit to not rely on test case execution ordering
...
add test case for bug #482460
2002-03-17 23:03:42 +00:00
Jack Jansen
03d3e33af9
Regenerated for Irix 6.5.
2002-03-17 21:49:20 +00:00
Jack Jansen
5ae73c8f75
Patch by Michael Pruett: make regen work on Irix 6.0 and 6.5.
2002-03-17 21:46:48 +00:00
Tim Peters
2400831773
SF patch 530070: pydoc regression, from Martin and Guido.
...
Change the way __doc__ is handled, to avoid blowing up on non-string
__doc__ values.
2002-03-17 18:56:20 +00:00
Martin v. Löwis
587c98c863
Patch #430706 : Persistent connections in BaseHTTPServer.
2002-03-17 18:37:22 +00:00
Fred Drake
15b6893d95
Wrap a couple of long lines.
2002-03-15 14:37:23 +00:00
Skip Montanaro
1b9c177c5d
Corrected _localized_name.__getitem__ based on code in patch 503202 (which I
...
thought was just a bug report, so didn't notice - doh!). This handles
slicing, which v 1.23 didn't.
2002-03-15 13:52:43 +00:00
Martin v. Löwis
95700f7cde
Patch #527427 : minidom fails to use NodeList sometimes.
2002-03-15 13:51:59 +00:00
Jack Jansen
e89f128a60
Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-)
...
2.2.1 candidate.
2002-03-15 13:50:54 +00:00
Jack Jansen
ff0a7b8ca2
If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed.
...
2.2.1 candidate.
2002-03-15 13:47:32 +00:00
Michael W. Hudson
e5363b7de5
....
2002-03-15 10:21:59 +00:00
Michael W. Hudson
ce00b735cd
Fix
...
[ 530236 ] os.py assumes existence of statvfs_resul
This was pretty dense of me. Sorry.
2.2.1 candidate.
2002-03-15 10:18:58 +00:00
Skip Montanaro
4c8349592d
make _localized_name instances work more like the tuples they replaced. In
...
particular, negative indexes work and they are limited by the actual length
of the names they represent (weekday and month names). This closes bug
#503202 .
2002-03-15 04:08:38 +00:00
Skip Montanaro
693c6c44c4
added test case to catch index errors with _localized_name class
2002-03-15 03:57:04 +00:00
Skip Montanaro
b32302176e
first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.
2002-03-15 02:54:03 +00:00
Neal Norwitz
9672901742
Remove duplicate "import os"
2002-03-14 23:48:18 +00:00