| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
import isfile" and "import os.path".
|
| |
|
|
|
|
| |
Contributed by Blake Winton, but considerably edited.
|
|
|
|
| |
Take opportunity to add more explanatory messages to exceptions.
|
|
|
|
| |
troublesome ones encountered on the c.l.py list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
named header, so that if a message has, e.g. multiple CC: lines, all
will get returned by the call to getaddrlist(). It also correctly
handles addresses which show up in continuation lines.
AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that
sometimes, an address would contain a bogus trailing newline.
Message.getaddress(): In final else clause, added a test for the
character we're at being in self.specials. Without this, such
characters never get consumed and we infloop. Case in point (as
posted to c.l.py):
To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
----------------------------^
otherwise we'd infloop here
|
|
|
|
| |
empty. Make sure there is a space when there are options.
|
|
|
|
|
| |
This doesn't make a bit of difference on Unix, but apparently on
Windows NT you need write permission before you can set the utime...
|
|
|
|
|
| |
files with (optional) comment stripping, blank line skipping, whitespace
removal, and line joining with trailing backslashes.
|
|
|
|
| |
standard Python library. (Async socket support.)
|
|
|
|
| |
the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.
|
|
|
|
|
| |
installations; it was picking up a stale config.h from an
overwritten installation.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
text/plain for inner parts, but application/x-www-form-urlencoded
for outer parts. Honor any existing content-type header.
Lower down, if the content-type header is something we don't
understand (say because it there was a typo in the header coming from
the client), default to text/plain for inner parts, but
application/x-www-form-urlencoded for outer parts.
|
|
|
|
|
| |
fragment, and/or parameter information.
3 cases added to the test suite to check for this bug.
|
| |
|
| |
|
|
|
|
| |
functions (from comments).
|
|
|
|
|
| |
get_config_h_filename, get_makefile_filename, parse_config_h, and
parse_makefile.
|
|
|
|
|
| |
Doc-string-ified the lead comments.
Added auto call of test() when run as script.
|
| |
|
|
|
|
| |
with trailing garbage generated by some broke uuencoders.
|
|
|
|
|
|
| |
in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk
which will hunt around in a few common places and then set PATH
and try again, or else issue a big clarifying error message.
|
|
|
|
|
| |
interact() automatically uses this on Windows (where the
single-threaded version doesn't work).
|
|
|
|
|
|
|
|
| |
Extended the rfc822 parsedate routines to handle the cases they failed
on in an archive of ~37,000 messages. I believe the changes are
compatible, in that all previously correct parsing are still correct.
[I still see problems with some messages, but no showstoppers.]
|
|
|
|
|
| |
Add a class to mailbox.py for dealing with qmail directory mailboxes.
The test code was extended to notice these being used as well.
|
|
|
|
|
|
| |
field assumed to be the time is in fact the year, the resulting list
doesn't have enough items, and this isn't checked for. Return None
instead.
|
| |
|
|
|
|
|
| |
module instead. (The main advantage of the latter is that it comes
with documentation.)
|
| |
|
|
|
|
|
|
| |
# Message to all python-checkins readers: we have a problem with the
# CVS mirroring software. You can't check out the latest changes yet.
# We hope to have fixed this by noon EST today.
|
| |
|
| |
|
|
|
|
| |
Emacs ;-)
|
|
|
|
| |
bugs in various docstrings.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
The message ID is returned lowercased and there is no way to access
the original ID the server sent. Now at least some news servers
are very picky about the case of the ID and return errors when
fetching articles with mixed case given a lowercased version
of the ID.
The solution is simple: remove the string.lower() call.
"""
(I might add that the lowercasing was probably introduced as a result
of sloppy copy-and-paste coding; there's a string.lower in a similar
piece of code a bit higher in the source, that makes more sense --
it's lowercasing the group name.)
|
|
|
|
| |
widget -- no time to do this right now.
|
|
|
|
| |
explore this now.
|
|
|
|
|
|
|
| |
yours, please let me know for propoer acknowledgement.)
This avoids recompiling files that haven't changed; it adds a -f
option to force recompilation.
|
|
|
|
|
|
|
|
| |
- Fixed a bug where a syntax error was reported when a document
started with white space. (White space at the start of a document
is valid if there is no XML declaration.)
- Improved the speed quite a bit for documents that don't make use of
namespaces.
|
| |
|
|
|
|
| |
assignments.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Here is my current version of xmllib.py and the documentation. This
version has some API changes with respect to the version currently in
Python (also the one in 1.5.2a).
This version supports XML namespaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
File names with "funny" characters get translated wrong by
pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp"
gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a
URL is file "/ufs/sjoerd/" with fragment ID "tmp".
Here's an easy fix. (An alternative fix would be to change the
various implementations of pathname2url and url2pathname to include
calls to quote and unquote.
[The main problem is with the normal use of URLs:
url = url2pathname(file)
transmit url
url, tag = splittag(url)
urlopen(url)
]
In addition, this patch fixes some uses of unquote:
- the host part of URLs should be unquoted
- the file path in the FTP URL should be unquoted before it is split
into components.
- because of the latter, I removed all unquoting from ftpwrapper,
and moved it to the caller, but that is not essential
|
|
|
|
| |
offending files to be printed. Good for emacs `tabnanny.py *.py`
|
| |
|
|
|
|
|
|
| |
when we create a recursive instance, by setting the class variable
'FieldStorageClass' to the desired class. By default, this is set to
None, in which case we use self.__class__ (as before).
|