summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/fancy_getopt.py
Commit message (Collapse)AuthorAgeFilesLines
* reverted distutils its 3.1 state. All new work is now happening in ↵Tarek Ziadé2010-07-221-4/+15
| | | | disutils2, and distutils is now feature-frozen.
* Merged revisions 76956 via svnmerge fromTarek Ziadé2009-12-211-15/+4
| | | | | | | | | | 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 74988 via svnmerge fromTarek Ziadé2009-09-211-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74988 | tarek.ziade | 2009-09-21 14:19:07 +0200 (Mon, 21 Sep 2009) | 1 line improved distutils test coverage: now the DEBUG mode is covered too (will help fix the issue #6954 in py3k branch) ........
* Patch# 1258 by Christian Heimes: kill basestring.Guido van Rossum2007-10-161-2/+2
| | | | I like this because it makes the code shorter! :-)
* Fix a straggler filter() call.Guido van Rossum2007-09-251-1/+1
|
* string.maketrans() now produces translation tables for bytes.translate() -- ↵Georg Brandl2007-08-311-4/+4
| | | | | | wrong module? Fix all remaining instances that did bad things with the new str.translate().
* General cleanup, raise normalization in Lib/distutils.Collin Winter2007-08-301-90/+47
|
* Checkpoint. Manipulated things so that string literals are alwaysGuido van Rossum2007-04-271-2/+2
| | | | | | | | unicode, and a few other compensating changes, e.g. str <- unicode, chr <- unichr, and repr() of a unicode string no longer starts with 'u'. Lots of unit tests are broken, but some basic things work, in particular distutils works so the extensions can be built, and test_builtin.py works.
* Remove functions in string module that are also string methods. Also remove:Neal Norwitz2007-04-171-7/+7
| | | | | * 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-3/+3
| | | | | | | | | 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.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+1
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Get rid of dict.has_key(). Boy this has a lot of repercussions!Guido van Rossum2006-08-181-4/+4
| | | | | | 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.
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* - fix description of option table entriesFred Drake2004-08-021-3/+4
| | | | - fix broken assert statement; should just raise
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* 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
* Test changes before checking them in.Jeremy Hylton2002-06-041-1/+1
|
* Track extra arg to option_table to all uses of itJeremy Hylton2002-06-041-2/+2
|
* global _option_order is not usedJeremy Hylton2002-06-041-6/+0
|
* Set repeat metadata for an option based on repeat local var notJeremy Hylton2002-06-041-1/+1
| | | | constant.
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-27/+30
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Whitespace normalization.Fred Drake2001-12-061-6/+6
|
* Use correct variable nameAndrew M. Kuchling2001-08-091-1/+1
|
* Standardize whitespace in function calls.Greg Ward2000-09-261-55/+54
|
* Added 'translate_longopt()' function.Greg Ward2000-09-251-0/+7
|
* Added docstring for 'wrap()' function.Greg Ward2000-08-301-0/+5
|
* Fix so we clear or reinitialize various data structures before populatingGreg Ward2000-08-071-0/+5
| | | | | (allows the same FancyGetopt object to be used multiple times with different option tables).
* Fixed so we print more than just the first line of help for options withGreg Ward2000-06-081-3/+3
| | | | a short form and text that wraps onto multiple lines.
* Don't take advantage of OptionDummy's new "auto-initialization" featureGreg Ward2000-05-231-1/+1
| | | | after all -- turns out it doesn't buy us much after all...
* OptionDummy now has a constructor that takes a list of options: each stringGreg Ward2000-05-231-2/+9
| | | | | in the option list is an attribute of the OptionDummy that will be initialized to None.
* Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.Greg Ward2000-04-231-2/+2
|
* Added the capability for alias options.Greg Ward2000-04-211-12/+36
|
* Added 'has_option()', 'get_attr_name()' methods.Greg Ward2000-04-211-1/+14
|
* Made 'generate_help()' and 'print_help()' methods of FancyGetopt.Greg Ward2000-04-211-99/+102
| | | | | | Added 'set_option_table()' method. Added missing 'self' to 'get_option_order()'. Cosmetic/comment/docstring tweaks.
* Continuing the refactoring: deleted the old 'fancy_getopt()' function,Greg Ward2000-04-211-121/+0
| | | | | leaving in its place a tiny wrapper around the FancyGetopt class for backwards compatibility.
* Hefty refactoring: converted 'fancy_getopt()' function into FancyGetoptGreg Ward2000-04-211-15/+266
| | | | | | | | class. (Mainly this was to support the ability to go back after the getopt operation is done and get extra information about the parse, in particular the original order of options seen on the command line. But it's a big improvement and should make it a lot easier to add functionality in the future.)
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Added support for printing out help text from option table: 'print_help()',Greg Ward1999-12-121-12/+171
| | | | | | | | 'generate_help()', 'wrap_text()' functions, and a little tiny test of 'wrap_text()'. Changed how caller states that one option is the boolean opposite of another: added 'negative_opt' parameter to 'fancy_getopt()', and changed to use it instead of parsing long option name.
* Hacked to support the notion of "negative alias" options, to handleGreg Ward1999-10-031-3/+32
| | | | -q/--quiet reasonably elegantly.
* Better detection of bad entries in option table.Greg Ward1999-08-141-3/+11
| | | | Better error messages for bad entries in option table.
* First checkin of real Distutils code.Greg Ward1999-03-221-0/+115