| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
apply os.fsync() to the GzipFile backup files it creates.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Removes CVS keywords from this binary file, so that test_tarfile passes
regardless of whether Python is checked out with -kk.
|
| |
|
| |
|
|
|
|
|
|
| |
__oct__, and __hex__. Raise TypeError if an invalid type is
returned. Note that PyNumber_Int and PyNumber_Long can still
return ints or longs. Fixes SF bug #966618.
|
|
|
|
| |
Fixes SF bug #990307.
|
|
|
|
| |
isn't available. (Spotted by Raymond Hettinger)
|
| |
|
|
|
|
| |
to fail when running with -O. Changed to raise AssertionError instead.
|
| |
|
|
|
|
|
|
| |
and installed layouts to make maintenance simple and easy. And it
also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004
and iso2022-jp-2004.
|
|
|
|
|
| |
that pyclbr doesn't need to special-case modules that do "from types
import *".
|
|
|
|
|
|
|
|
| |
causing test_pyclbr to fail on all other platforms. Added that routine
to the urllib "ignore" list.
Removed the special case for "g" in the pickle module. types.py deletes
"g" from its namespace; maybe it didn't always. Whatever, the special
case isn't needed today.
|
| |
|
|
|
|
| |
http://mail.python.org/pipermail/python-dev/2004-June/045785.html
|
|
|
|
|
|
|
| |
by the locals() call in the context constructor.
* Remove unnecessary properties for int, exp, and sign which duplicated
information returned by as_tuple().
|
|
|
|
|
| |
* Context.create_decimal can take a zero default just like Decimal().
* Fix typo in comment.
|
|
|
|
|
|
|
|
| |
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
|
|
|
|
| |
put everything in the tuple in caps to use str.upper() instead of str.lower().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
original
module that is removed for testing "import" lines. Originally deleted the
entry from sys.modules and then just let other code that needed it to import it
again. Problem with this solution is that it lead to code that had already
imported the module in question to have their own reference to a new copy of
the module in question that new code couldn't reach. This lead to a failure in
test_strptime since it monkey-patched the 'time' module it had a reference to
while _strptime had its own reference to another copy of 'time' from being
imported by test___all__ that it was using for a calculation.
Also moved the testing code out of the PthFile class and into the actual test
class. This was to stop using 'assert' which is useless with a -O execution.
|
|
|
|
| |
collate, so setting it back to the function name
|
|
|
|
| |
output more telling details when there is a failure.
|
|
|
|
|
|
|
|
| |
[ 988698 ] compiler.transformer fix for (a, b) = 1, 2
fixing bug
[ 988613 ] compiler.transformer and tuple unpacking
|
|
|
|
|
|
|
|
|
|
|
| |
a non-standard protocol and on a lower port than the tcp/udp entries,
which breaks the assumption that there will only be one service by a
given name on a given port when no protocol is specified.
Previous versions of this code have had other problems as a result of
different service definitions amongst common platforms. As this platform
has an extra, unexpected, service entry, I've special cased the platform
rather than re-order the list of services checked to highlight the pitfall.
|
|
|
|
|
| |
Modified Files:
urllib2.py test/test_urllib2.py
|
|
|
|
|
|
| |
that behaves as if both lists has an empty string in each of them.
Closes bug #979794 (and duplicate bug #980117).
|
|
|
|
|
|
| |
path. Also clarifies UNC handling and adds appropriate tests.
Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rename "trap_enablers" to just "traps".
* Simplify names of "settraps" and "setflags" to just "traps" and "flags".
* Show "capitals" in the context representation
* Simplify the Context constructor to match its repr form so that only
the set flags and traps need to be listed.
* Representation can now be run through eval().
Improve the error message when the Decimal constructor is given a float.
The test suite no longer needs a duplicate reset_flags method.
|
|
|
|
| |
any restriction on the return type (like unicode.encode() et al. do).
|
|
|
|
|
| |
create a testing method that can be called to make sure that the handling of
the .pth file was correct.
|
| |
|
|
|
|
|
|
|
|
| |
public.
* Removed the non-signal conditions from __all__.
* Removed the XXX comment which was resolved.
* Use ^ instead of operator.xor
* Remove the threading lock which is no longer necessary.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Map conditions to related signals.
* Make contexts unhashable.
* Eliminate used "default" attribute in exception definitions.
* Eliminate the _filterfunc in favor of a straight list.
Docs:
* Eliminate documented references to conditions that are not signals.
* Eliminate parenthetical notes such as "1/0 --> Inf" which are no
longer true with the new defaults.
|
|
|
|
| |
* add more __init__ tests
|
|
|
|
|
| |
* use assertions instead of tests after internal calls that can't fail.
* expand test coverage
|
|
|
|
| |
first day of the week.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Need to return -1 on error.
Needs backport.
|
|
|
|
| |
Windows (XP at least ;). Test in this order: echo, daytime, domain.
|
|
|
|
| |
* Add a test case that would have caught it.
|
|
|
|
|
| |
for lists of mixed types.
* Test that sort works.
|
| |
|
|
|
|
| |
* Change the default precision to 28 (to match VB's decimal type).
|