| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
font-locking. This complets the merge with Mailman's version.
|
|
|
|
|
|
|
|
|
|
|
|
| |
windows.
- added optional mode argument to popen2/popen3
for unix; if the second argument is an integer,
it's assumed to be the buffer size.
- changed nt.popen2/popen3/popen4 return values
to match the popen2 module (stdout first, not
stdin).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function is overridden by a python version which accepts
*either* a string (old behaviour) or a locale tuple.
- renamed a few methods (for consistency):
get_locale => getlocale
get_default_locale => getdefaultlocale
set_to_default => resetlocale (!)
- the _locale implementation module can now implement
an optional _getdefaultlocale function. if that function
isn't available, a POSIX-based approach is used (checking
LANG and other environment variables, as usual).
(patch #100765)
|
|
|
|
| |
more information.
|
|
|
|
| |
mailbox.py: Convert to 4-space indents.
|
| |
|
| |
|
|
|
|
| |
convert semicolons to newlines
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Also fix spelling tupel -> tuple.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- reorganized some code to get rid of -Wall and -W4
warnings
- fixed default argument handling for sub/subn/split
methods (reported by Peter Schneider-Kamp).
|
| |
|
|
|
|
|
| |
temporary directory ('bdist_base').
Added --dist-dir option to control where the executable is put.
|
| |
|
|
|
|
| |
they place their output files.
|
|
|
|
| |
defaults to 'dist' (ie. no longer in the distribution root).
|
|
|
|
|
|
|
|
|
|
| |
- Actually count the linefeeds in a the CDATA content.
- Don't call the endtag handler for an unmatched endtag (this makes
the base class simpler since it doesn't have to deal with unopened
endtags).
- If the __init__ method is called with keyword argument
translate_attribute_references=0, don't attempt to translate
character and entity references in attribute values.
|
| |
|
| |
|
|
|
|
| |
- changed "group" operator to "groupref"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the pattern must have a fixed width.
- got rid of array-module dependencies; the match pro-
gram is now stored inside the pattern object, rather
than in an extra string buffer.
- cleaned up a various of potential leaks, api abuses,
and other minors in the engine module.
- use mal's new isalnum macro, rather than my own work-
around.
- untabified test_sre.py. seems like I removed a couple
of trailing spaces in the process...
|
|
|
|
|
|
|
| |
test is run as a script and when imported via the regression test
framework.
Problem reported by Phillip Porch <root@theporch.com>.
|
|
|
|
|
|
|
|
| |
openpty(): Fallback code when os.openpty() does not exist attempted to
call _slave_open(), which should have been slave_open().
This bug only showed on platforms which do not provide a working openpty()
in the C library.
|
|
|
|
|
|
|
|
|
| |
This patch implements relative-path semantics for the "source" facility resembling
those of cpp(1), documents the change, and improves the shlex test main to
make it easier to test this feature. Along the way, it fixes a name error
in the existing docs.
[Additional documentation markup changes for consistency by FLD.]
|
|
|
|
|
|
| |
and defaults as for filecmp.cmp(). Updated docstring
accordingly, and formatted it more like others in the standard
library.
|
|
|
|
|
|
|
| |
This patch delegates more string functions to string object methods,
uses the varargs delegation syntax, and stops using stringold.
Closes SourceForge patch #100712.
|
| |
|
|
|
|
|
|
|
|
| |
"lastgroup" is the name of the last matched capturing group,
"lastindex" is the index of the same group. if no group was
matched, both attributes are set to None.
the (?P#) feature will be removed in the next relase.
|
|
|
|
|
|
|
|
|
|
| |
used by the code generator)
- changed max repeat value in engine (to match earlier array fix)
- added experimental "which part matched?" mechanism to sre; see
http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
or python-dev for details.
|
|
|
|
| |
Noted by Rob Hooft <rob@hooft.net>.
|
|
|
|
|
|
|
|
|
| |
speedup for some tests, including the python tokenizer.
-- added support for an optional charset anchor to the engine
(currently unused by the code generator).
-- removed workaround for array module bug.
|
|
|
|
| |
- minor comment touchups in the C module
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
-- changed 1.6 to 2.0 in the file headers
-- fixed ISALNUM macro for the unicode locale. this
solution isn't perfect, but the best I can do with
Python's current unicode database.
|
| |
|
| |
|
|
|
|
| |
Similar to an old bug in ntpath.py.
|
|
|
|
|
| |
splittype(): Always lower-case the URL scheme; these are supposed to be
normalized according to RFC 1738 anyway.
|
|
|
|
|
| |
getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.
|
| |
|
| |
|