Implement PEP 3115 -- new metaclass syntax and semantics.
The compiler package hasn't been updated yet; test_compiler.py fails.
Otherwise all tests seem to be passing now. There are no occurrences
of __metaclass__ left in the standard library.
Docs have not been updated.
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index c3d3415..b3e33c5 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -5991,6 +5991,10 @@
* from both DBError and KeyError, since the API only supports
* using one base class. */
PyDict_SetItemString(d, "KeyError", PyExc_KeyError);
+ {
+ PyObject *builtin_mod = PyImport_ImportModule("__builtin__");
+ PyDict_SetItemString(d, "__builtins__", builtin_mod);
+ }
PyRun_String("class DBNotFoundError(DBError, KeyError): pass\n"
"class DBKeyEmptyError(DBError, KeyError): pass",
Py_file_input, d, d);