clinto icon indicating copy to clipboard operation
clinto copied to clipboard

Python 3 None

Open mfitzp opened this issue 9 years ago • 1 comments

The AST source parser has issues when running under Python 3 code I think due to the fact that None is now a keyword in Python3. This means it doesn't "see" the None and returns a syntax error. e.g. the following:

parser.add_argument('-o', '--outfile', dest='outfile', default=None, type=str, help='Filename for output')

...gives a syntax error for missing value...

parser.add_argument('-o', '--outfile', dest='outfile', default=, type=str, help='Filename for output')

mfitzp avatar Aug 18 '15 09:08 mfitzp

See https://github.com/wooey/clinto/pull/9

mfitzp avatar Aug 25 '15 09:08 mfitzp