| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
extra argument if data is None.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Lundh's example.
Converted comment to docstring.
|
|
|
|
| |
as such.
|
| |
|
|
|
|
|
|
|
| |
urlopen is used to specify form data, make sure the second argument is
threaded through all of the http_error_NNN calls. This allows error
handlers like the redirect and authorization handlers to properly
re-start the connection.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o the initial comment is wrong: creating messages is already
implemented
o Message.getbodytext: if the mail or it's part contains an
empty content-transfer-encoding header, the code used to
break; the change below treats an empty encoding value the same
as the other types that do not need decoding
o SubMessage.getbodytext was missing the decode argument; the
change below adds it; I also made it unconditionally return
the raw text if decoding was not desired, because my own
routines needed that (and it was easier than rewriting my
own routines ;-)
|
|
|
|
|
| |
error and so it derives from Exception and not SystemError. The
docstring was incorrect but the implementation was fine.
|
|
|
|
| |
Discovered by Mitch Chapman.
|
|
|
|
| |
2. When no test case worked, raise ImportError instead of failing.
|
|
|
|
| |
list (of bsd variants that have a different lock structure).
|
| |
|
|
|
|
| |
calls to addinfourl() in open_file().
|
|
|
|
| |
so they don't need to be treated specially here.
|
| |
|
|
|
|
| |
fix it. Oh well.
|
|
|
|
|
|
|
| |
off.
Make sure the path paramter to readmodule() is a list before adding it
with sys.path, or the addition could fail.
|
|
|
|
| |
return path.
|
| |
|
| |
|
|
|
|
| |
iterations looking for expansions to 10.
|
|
|
|
| |
exists.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ Implements a put_nowait method.
+ Adds a corresponding Queue.Full exception.
+ Simplifies the implementation by adding optional "block" args to get() and
put(), and makes the old get_nowait() and new put_nowait() one-line
redirections to get() and put().
+ Uses (much) simpler logic for the nowait cases.
+ Regularizes the doc strings to something closer to "Guido style" <wink>.
+ Converts two stray tabs into spaces.
+ Removes confusing verbiage about the queue "not being available" from the
docstrings -- never knew what that meant as a user, and after digging into
the implementation still didn't know what it was trying to say.
|
|
|
|
| |
avoid tracebacks when the root is destroyed before the image object.
|
|
|
|
| |
array object at all.
|
|
|
|
|
|
|
| |
(1) on a little-endian platform, don't byteswap;
(2) in _patchheader(), there was a missing self._file argument to a
_write_long() call.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Also finally get rid of some obsolete commented-out access statements.
A note about the previous checkin: I believe it's correct, but I found
something strange: the file Lib/test/audiotest.au in the Python
distribution was evidently encoded in u-LAW format but had its
encoding set to 2, i.e. linear-8. I hope that this is a mistake
caused by some conversion program that produced this .au file; I just
found it on a website.
|
| |
|
| |
|
|
|
|
|
|
| |
\\host\mountpoint\dir\file). By Larry Hastings.
Also cleaned up some docstrings.
|
|
|
|
|
| |
"""Sjoerd's version stores unbound methods. that's not good enough ;-)
Here's an alternative implementation of fixdict."""
|
|
|
|
|
|
|
|
|
| |
Fix leaking of instances by removing the elements variable that we
created on closing the parser. The elements variable is now created
in the reset() method, so that the sequence close(); reset();
... works.
Also, add the name of the entity reference that wasn't found to the
error message.
|
| |
|
|
|
|
|
|
|
|
|
| |
from Python 1.5.1:
If after __init__ finishes no new elements variable was created, this
patch will search the instance's namespace for all attributes whose
name start with start_ or end_ and put their value in a new elements
instance variable.
|
|
|
|
|
|
|
|
|
|
|
| |
In the docstring of ConfigParser.py (Python 1.5.2b1):
read(*filenames) -- read and parse the list of named configuration files
should be:
read(filenames) -- read and parse the list of named configuration files
The method accepts a list, not a bunch of positional arguments.
Which is good, the list is much more convenient.
|
|
|
|
| |
second time!
|
| |
|
|
|
|
|
|
|
|
| |
applied to all filenames before they are compared, looked up in the
breaks dictionary, etc. The default implementation does nothing --
it's implented as fast as possible via str(). A useful implementation
would make everything a absolute, e.g. return os.path.normcase(
os.path.abspath(filename)).
|
| |
|
|
|
|
|
| |
With -s only a single test is run. The next test run is chosen
sequentially from the list of all tests.
|
| |
|
| |
|
|
|
|
|
| |
raise an ImportError if not running verbose. This signals to the
regression framework that this test isn't applicable.
|
|
|
|
| |
(It was left in accidentally after a long and arduous 3-way patch session.)
|
| |
|