clinto
clinto copied to clipboard
Python 3 None
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')
See https://github.com/wooey/clinto/pull/9