[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.

Sharif Nassar report at bugs.python.org
Sat May 26 03:59:10 CEST 2012


Sharif Nassar <mrwacky42 at gmail.com> added the comment:

Even better:

diff -r 747eec42e7ae distutils2/create.py
--- a/distutils2/create.py      Mon May 21 17:01:44 2012 -0400
+++ b/distutils2/create.py      Fri May 25 19:04:22 2012 -0700
@@ -674,7 +674,7 @@
             %s
 
             Status''' % '\n'.join('%s - %s' % (i, maturity_name(n))
-                                  for i, n in enumerate(PROJECT_MATURITY))
+                                  for i, n in enumerate(PROJECT_MATURITY, 1 ))
         while True:
             choice = ask(dedent(maturity_question), required=False)

----------
nosy: +Sharif.Nassar

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14858>
_______________________________________


More information about the Python-bugs-list mailing list