| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
----------------------------
revision 1.3
date: 2001/04/10 15:01:20; author: gvanrossum; state: Exp; lines: +6 -0
Some other tests, when failing, don't always remove their TESTFN file.
Try to do it for them, so our mkdir() operation doesn't fail.
----------------------------
revision 1.2
date: 2001/03/02 05:46:17; author: gvanrossum; state: Exp; lines: +3 -3
When catching errors from os.rmdir(), test for os.error, not IOError!
----------------------------
except I used OSError instead of os.error.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
was applied to urllib.py, but the corresponding change to
test_urllib.py was not applied. Backport revision 1.6 of this file
into the 2.0 maintenance branch.
----------------------------
revision 1.6
date: 2001/01/19 07:00:08; author: tim_one; state: Exp; lines: +8 -3
urllib.py very recently changed to produce uppercase escapes, but no
corresponding changes were made to its std test.
----------------------------
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quoting orignal message:
'''
Fix from the Madusa mailing list:
http://groups.yahoo.com/group/medusa/message/333
It's clear that Medusa should not be checking for an empty buffer
via "buf is ''". The patch merely changes "is" to "==". However,
there's a mystery here all the same: Python attempts to store null
strings uniquely, so it's unclear why "buf is ''" ever returned
false when buf actually was empty. *Some* string operations produce
non-unique null strings, e.g.
'''
|
| |
|
|
|
|
|
| |
didn't work, whether specified on the command-line or in setup.cfg.
- distutils/command/build_ext.py - make docstrings raw
- #128930 - distutils/command/build_ext.py - split rpath argument
Suggested by AMK, but had to be massaged a bit from the cvs diff
|
| |
|
|
| |
filenames
|
| |
|
|
|
|
|
| |
an invalid 401 request is being handled.
- urllib.py - provide simple recovery/escape from apparent redirect recursion
- #129288 - urllib.py - chanign %02x to %02X in quoting
- urllib.py - HTTPS now works with string URLs
|
| |
|
|
|
|
|
| |
which can be called from a start tag handler. When the corresponding end
tag is read the flag is cleared. However, it didn't get cleared when
the start tag was for an empty element of the type <tag .../>. This
modification fixes the problem.
|
| | |
|
| | |
|
| |
|
|
| |
windows, but not on the mac. Fixed.
|
| |
|
|
| |
- Made statcache.forget_dir more portable
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
- #126863 - getopt long option handling fixed
|
| |
|
|
| |
unmatched quote
|
| |
|
|
|
| |
This is *backwards incompatible* with the previous pickling scheme,
which wasnot reversible
|
| | |
|
| |
|
|
| |
strings
|
| | |
|
| |
|
|
| |
'release20-maint'.
|
| | |
|
| |
|
|
|
| |
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.
|
| | |
|
| |
|
|
|
|
| |
Betlehem, verified by Peter Funk. Fixes preservation of language
search order lost due to use of dictionary keys instead of a list.
Closes SF bug #116964.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
an 'other_libraries()' parameter.
|
| |
|
|
| |
we actually installed modules to a directory in sys.path.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.5.2. The compiler generates code for the version of the interpreter
it is run under.
ast.py:
Print and Printnl add dest attr for extended print
new node AugAssign for augmented assignments
new nodes ListComp, ListCompFor, and ListCompIf for list
comprehensions
pyassem.py:
add work around for string-Unicode comparison raising UnicodeError
on comparison of two objects in code object's const table
pycodegen.py:
define VERSION, the Python major version number
get magic number using imp.get_magic() instead of hard coding
implement list comprehensions, extended print, and augmented
assignment; augmented assignment uses Delegator classes (see
doc string)
fix import and tuple unpacking for 1.5.2
transformer.py:
various changes to support new 2.0 grammar and old 1.5 grammar
add debug_tree helper than converts and symbol and token numbers
to their names
|
| | |
|
| |
|
|
| |
Added SAX2DOM class.
|
| | |
|
| |
|
|
|
|
| |
First, only report garbage that the GC cannot free. Second, only report
the number of objects found, not their repr(). People can dig deeper on
their own if they find a leak.
|
| |
|
|
|
|
| |
transformer.py: return '*', None from com_import_as_name
pycodegen.py: special case for name == '*'
pyassem.py: fix stack counting for IMPORT_ opcodes
|
| |
|
|
| |
msg/headers are empty and the entire response is treated as the body.
|
| |
|
|
|
| |
This should close SF bug (patch)
http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- don't close the fp, since that appears to also close the socket
- join the original url with the redirect reponse to deal with
relative redirect URL
wrap two socket ops in try/except to turn them into URLErrors, so that
client code need only catch one exception.
in HTTPError.__del__ only close fp if fp is not None
style changes:
- use f(*args) instead of apply(f, args)
- use __super_init instead of super.__init__(self, ...)
|
| |
|
|
| |
use standard Python style for whitespace near = and ()
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470
bobalex@rsv.ricoh.com
Bug report: If the file position is less than the end of the "file",
and a write is performed extending past then end of the file, the data
string is corrupted.
Solution: in write(), when writing past the end, properly set self.len
when newpos is > self.len.
|
| |
|
|
|
|
|
| |
Let's hope this is correct (I'm not sure why the sys.platform would be
'Darwin1.2' rather than 'darwin1', which seems to be the convention).
Someone with Darwin please test this!
|
| | |
|