summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/text_file.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-92584: Remove the distutils package (#99061)Victor Stinner2022-11-031-286/+0
| | | | | | | | | | | | Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
* Removed unused imports.Serhiy Storchaka2016-04-241-1/+1
|
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-1/+2
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Fix closes Issue11439 Remove the SVN keywords from the code as it is no ↵Senthil Kumaran2011-07-281-2/+0
| | | | longer applicable in hg. Patch Contributed by Neil Muller.
* Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape errorVictor Stinner2010-10-231-1/+4
| | | | | | handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source code directory name contains a non-ASCII character and the locale encoding is ASCII.
* reverted distutils its 3.1 state. All new work is now happening in ↵Tarek Ziadé2010-07-221-2/+2
| | | | disutils2, and distutils is now feature-frozen.
* Merged revisions 76956 via svnmerge fromTarek Ziadé2009-12-211-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76956 | tarek.ziade | 2009-12-21 02:22:46 +0100 (Mon, 21 Dec 2009) | 1 line massive import cleaning in Distutils ........
* Merged revisions 69874 via svnmerge fromTarek Ziadé2009-02-221-77/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69874 | tarek.ziade | 2009-02-22 20:58:12 +0100 (Sun, 22 Feb 2009) | 1 line moved distutils.text_file tests into a real unittest class ........
* Remove incorrect usages of map() in distutils.Amaury Forgeot d'Arc2008-07-261-1/+2
| | | | Reported by Lisandro Dalcin.
* General cleanup, raise normalization in Lib/distutils.Collin Winter2007-08-301-84/+63
|
* Merged revisions 55795-55816 via svnmerge fromGuido van Rossum2007-06-071-4/+3
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55797 | neal.norwitz | 2007-06-07 00:00:57 -0700 (Thu, 07 Jun 2007) | 3 lines Get rid of some remnants of classic classes. types.ClassType == type. Also get rid of almost all uses of the types module and use the builtin name. ........ r55798 | neal.norwitz | 2007-06-07 00:12:36 -0700 (Thu, 07 Jun 2007) | 1 line Remove a use of types, verify commit hook works ........ r55809 | guido.van.rossum | 2007-06-07 11:11:29 -0700 (Thu, 07 Jun 2007) | 2 lines Fix syntax error introduced by Neal in last checkin. ........
* Minimal fixes to save the bootstrap on OSX.Guido van Rossum2007-05-251-3/+3
|
* Remove functions in string module that are also string methods. Also remove:Neal Norwitz2007-04-171-11/+11
| | | | | * all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-6/+6
| | | | | | | | | 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.)
* Get rid of dict.has_key(). Boy this has a lot of repercussions!Guido van Rossum2006-08-181-2/+2
| | | | | | Not all code has been fixed yet; this is just a checkpoint... The C API still has PyDict_HasKey() and _HasKeyString(); not sure if I want to change those just yet.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* Whitespace normalization.Fred Drake2001-12-061-7/+6
|
* Changed so lines that are all comment (or just whitespace + comment)Greg Ward2000-09-161-9/+27
| | | | | | | | | | are completely skipped, rather than being treated as blank lines (and then subject to the 'skip_blanks' flag). This allows us to process old-style Setup files, which rely on hello \\ # boo! there coming out as "hello there".
* Andrew Kuchling:Greg Ward2000-09-161-1/+1
| | | | | Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances.
* [change from 2000/08/11, propagating now to distutils copy]Greg Ward2000-09-161-9/+17
| | | | | Factored the guts of 'warn()' out to 'gen_error()', and added the 'error()' method (trivial thanks to the refactoring).
* [change from 2000/04/17, propagating now to distutils copy]Greg Ward2000-09-161-26/+30
| | | | | | | Dropped the 'collapse_ws' option and replaced it with 'collapse_join' -- it's *much* faster (no 're.sub()') and this is the reason I really added 'collapse_ws', ie. to remove leading whitespace from a line being joined to the previous line.
* Added all documentation.Greg Ward1999-09-291-13/+106
| | | | | Slightly improved the code for dealing with newline on a comment line, and for stripping whitespace.
* Allow comment characters (#) to be escaped:Greg Ward1999-08-101-14/+37
| | | | | | | - did away with 'comment_re' option -- it's just not that simple anymore - heavily revised the main logic in 'readline()' to accomodate this Beefed up 'warn()': 'line' can be list or tuple, and 'msg' is automatically converted to a string.
* 'warn()' method now takes an optional line number.Greg Ward1999-04-151-4/+6
|
* Replaced the last attempt at an "unreadline" with one that actuallyGreg Ward1999-03-291-29/+18
| | | | works on non-seekable file-like objects, such as URLs. (Oops.)
* Added 'linestart' array and 'unreadline()' method (makes parsing a lot easier).Greg Ward1999-03-261-1/+30
|
* Changes to allow passing an open file to the constructor (to supportGreg Ward1999-03-231-14/+13
| | | | | ProcessHierarchy's changes to support reading from a remote URL in ProcessDatabase).
* Added collapse_ws option.Greg Ward1999-03-081-0/+5
|
* Added 'warn' method.Greg Ward1999-01-181-1/+10
|
* Added: mems.lib.text_file: provides TextFile class for parsing textGreg Ward1999-01-131-0/+206
files with (optional) comment stripping, blank line skipping, whitespace removal, and line joining with trailing backslashes.