summaryrefslogtreecommitdiff
path: root/Lib/formatter.py
Commit message (Collapse)AuthorAgeFilesLines
* #1726198: replace while 1: fp.readline() with file iteration.Georg Brandl2008-01-211-4/+1
|
* remove the other half of one of the regsub-related comments; the otherFred Drake2004-12-071-1/+0
| | | | half was removed in revision 1.25
* Remove outdated references to the regsub module.Raymond Hettinger2004-12-071-1/+0
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-9/+9
| | | | From SF patch #852334.
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* Remove uses of the string and types modules:Walter Dörwald2002-06-031-12/+7
| | | | | | | | | | | | | | | | | | | | | | 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.)
* Replace boolean test with is NoneRaymond Hettinger2002-06-011-2/+2
|
* Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were ↵Raymond Hettinger2002-05-291-1/+36
| | | | not updated after 2.2).
* Remove empty __init__ (PyChecker)Andrew M. Kuchling2001-08-131-3/+0
|
* Remove a bare try/except completely -- it just did not make sense!Fred Drake2001-05-111-12/+12
| | | | Add a comment elsewhere making clear an assumption in the code.
* String method conversion.Eric S. Raymond2001-02-091-4/+4
|
* Whitespace normalization.Tim Peters2001-01-141-2/+2
|
* Actually, the previous batch's comment should have been different;Guido van Rossum2000-02-041-0/+20
| | | | | | | | | | *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.
* DumbWriter.send_paragraph(): Fix problem with DumbWriter reported toFred Drake1999-01-121-1/+1
| | | | the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-221/+221
|
* Removed unneeded imports of regex and regsub.Guido van Rossum1997-10-221-2/+0
|
* (formatter.py): Add a flush() method to the writer interface. This reallyFred Drake1996-12-311-2/+2
| | | | | needs to be a standard part of the interface, so we'll have it in for the next release.
* (formatter.py): Simplify NullFormatter definition of add_hor_rule() to matchFred Drake1996-10-081-3/+2
| | | | documentation.
* Add provisions to set the (to be documented!) instance variableGuido van Rossum1996-10-071-1/+4
| | | | | 'writer' of the NullFormatter to the writter passed in, or to a NullWriter if none (or None) is passed in.
* Three sets of changes from Grail:Guido van Rossum1996-08-261-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* change DumbWriter to derive from NullWriterGuido van Rossum1996-05-291-3/+4
|
* Many improvements dure to Fred DrakeGuido van Rossum1996-05-281-57/+153
|
* even better way to normalize spaces in add_flowing_dataGuido van Rossum1996-02-131-17/+9
|
* better way to normalize spaces in add_flowing_dataGuido van Rossum1996-02-121-3/+13
|
* added NullFormatterGuido van Rossum1995-10-061-2/+21
|
* add flush_softspace() interfaceGuido van Rossum1995-09-301-0/+5
|
* Initial revisionGuido van Rossum1995-08-071-0/+276