Greg Ward
be86bdea73
Standardize whitespace in function calls.
2000-09-26 01:56:15 +00:00
Greg Ward
fd7b91eff9
Standardize whitespace in function calls and docstrings.
2000-09-26 01:52:25 +00:00
Guido van Rossum
de33c79fdb
HP-UX is another one of those platforms using an alternative lock
...
structure (same as AIX).
2000-09-26 00:31:18 +00:00
Fred Drake
af57431701
Include the version-detecting code to allow PyXML to override the "standard"
...
xml package. Require at least PyXML 0.6.1.
2000-09-25 17:30:17 +00:00
Barry Warsaw
38bfc4d0d5
Add a test for SF bug #110621 ; stripping square brackets off of
...
addresses with domain literals.
2000-09-25 15:09:28 +00:00
Barry Warsaw
2ea2b1133e
AddrlistClass.getdomainliteral(): rfc822 requires that the domain
...
literal be wrapped in square brackets. This fix replaces the square
brackets that were previously being stripped off. Closes SF bug
#110621 .
2000-09-25 15:08:27 +00:00
Guido van Rossum
4126736791
When reading the file, option names were not passed through
...
self.optionxform(), which (in the default case) caused options spelled
with opper case letters in their name to be inaccessible. Reported by
"Todd R. Palmer" <t2palmer@bellsouth.net> on
activepython@listserv1.ActiveState.com .
2000-09-25 14:42:33 +00:00
Greg Ward
68ded6e6f1
Added 'translate_longopt()' function.
2000-09-25 01:58:31 +00:00
Greg Ward
2f2b6c62ba
Change to use the new 'translate_longopt()' function from fancy_getopt, rather
...
than rolling our own with fancy_getopt's 'longopt_xlate' global.
2000-09-25 01:58:07 +00:00
Greg Ward
d644ca2120
Added a bunch of missing "=" signs in the option table.
...
Removed script options -- don't think they ever worked, weren't
very well thought through, etc.
2000-09-25 01:53:01 +00:00
Greg Ward
af64aed5cf
Renamed '--keep-tree' option to '--keep-temp', for consistency
...
with the bdist_* commands.
2000-09-25 01:51:01 +00:00
Greg Ward
99b032eaf2
Added 'boolean_options' list to support config file parsing.
2000-09-25 01:41:15 +00:00
Greg Ward
817dc098ef
Added 'strtobool()' function: convert strings like "yes", "1",
...
"no", "0", etc. to true/false.
2000-09-25 01:25:06 +00:00
Greg Ward
ceb9e226a6
Fixed some bugs and mis-features in handling config files:
...
* options can now be spelled "foo-bar" or "foo_bar" (handled in
'parse_config_files()', just after we parse a file)
* added a "[global]" section so there's a place to set global
options like verbose/quiet and dry-run
* respect the "negative alias" dictionary so (eg.) "quiet=1" is
the same as "verbose=0" (this had to be done twice: once in
'parse_config_file()' for global options, and once in
'_set_command_options()' for per-command options)
* the other half of handling boolean options correctly: allow
commands to list their boolean options in a 'boolean_options'
class attribute, and use it to translate strings (like "yes", "1",
"no", "0", etc) to true or false
2000-09-25 01:23:52 +00:00
Thomas Wouters
84da8aa7e2
Fix inconsistent use of space/tabs.
2000-09-25 00:11:37 +00:00
Martin v. Löwis
a13a9dcb9c
Use SAX2 namespace support.
2000-09-24 21:54:14 +00:00
Martin v. Löwis
58af43fd76
[Patch 101634]
...
xml.sax: Fix parse and parseString not to rely on ExpatParser
Greatly simplify import logic by using __import__
saxutils: Support Unicode strings and files as parameters to
prepare_input_source
2000-09-24 21:31:06 +00:00
Martin v. Löwis
2066fa023c
Find feature names in handler.
2000-09-24 21:17:39 +00:00
Lars Gustäbel
424980fd4d
Enabled EntityResolver test again now that pyexpat.c has been fixed.
2000-09-24 20:57:04 +00:00
Lars Gustäbel
3a361f4f8b
Fixed another bug.
2000-09-24 20:55:01 +00:00
Lars Gustäbel
bb757136b2
Improvements to doco strings.
...
Tiny bug fix to expatreader.py (endDocument was only called after errors).
2000-09-24 20:38:18 +00:00
Martin v. Löwis
33315b180b
Use findfile to locate input and output files.
2000-09-24 20:30:24 +00:00
Lars Gustäbel
e292a24589
Added EntityResolver and DTDHandler (patch 101631) with test cases.
2000-09-24 20:19:45 +00:00
Lars Gustäbel
716efea181
Added necessary test input file for test_sax.py
2000-09-24 18:57:26 +00:00
Lars Gustäbel
523b0a6ec8
Added back the InputSource class (patch 101630).
2000-09-24 18:54:49 +00:00
Lars Gustäbel
b7536d5860
Added test cases for the InputSource class.
2000-09-24 18:53:56 +00:00
Fredrik Lundh
b49f88bfc1
- Improved handling of win32 proxy settings (addresses bug #114256 ).
...
The earlier code assumed "protocol=host;protocol=host;..." or "host",
but Windows may also use "protocol=host" (just one entry), as well as
"protocol://host". This code needs some more work, so I'll leave the
bug open for now.
2000-09-24 18:51:25 +00:00
Lars Gustäbel
ab64787dca
Added test cases for the Attributes interface.
2000-09-24 18:40:52 +00:00
Lars Gustäbel
32bf12eb8a
Updated to final Attributes interface (patch 101632).
2000-09-24 18:39:23 +00:00
Lars Gustäbel
e84bf751bb
Updated to new SAX method signatures (*NS, patch 101573).
2000-09-24 18:31:37 +00:00
Lars Gustäbel
f43cf31f4a
Updated to new *NS signatures (patch 101573).
2000-09-24 18:29:24 +00:00
Fredrik Lundh
19f977ba40
- don't hang if group id is followed by whitespace (closes bug #114660 )
2000-09-24 14:46:23 +00:00
Lars Gustäbel
96753b3482
Added first start on SAX 2.0 tests.
2000-09-24 12:24:24 +00:00
Lars Gustäbel
358f4da29c
Added back missing argument to ignorableWhitespace signature.
2000-09-24 11:06:27 +00:00
Lars Gustäbel
fc643c339d
Bug fix to namespace handling in XMLGenerator (now adds declarations).
...
Bug fixes to XMLFilterBase (wrong ignorableWhitespace signature and
did not inherit set*Handler methods from XMLReader.)
2000-09-24 10:53:31 +00:00
Nicholas Riley
9a580c440c
Fixes for Python 1.6 compatibility - socket bind and connect get a
...
tuple instead two arguments.
2000-09-24 06:29:50 +00:00
Nicholas Riley
21afd01ce2
Change for Python 1.6 compatibility - UNIX's 'os' module defines
...
'spawnv' now, so we check for 'fork' first.
2000-09-24 06:28:47 +00:00
Fred Drake
1f54902e05
Conform to the Python style guide.
2000-09-24 05:21:58 +00:00
Fred Drake
ddb486745b
Conform more closely with the Python style guide.
2000-09-23 05:32:26 +00:00
Fred Drake
96ea196ea8
Use the public name for the Expat parser; "pyexpat" is deprecated.
2000-09-23 04:49:30 +00:00
Fred Drake
7fbc85c5c5
Rename the public interface from "pyexpat" to "xml.parsers.expat".
2000-09-23 04:47:56 +00:00
Fred Drake
003b9250e3
Add a wrapper around the pyexpat module, making the "public" name of
...
the module "xml.parsers.expat".
2000-09-23 04:44:43 +00:00
Greg Ward
f84fb660cb
Split 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
...
easier extensibility).
2000-09-23 01:20:19 +00:00
Greg Ward
7b87c0e1bb
Whitespace tweaks.
2000-09-23 01:10:10 +00:00
Greg Ward
9e3dc4e928
Reformat docstrings.
...
Standardize use of whitespace on function calls.
2000-09-23 00:59:34 +00:00
Fred Drake
d9a8dec135
Maildir.__init__(): Use the correct filter for filenames, so that this
...
class conforms to the maildir specification.
2000-09-22 18:41:50 +00:00
Neil Schemenauer
ef5f2b9dbb
- plug a memory leak due to circular lists
2000-09-22 15:30:16 +00:00
Neil Schemenauer
d569f23da9
- Replace debugleak flag with findleaks flag. The new SAVEALL GC option is
...
used to find cyclic garbage produced by tests.
2000-09-22 15:29:28 +00:00
Neil Schemenauer
faae266e89
- Add test for new SAVEALL debugging flag
...
- Use exceptions rather than asserts for failing tests.
- Reorganize tests and produce some output if verbose option is set.
2000-09-22 15:26:20 +00:00
Tim Peters
f58a7aafea
Implemented new os.startfile function, unique to Windows, exposing a
...
subset of Win32 ShellExecute's functionality. Guido wants this because
IDLE's Help -> Docs function currently crashes his machine because of a
conflict between his version of Norton AntiVirus (6.10.20) and MS's
_popen. Docs for startfile are being mailed to Fred (or just read the
docstring -- it tells the whole story).
Changed webbrowser.py to use os.startfile instead of os.popen on Windows.
Changed IDLE's EditorWindow.py to pass an absolute path for the docs
(hardcoding ShellExecute's "directory" arg to "." as used to be done let
IDLE work, but made the startfile command exceedingly obscure for other
uses -- the MS docs are terrible, of course, & still not sure I
understand it).
Note that Windows Python must link with shell32.lib now! That's where
ShellExecute lives.
2000-09-22 10:05:54 +00:00