Checkin the regenerated Python-ast.c and fix test_optparse.
This commit is contained in:
parent
07f2436fa8
commit
c2d9d7f489
|
@ -611,8 +611,7 @@ class Option:
|
||||||
else:
|
else:
|
||||||
setattr(self, attr, None)
|
setattr(self, attr, None)
|
||||||
if attrs:
|
if attrs:
|
||||||
attrs = attrs.keys()
|
attrs = sorted(attrs.keys())
|
||||||
attrs.sort()
|
|
||||||
raise OptionError(
|
raise OptionError(
|
||||||
"invalid keyword arguments: %s" % ", ".join(attrs),
|
"invalid keyword arguments: %s" % ", ".join(attrs),
|
||||||
self)
|
self)
|
||||||
|
|
|
@ -3080,7 +3080,7 @@ init_ast(void)
|
||||||
if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
|
if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
|
||||||
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
|
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
|
||||||
return;
|
return;
|
||||||
if (PyModule_AddStringConstant(m, "__version__", "53349") < 0)
|
if (PyModule_AddStringConstant(m, "__version__", "53704") < 0)
|
||||||
return;
|
return;
|
||||||
if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
|
if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
|
||||||
if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
|
if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
|
||||||
|
|
Loading…
Reference in New Issue