]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Checkin the regenerated Python-ast.c and fix test_optparse.
authorGeorg Brandl <georg@python.org>
Sun, 11 Feb 2007 23:06:17 +0000 (23:06 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 Feb 2007 23:06:17 +0000 (23:06 +0000)
Lib/optparse.py
Python/Python-ast.c

index 5122e4974b117a012d04e9022640d1eafeb40416..8e1ef52b94cad67bf5b10e65b522cb1a6e6068d3 100644 (file)
@@ -611,8 +611,7 @@ class Option:
                 else:
                     setattr(self, attr, None)
         if attrs:
-            attrs = attrs.keys()
-            attrs.sort()
+            attrs = sorted(attrs.keys())
             raise OptionError(
                 "invalid keyword arguments: %s" % ", ".join(attrs),
                 self)
index d0b4b29dab0a75eaba9a326c65673a460d02c1c5..13fc5e0cd22b23c82addc66c2216a3485202a293 100644 (file)
@@ -3080,7 +3080,7 @@ init_ast(void)
         if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
         if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
                 return;
-        if (PyModule_AddStringConstant(m, "__version__", "53349") < 0)
+        if (PyModule_AddStringConstant(m, "__version__", "53704") < 0)
                 return;
         if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
         if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)