summaryrefslogtreecommitdiffstats
path: root/Lib/formatter.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18644: Fix a ResourceWarning in formatter.test().Berker Peksag2015-01-051-5/+9
| | | | Patch by Vajrasky Kok.
* Issue #18716: Deprecate the formatter moduleBrett Cannon2013-10-041-0/+3
|
* Fix formatter usage of filter(). Bug #3800.Georg Brandl2008-09-091-2/+2
|
* Merged revisions 60151-60159,60161-60168,60170,60172-60173,60175 via ↵Georg Brandl2008-01-211-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60151 | christian.heimes | 2008-01-21 14:11:15 +0100 (Mon, 21 Jan 2008) | 1 line A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make. ........ r60152 | georg.brandl | 2008-01-21 15:16:46 +0100 (Mon, 21 Jan 2008) | 3 lines #1087741: make mmap.mmap the type of mmap objects, not a factory function. Allow it to be subclassed. ........ r60153 | georg.brandl | 2008-01-21 15:18:14 +0100 (Mon, 21 Jan 2008) | 2 lines mmap is an extension module. ........ r60154 | georg.brandl | 2008-01-21 17:28:13 +0100 (Mon, 21 Jan 2008) | 2 lines Fix example. ........ r60155 | georg.brandl | 2008-01-21 17:34:07 +0100 (Mon, 21 Jan 2008) | 2 lines #1555501: document plistlib and move it to the general library. ........ r60156 | georg.brandl | 2008-01-21 17:36:00 +0100 (Mon, 21 Jan 2008) | 2 lines Add a stub for bundlebuilder documentation. ........ r60157 | georg.brandl | 2008-01-21 17:46:58 +0100 (Mon, 21 Jan 2008) | 2 lines Removing bundlebuilder docs again -- it's not to be used anymore (see #779825). ........ r60158 | georg.brandl | 2008-01-21 17:51:51 +0100 (Mon, 21 Jan 2008) | 2 lines #997912: acknowledge nested scopes in tutorial. ........ r60159 | vinay.sajip | 2008-01-21 18:02:26 +0100 (Mon, 21 Jan 2008) | 1 line Fix: #1836: Off-by-one bug in TimedRotatingFileHandler rollover calculation. Patch thanks to Kathryn M. Kowalski. ........ r60161 | georg.brandl | 2008-01-21 18:13:03 +0100 (Mon, 21 Jan 2008) | 2 lines Adapt pydoc to new doc URLs. ........ r60162 | georg.brandl | 2008-01-21 18:17:00 +0100 (Mon, 21 Jan 2008) | 2 lines Fix old link. ........ r60163 | georg.brandl | 2008-01-21 18:22:06 +0100 (Mon, 21 Jan 2008) | 2 lines #1726198: replace while 1: fp.readline() with file iteration. ........ r60164 | georg.brandl | 2008-01-21 18:29:23 +0100 (Mon, 21 Jan 2008) | 2 lines Clarify $ behavior in re docstring. #1631394. ........ r60165 | vinay.sajip | 2008-01-21 18:39:22 +0100 (Mon, 21 Jan 2008) | 1 line Minor documentation change - hyperlink tidied up. ........ r60166 | georg.brandl | 2008-01-21 18:42:40 +0100 (Mon, 21 Jan 2008) | 2 lines #1530959: change distutils build dir for --with-pydebug python builds. ........ r60167 | vinay.sajip | 2008-01-21 19:16:05 +0100 (Mon, 21 Jan 2008) | 1 line Updated to include news on recent logging fixes and documentation changes. ........ r60168 | georg.brandl | 2008-01-21 19:35:49 +0100 (Mon, 21 Jan 2008) | 3 lines Issue #1882: when compiling code from a string, encoding cookies in the second line of code were not always recognized correctly. ........ r60170 | georg.brandl | 2008-01-21 19:36:51 +0100 (Mon, 21 Jan 2008) | 2 lines Add NEWS entry for #1882. ........ r60172 | georg.brandl | 2008-01-21 19:41:24 +0100 (Mon, 21 Jan 2008) | 2 lines Use original location of document, which has translations. ........ r60173 | walter.doerwald | 2008-01-21 21:18:04 +0100 (Mon, 21 Jan 2008) | 2 lines Follow PEP 8 in module docstring. ........ r60175 | georg.brandl | 2008-01-21 21:20:53 +0100 (Mon, 21 Jan 2008) | 2 lines Adapt to latest doctools refactoring. ........
* Merged revisions 55328-55341 via svnmerge fromGuido van Rossum2007-05-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55329 | brett.cannon | 2007-05-14 16:36:56 -0700 (Mon, 14 May 2007) | 3 lines Implement the removal of tuple parameter unpacking (PEP 3113). Thanks, Tony Lownds for the patch. ........ r55331 | neal.norwitz | 2007-05-14 16:40:30 -0700 (Mon, 14 May 2007) | 1 line Update to use Python 3.0 ........ r55332 | brett.cannon | 2007-05-14 16:47:18 -0700 (Mon, 14 May 2007) | 2 lines Mention PEP 3113. And thanks to Tony Lownds for the PEP 3113 patch. ........ r55333 | neal.norwitz | 2007-05-14 16:57:06 -0700 (Mon, 14 May 2007) | 1 line Fix exception printing (no more exceptions module) ........ r55334 | neal.norwitz | 2007-05-14 17:11:10 -0700 (Mon, 14 May 2007) | 1 line Remove popen* functions from os ........ r55335 | neal.norwitz | 2007-05-14 18:03:38 -0700 (Mon, 14 May 2007) | 1 line Get rid of most of popen. There are still some uses I need to cleanup. ........ r55336 | neal.norwitz | 2007-05-14 21:11:34 -0700 (Mon, 14 May 2007) | 1 line Remove a few more remnants of the compiler package ........ r55337 | neal.norwitz | 2007-05-14 22:28:27 -0700 (Mon, 14 May 2007) | 1 line Get test_[cx]pickle working on 64-bit platforms (avoid overflow int/long) ........
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-11/+11
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* 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