| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
characters.
|
|
|
|
| |
refactor the copying of file data. new: shutil.copyfileobj(fsrc, fdst)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
use PyString_AS_STRING macro on local string object
when resizing string, make sure resized string will always be big enough
split string containing error message across two lines
add test to string_tests that causes resizing
|
|
|
|
|
|
|
| |
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Compare close contains a close method that checks to see if there
is any unconsumed data in the Compare instance; i.e. if the canonical
output file contains more data than was produced by the current test
run. This method was never called, allowing differences to go
undetected.
Fix is to call close after the test is run (after __import__)
output/test_long and output/test_popen2 needed trivial changes
output/test_select contained lots of text, but test_select.py produced
no output
|
|
|
|
| |
the documentation; the cases `? foo' and `! foo' failed.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
-- added a few extra comments to locale.py
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a representation of the configuration state in .ini format that can be read
back in by a future read() call. Thus this class is now a back end
for .ini editors as well as parsers.
This patch is complete and tested, but exposes a bug in the ConfigParser
implementation which I have not yet fixed. Because case information is
discarded during parsing, the output of write() has its case smashed.
I wrote this for a SourceForge interface script called forgetool.
Documentation for the new entry points included.
|
|
|
|
| |
test_string and test_userstring run same tests for string methods
|
| |
|
|
|
|
| |
to match addition to test_unicode.py.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
There is a silly bug in the fall-back dumbdbm.py database package in
the Python 1.5.2 standard distro. This bug causes any changes to an
existing item to generate a new key, even when the key already
exists. After many updates, the .dir file used by dumbdbm grows to
a huge size, and can cause filesystem problems.
|
|
|
|
|
|
| |
an attribute value was not escaped, you could get two syntax errors:
one about a missing semicolon and one about an unknown entity. Now
you get only one about a bogus ampersand.
|
|
|
|
|
|
|
|
| |
(write, read, ...), based on feedback from GvR.
- added tuple-swapping code to popen2.py
- fixed some runaway indentation in posixmodule.c
|
|
|
|
|
| |
checked for the wrong exception. my fault. sorry.
(first reported by Alex Coventry)
|
|
|
|
| |
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.
|