| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
presentation. This is acceptable since it only occurs in the formatted
output and does not affect the document markup.
|
|
|
|
|
|
| |
When describing a Boolean return value, use "true" and "false" instead of
"1" and "0".
Style-guide conformance: no "iff" -- to obscure for many readers. ;-(
|
| |
|
|
|
|
|
|
|
|
| |
the separating semi-colon shows up on a continuation line (legal, but
weird).
Bug reported and fixed by Matthew Cowles. Test case and sample email
included.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
non-standard but common types. Including Martin's suggestion to add
rejected non-standard types from patch #438790. Specifically,
guess_type(), guess_extension(): Both the functions and the methods
grow an optional "strict" flag, defaulting to true, which determines
whether to recognize non-standard, but commonly found types or not.
Also, I sorted, reformatted, and culled duplicates from the big
types_map dictionary. Note that there are a few non-equivalent
duplicates (e.g. .cdf and .xls) for which the first will just get
thrown away. I didn't remove those though.
Finally, use of the module as a script as grown the -l and -e options
to toggle strictness and to do guess_extension(), respectively.
Doc and unittest updates too.
|
|
|
|
|
|
| |
to call the corresponding methods. This is not a performance improvement
since the times are still swamped by disk I/O, but cleans up the code just
a little.
|
| |
|
|
|
|
|
|
|
|
| |
Replace some tortuous code that was trying to be clever but forgot to
DECREF the key and value, by more longwinded but obviously correct
code.
(Inspired by but not copying the fix from SF patch #475033.)
|
| |
|
|
|
|
|
|
|
|
| |
of the if block where it was before. The name is only used inside
that if block, but the storage is referenced outside it via the 's'
variable.
(This patch was part of SF patch #474590 -- RISC OS support.)
|
| |
|
| |
|
| |
|
|
|
|
| |
work to be done, but do not require the HTML to be re-built.
|
|
|
|
| |
and that the work-around should be restricted to that system.
|
|
|
|
|
| |
like findall, but returns an iterator (which returns match objects)
instead of a list of strings/tuples.
|
| |
|
|
|
|
| |
This has sat around in a deprecated state for a *long* time!
|
| |
|
|
|
|
| |
to os.extsep -- that variable actually didn't exist in that release!
|
|
|
|
| |
PyArg_UnpackTuple().
|
| |
|
|
|
|
|
|
|
|
| |
As the comments in the module implied, pyclbr was easily confused by
"strange stuff" inside single- (but not triple-) quoted strings. It
isn't anymore. Its behavior remains flaky in the presence of nested
functions and classes, though.
Bugfix candidate.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
set of names imported (the "public names"), adding a definition of "public
names" that describes the use of __all__.
This closes SF bug #473986.
Flesh out the vague reference to __import__().
|
| |
|
|
|
|
|
|
| |
STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize
access to _flags on systems where WINDOW is opaque. Fixes bugs
#432497, #422265, and the curses parts of #467145 and #473150.
|
|
|
|
| |
not properly processing numeric IPv4 addresses. Fixes V5.1 part of #472675.
|
|
|
|
|
| |
machine. Luckily everyone is asleep, so I didn't have to use the time
machine.
|
| |
|
|
|
|
| |
slightly changed the comment on xstat().
|
| |
|
|
|
|
| |
the existing #ifdef MS_WINDOWS), but eventually ifdeffing on configure features is probably better.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ThreadingMixIn/TCPServer forgets close (Max Neunhöffer).
This ensures that handle_error() and close_request() are called when
an error occurs in the thread.
(I am not applying the second chunk of the patch, which moved the
finish() call into the finally clause in BaseRequestHandler's __init__
method; that would be a semantic change that I cannot accept at this
point - the data would be sent even if the handler raised an
exception.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The C-code in fileobject.readinto(buffer) which parses
the arguments assumes that size_t is interchangeable
with int:
size_t ntodo, ndone, nnow;
if (f->f_fp == NULL)
return err_closed();
if (!PyArg_Parse(args, "w#", &ptr, &ntodo))
return NULL;
This causes a problem on Alpha / Tru64 / OSF1 v5.1
where size_t is a long and sizeof(long) != sizeof(int).
The patch I'm proposing declares ntodo as an int. An
alternative might be to redefine w# to expect size_t.
[We can't change w# because there are probably third party modules
relying on it. GvR]
|
|
|
|
| |
PyArg_UnpackTuple() function (serves as an example and test case).
|
| |
|
|
|
|
| |
Fulton, based on code Jim supplied.
|
| |
|
| |
|
|
|
|
| |
Make convertbuffer() static like the prototype says. Not used elsewhere.
|
| |
|
|
|
|
|
|
| |
Repair unlikely surprise due to magical softspace attr and the use of
print with a trailing comma in doctest examples.
Bugfix candidate.
|