Fred Drake
d79c33a47b
Minor cleanups, wrap long lines.
2000-09-25 14:14:30 +00:00
Guido van Rossum
b00adfbd83
Add missing prototypes for the benefit of SunOS 4.1.4 */
2000-09-25 13:22:00 +00:00
Guido van Rossum
4b36e6bde1
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
...
undefined. ccording to MvL, this is safe: the MS_SYNC flag means that
msync() returns when all I/O operations are scheduled; without it, it
waits until they are complete, which is acceptable behavior.
2000-09-25 13:16:15 +00:00
Fredrik Lundh
cfcea49218
unicode database compression, step 2:
...
- fixed attributions
- moved decomposition data to a separate table, in preparation
for step 3 (which won't happen before 2.0 final, promise!)
- use relative paths in the generator script
I have a lot more stuff in the works for 2.1, but let's leave
that for another day...
2000-09-25 08:07:06 +00:00
Tim Peters
2101348830
Fiddled w/ /F's cool new splitbins function: documented it, generalized it
...
a bit, sped it a lot primarily by removing the unused assumption that None was
a legit bin entry (the function doesn't really need to assume that there's
anything special about 0), added an optional "trace" argument, and in __debug__
mode added exhaustive verification that the decomposition is both correct and
doesn't overstep any array bounds (which wasn't obvious to me from staring at the
generated C code -- now I feel safe!). Did not commit a new unicodedata_db.h, as
the one produced by this version is identical to the one already checked in.
2000-09-25 07:13:41 +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
Fredrik Lundh
f367cacb98
unicode database compression, step 1:
...
- use unidb compression for the unicodedata module. on Windows,
the new unidatabase module is 120k, down from nearly 600k.
2000-09-24 23:18:31 +00:00
Tim Peters
51dc968b0b
Repaired damaged string.
2000-09-24 22:12:45 +00:00
Fred Drake
28adf52b06
xmlparse_ExternalEntityParserCreate(): Add required cast to return to
...
avoid compiler warnings.
2000-09-24 22:07:59 +00:00
Jack Jansen
46e13027a8
Readme and relnotes for intermediate 2.0b1+ release.
2000-09-24 22:01:53 +00:00
Jack Jansen
55a0bde290
Handle the ****/**** appleevent wildcard when called as a main program, so that it becomes a handy debugging tool (BuildApplet, copy aete resource, apply applescript to it).
2000-09-24 22:00:11 +00:00
Jack Jansen
486f138224
Added a workaround for shortcomings in the OSA support: there can be class/property conflicts and passing classes as arguments doesn't work. The package now seems to work.
2000-09-24 21:56:43 +00:00
Martin v. Löwis
a13a9dcb9c
Use SAX2 namespace support.
2000-09-24 21:54:14 +00:00
Fredrik Lundh
a4287c29b3
unicode database compression, step 1:
...
- use unidb compression for the unicodedata module. on Windows,
the new unidatabase module is 120k, down from nearly 600k.
2000-09-24 21:45:34 +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
Fredrik Lundh
eedb5764a5
unicode database compression, step 1:
...
- use unidb compression for the unicodedata module. on Windows,
the new unidatabase module is 120k, down from nearly 600k.
2000-09-24 21:28:28 +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
4a30a07186
Added ExternalEntityParserCreate method (patch 101635).
2000-09-24 20:50:52 +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
Martin v. Löwis
bc1c1c98eb
Install xml/parsers, not xml/parser.
2000-09-24 19:57:18 +00:00
Martin v. Löwis
05a65d6745
If dbopen is not in libc, checking whether it is in libdb will fail if
...
db_185.h has renamed that function to __db185_open, which it does in DB 3.1.
So don't check whether the function is in -ldb.
2000-09-24 19:40:25 +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
Guido van Rossum
1258049de0
Stupid typo in the pthread_t test
2000-09-24 16:47:19 +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
7be3115860
Added explanation of the use of the first program argument passed to the
...
exec*() family of functions.
2000-09-23 05:22:07 +00:00