| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
half was removed in revision 1.25
|
| |
|
|
|
|
| |
From SF patch #852334.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
x in string.whitespace => x.isspace()
type(x) in types.StringTypes => isinstance(x, basestring)
isinstance(x, types.StringTypes) => isinstance(x, basestring)
type(x) is types.StringType => isinstance(x, str)
type(x) == types.StringType => isinstance(x, str)
string.split(x, ...) => x.split(...)
string.join(x, y) => y.join(x)
string.zfill(x, ...) => x.zfill(...)
string.count(x, ...) => x.count(...)
hasattr(types, "UnicodeType") => try: unicode except NameError:
type(x) != types.TupleTuple => not isinstance(x, tuple)
isinstance(x, types.TupleType) => isinstance(x, tuple)
type(x) is types.IntType => isinstance(x, int)
Do not mention the string module in the rlcompleter docstring.
This partially applies SF patch http://www.python.org/sf/562373
(with basestring instead of string). (It excludes the changes to
unittest.py and does not change the os.stat stuff.)
|
| |
|
|
|
|
| |
not updated after 2.2).
|
| |
|
|
|
|
| |
Add a comment elsewhere making clear an assumption in the code.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
*this* set of patches is Ka-Ping's final sweep:
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
|
|
|
|
| |
the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.
|
| |
|
| |
|
|
|
|
|
| |
needs to be a standard part of the interface, so we'll have it in
for the next release.
|
|
|
|
| |
documentation.
|
|
|
|
|
| |
'writer' of the NullFormatter to the writter passed in, or to a
NullWriter if none (or None) is passed in.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
date: 1996/08/14 17:27:21; author: fdrake; state: Exp; lines: +11 -9
(formatter.py): Establish a consistent space-handling policy, so that all
spaces are handled by the outermost context in which they might be
considered. (I.e., softspaces at element boundaries migrate
outwards.)
For instance: "<A> <IMG> </A>" becomes " <A><IMG></A> ".
This avoids some of those nasty underlined spaces around images. It
does not affect spaces *between* images within an anchor.
date: 1996/08/01 17:02:09; author: fdrake; state: Exp; lines: +3 -2
(formatter.py): Added required parameter to the NullFormatter class; this
was omitted by accident.
Made AbstractFormatter.add_literal_data() handle preceeding softspace
correctly instead of expecting the caller to do it.
date: 1996/07/23 22:18:56; author: fdrake; state: Exp; lines: +1 -1
(formatter.py): Correct assert_line_data() to update all internal conditions;
This now handles headers with only image content immediately followed
by anything.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|