Tim Peters
8ac3627b91
sre_{parse, compile} no longer define __all__.
2001-02-18 14:44:42 +00:00
Fredrik Lundh
f2989b22ff
- restored 1.5.2 compatibility (sorry, eric)
...
- removed __all__ cruft from internal modules (sorry, skip)
- don't assume ASCII for string escapes (sorry, per)
2001-02-18 12:05:16 +00:00
Skip Montanaro
78349072f7
removed __all__ from several modules
2001-02-18 03:30:53 +00:00
Skip Montanaro
1ca2ed35e0
removed __all__ - should probably rename makedict to _makedict unless it is
...
to be exported
2001-02-18 03:13:08 +00:00
Skip Montanaro
23bafc6fcd
add module-level constants to __all__
2001-02-18 03:10:09 +00:00
Andrew M. Kuchling
27eba5e888
Split the rpath argument into multiple paths, turning it into a list.
...
This partially fixes bug #128930 .
2001-02-17 04:48:41 +00:00
Neil Schemenauer
1a02086885
Linking just got simpiler on AIX and BeOS (closes SF patch #103679 ).
2001-02-16 03:31:13 +00:00
Tim Peters
0e6d213177
Whitespace normalization.
2001-02-15 23:56:39 +00:00
Skip Montanaro
0de65807e6
bunch more __all__ lists
...
also modified check_all function to suppress all warnings since they aren't
relevant to what this test is doing (allows quiet checking of regsub, for
instance)
2001-02-15 22:15:14 +00:00
Skip Montanaro
c3e11d6569
provide simple recovery/escape from apparent redirect recursion. If the
...
number of entries into http_error_302 exceeds the value set for the maxtries
attribute (which defaults to 10), the recursion is exited by calling
the http_error_500 method (or if that is not defined, http_error_default).
2001-02-15 16:56:36 +00:00
Guido van Rossum
4ac83474a3
Provide a default for the blocksize arg of storbinary().
...
SF patch #103517 by mfx.
2001-02-15 13:50:36 +00:00
Andrew M. Kuchling
8e6d44eedc
Patch #103748 from Toby Dickenson: fix typo in test_zlib that turns one
...
test case into a no-op because ''.join('hello world') == 'hello world'
2001-02-14 17:46:20 +00:00
Fred Drake
cc1f951b4c
Test section name using some strange characters, including a backslash
...
(SF bug #132288 ).
2001-02-14 15:30:31 +00:00
Fred Drake
d4df94b56d
Be much more permissive in what we accept in section names; there has been
...
at least one addition to the set of accepted characters for every release
since this module was first added; this should take care of the problem
in a more substantial way.
This closes SF bug #132288 .
2001-02-14 15:24:17 +00:00
Tim Peters
f9bb4969af
Miranda newlines: if anything at all was written to stdout, supply a
...
newline at the end if there isn't one already. Expected output has no
way to indicate that a trailing newline was not expected, and in the
interpreter shell *Python* supplies the trailing newline before printing
the next prompt.
2001-02-14 06:35:35 +00:00
Tim Peters
60e23f4cfc
Change doctest exception example to one whose detail hasn't changed since 1.5.2.
2001-02-14 00:43:21 +00:00
Tim Peters
ea4f931cb9
Teach doctest about newer "(most recent call last)" traceback spelling.
2001-02-13 20:54:42 +00:00
Guido van Rossum
467d723bd7
Added a comment explaining why this file must really have #!
...
/usr/local/bin/python and not #! /usr/bin/env python.
2001-02-13 13:13:33 +00:00
Skip Montanaro
5bba231d1e
The bulk of the credit for these changes goes to Bastian Kleineidam
...
* restores urllib as the file fetcher (closes bug #132000 )
* allows checking URLs with empty paths (closes patches #103511 and 103721)
* properly handle user agents with versions (e.g., SpamMeister/1.5)
* added several more tests
2001-02-12 20:58:30 +00:00
Fred Drake
95b96d3941
Added options that use square brackets in their names; this ensures that
...
GNOME-style internationalized options can be parsed using ConfigParser
(SF bug #131635 ).
Converted the tests to use test_support.verify() instead of output
comparison to work.
2001-02-12 17:23:20 +00:00
Fred Drake
d83bbbfd22
Allow square brackets in the option names; this makes it possible to use
...
ConfigParser with GNOME-ish config files that use the internationalization
conventions found in GNOME.
This closes SF bug #131635 .
2001-02-12 17:18:11 +00:00
Thomas Heller
bfae1964c8
This change makes imputil more closely emulate the standard import
...
mechanism to support self-modifying modules.
2001-02-12 09:17:06 +00:00
Tim Peters
76c066b103
test_pty started failing on Windows, but if and only if test___all__ was
...
run first. Indirectly due to Skip adding check_all("pty") to test___all__:
that caused the expected ImportError due to pty.py trying to import the
non-existent FCNTL to get handled by test___all__, leaving a partial
module object for pty in sys.modules, which caused the later import of
pty via test_pty to succeed. Then test_tpy died with an AttributeError,
due to trying to access attributes of pty that didn't exist. regrtest
viewed that as a failure rather than the appropriate "test skipped".
Fixed by deleting partial module objects in test___all__ when test___all__
handles an ImportError.
2001-02-12 03:27:31 +00:00
Skip Montanaro
c62c81e013
__all__ for several more modules
2001-02-12 02:00:42 +00:00
Marc-André Lemburg
ef0a032883
Patch by Finn Bock to make test_unicode.py work for Jython.
2001-02-10 14:09:31 +00:00
Tim Peters
9ae2148ada
Moved SequenceMatcher from ndiff into new std library module difflib.py.
...
Guido told me to do this <wink>.
Greatly expanded docstrings, and fleshed out with examples.
New std test.
Added new get_close_matches() function for ESR.
Needs docs, but LaTeXification of the module docstring is all it needs.
\CVS: ----------------------------------------------------------------------
2001-02-10 08:00:53 +00:00
Tim Peters
6db54c69a4
Add std test for doctest.
2001-02-10 01:36:47 +00:00
Tim Peters
ecb6fb95a2
Bump __version__ tuple.
2001-02-10 01:24:50 +00:00
Eric S. Raymond
6e025bcde8
String method cleanup.
2001-02-10 00:22:33 +00:00
Eric S. Raymond
c8c6aa201f
String method cleanup.
2001-02-10 00:06:00 +00:00
Jeremy Hylton
cafd495dfe
In O_writelines: Replace use of string.joinfields with "".join.
2001-02-09 23:44:22 +00:00
Tim Peters
6f8ee59653
SF bug #131560 : pdb imports 'repr', causing name collision
2001-02-09 23:28:07 +00:00
Jeremy Hylton
11db72a5c3
update to use new symtable interface
2001-02-09 22:57:10 +00:00
Jeremy Hylton
97a01674b2
update test cases for recent compiler changes: exec/import * in nested
...
functinos and cell vars with */** parameters
2001-02-09 22:56:46 +00:00
Tim Peters
6b6b39e8b6
Nuke accurate but confusing and unhelpful comments about split vs splitfields.
2001-02-09 20:18:41 +00:00
Tim Peters
10fb386399
Whitespace normalization.
2001-02-09 20:17:14 +00:00
Tim Peters
658cba6706
Whitespace normalization.
2001-02-09 20:06:00 +00:00
Eric S. Raymond
dbbbaf2696
joinfields -> join.
2001-02-09 17:05:53 +00:00
Eric S. Raymond
e37340edf2
String method conversion.
2001-02-09 16:56:44 +00:00
Eric S. Raymond
dcd3a875a5
String method conversion.
2001-02-09 16:45:10 +00:00
Sjoerd Mullender
62f1a23ade
Fixed syntax error.
2001-02-09 16:34:24 +00:00
Eric S. Raymond
13b3ba4df3
splitfields -> split
2001-02-09 16:25:20 +00:00
Marc-André Lemburg
85d6edfc83
Remove silly EMPTYSTRING global. Saves a global lookup.
2001-02-09 13:37:37 +00:00
Eric S. Raymond
b3acd3e4d3
String method conversion.
2001-02-09 12:20:51 +00:00
Eric S. Raymond
7e642e82d3
Eliminate use of string.whitespace and a string import with it.
...
Some of the characters (form feed, vertical tab) are not
legal continuation characters anyway, so this was wrong as
well as annoying.
2001-02-09 12:10:26 +00:00
Eric S. Raymond
83ff749827
String method conversion.
2001-02-09 12:03:45 +00:00
Eric S. Raymond
2846b0ab41
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 12:00:47 +00:00
Eric S. Raymond
fc170b1fd5
String method conversion.
2001-02-09 11:51:27 +00:00
Eric S. Raymond
d8c628bd59
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 11:46:37 +00:00
Eric S. Raymond
8b3cf58fa5
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 11:14:08 +00:00
Eric S. Raymond
b08b2d3166
String method conversion.
2001-02-09 11:10:16 +00:00
Eric S. Raymond
be9b507bdd
String method conversion.
2001-02-09 10:48:30 +00:00
Eric S. Raymond
be18552874
String method conversion.
2001-02-09 10:30:23 +00:00
Eric S. Raymond
c9838f9fcb
Test with an actual mbox caught a trivial error.
2001-02-09 10:28:34 +00:00
Eric S. Raymond
304b6a3225
Correction after translation test.
2001-02-09 10:26:06 +00:00
Eric S. Raymond
0c03cc203f
String method conversion.
2001-02-09 10:23:55 +00:00
Eric S. Raymond
bf97c9d87b
String method conversion.
2001-02-09 10:18:37 +00:00
Eric S. Raymond
8d87603e3e
Aha. We can remove he string import after all by using ValueError.
2001-02-09 10:14:53 +00:00
Eric S. Raymond
18af564bef
Use ValueError instead of string.atoi.error, since we've switched to
...
int().
2001-02-09 10:12:19 +00:00
Eric S. Raymond
19e6d6218e
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 10:10:02 +00:00
Eric S. Raymond
c95bf69fce
String method conversion.
2001-02-09 10:06:47 +00:00
Eric S. Raymond
7e9b4f58b6
String method conversion.
2001-02-09 09:59:10 +00:00
Eric S. Raymond
db5ebc7bc9
String method conversion.
2001-02-09 09:48:45 +00:00
Eric S. Raymond
51cc3bcd1c
String method conversion. Added a trivial main to test it with.
2001-02-09 09:44:47 +00:00
Eric S. Raymond
ec3bbdef94
String method conversion.
2001-02-09 09:39:08 +00:00
Eric S. Raymond
92852ad9a4
Oops...that will teach me to hit ^C^C too fast. Test passed.
2001-02-09 09:21:01 +00:00
Eric S. Raymond
66d9919cab
String method conversion.
2001-02-09 09:19:27 +00:00
Eric S. Raymond
ee5e61d3bc
String method conversion.
2001-02-09 09:10:35 +00:00
Eric S. Raymond
6b71e747b1
String method conversion.
2001-02-09 08:56:30 +00:00
Eric S. Raymond
141971f22a
String method conversion.
2001-02-09 08:40:40 +00:00
Eric S. Raymond
630e69cd89
String method conversion.
2001-02-09 08:33:43 +00:00
Eric S. Raymond
373c55e510
String method conversion.
2001-02-09 08:25:29 +00:00
Eric S. Raymond
9b93c5f248
String method conversion.
2001-02-09 07:58:53 +00:00
Eric S. Raymond
1b645e8cd3
String method conversion.
2001-02-09 07:49:30 +00:00
Eric S. Raymond
38151ed6b8
Fixed a bug in the test jig.
2001-02-09 07:40:17 +00:00
Eric S. Raymond
6b8c52835c
String method conversion.
2001-02-09 07:10:12 +00:00
Eric S. Raymond
b9c24fb543
String method conversion.
2001-02-09 07:02:17 +00:00
Eric S. Raymond
341f929f51
String method conversion.
2001-02-09 06:56:56 +00:00
Eric S. Raymond
25a0cbc796
String method conversion.
2001-02-09 06:50:21 +00:00
Eric S. Raymond
c013f30060
String method conversion.
2001-02-09 05:40:38 +00:00
Eric S. Raymond
5ff63d6780
Correction to test main.
2001-02-09 05:38:46 +00:00
Eric S. Raymond
f296019cc5
Correction after second code path test.
2001-02-09 05:37:25 +00:00
Eric S. Raymond
9eb54d9828
String method conversion.
2001-02-09 05:19:09 +00:00
Eric S. Raymond
b49f4a4b15
String method conversion.
2001-02-09 05:07:04 +00:00
Eric S. Raymond
20e4423ade
String method conversion.
2001-02-09 04:52:11 +00:00
Skip Montanaro
352674d01c
a few more __all__ lists
2001-02-07 23:14:30 +00:00
Skip Montanaro
cc012e92b2
test for presence of __builtins__ in names before deleting it, enabling this
...
to work with Jython (ugh! I hate that name!). This closes patch 103665.
2001-02-07 22:46:55 +00:00
Martin v. Löwis
fe28ca09a5
Add xml declaration into toxml testcase.
2001-02-06 01:16:48 +00:00
Martin v. Löwis
b417be2ad9
Do not allow empty qualifiedName in createDocument.
...
Rearrange pulldom to create documents with root element.
Provide clear methods so that the ContentHandler releases its hold on the
document.
2001-02-06 01:16:06 +00:00
Skip Montanaro
269b83bc05
added several more __all__ lists
2001-02-06 01:07:02 +00:00
Martin v. Löwis
46fa39ab1d
Add toprettyxml method into minidom, closes patch #103471 .
2001-02-06 00:14:08 +00:00
Guido van Rossum
9e1fe1ec67
A couple of changes to make this more conformant. MvL and Uche agree.
...
This will make it incompatible with the version found in Python 2.0.
Does this need to be done to PyXML too?
Changes that might break existing code are marked with (!) below.
- Formatting nit: no spaces inside parentheses: foo( a ) -> foo(a).
- Break long lines.
- (!) Fix getAttribute() and getAttributeNS() to return "" instead of
raising KeyError when the attribute is not found.
- (!) Fix getAttributeNodeNS() to return None instead of raising
KeyError. (Curiously, getAttributeNode() already did this.)
- Added hasAttributes(), which returns true iff the node has any
attributes. )This is DOM level 3.)
- (!) In createDocument(), if the qualified name is not empty,
actually create and insert the first element with that name (this
will become doc.documentElement). MvL believes that it should be an
error to specify an empty qualified name; I'm not going there today,
since it would require making a matching change to pulldom. Maybe
MvL will do this.
- In Document.writexml(), insert an xml declaration at the top. (This
doesn't include the encoding since there's no way to specify the
encoding. If that's preferred, all writexml() methods should be
fixed to support an optional encoding argument that they pass to
each other -- and they should use it to encode all text they write,
too. Later.)
2001-02-05 19:17:50 +00:00
Guido van Rossum
795ad56b31
Don't get fooled by an empty prefix with a valid namespaceURI -- in
...
this case, the code used to generate invalid tags and attribute names
with a leading colon, e.g. <:tag> or <tag :attr="foo">.
2001-02-05 18:50:15 +00:00
Andrew M. Kuchling
1b26b6a5f1
Patch #103587 : Fix typo that broke the install_data command; caught by
...
Uche Ogbuji
2001-02-05 17:43:11 +00:00
Jeremy Hylton
de6024872a
Fix test 9 (caught by ?!ng)
...
Add tests for unbound locals (Nick Mathewson)
2001-02-05 17:35:20 +00:00
Tim Peters
d66595fe42
Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call!
2001-02-04 03:09:53 +00:00
Neil Schemenauer
693291ba23
Superseded by $(srcdir)/Makefile.pre.in.
2001-02-03 17:18:21 +00:00
Fred Drake
2523977fb2
Added Node.isSameNode() support.
2001-02-02 19:40:19 +00:00
Fred Drake
0399bd8ce2
Ouch! I need a better test suite for this. ;-(
2001-02-02 19:28:35 +00:00
Jeremy Hylton
5e7cb240af
Add minimal interface to symtable: _symtable module.
2001-02-02 18:24:26 +00:00