Author: christian.heimes
Date: Fri Jan  4 00:05:47 2008
New Revision: 59681

Modified:
   python/branches/py3k/Parser/tokenizer.c
   python/branches/py3k/Python/ast.c
   python/branches/py3k/Python/bltinmodule.c
   python/branches/py3k/Python/codecs.c
Log:
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock

Modified: python/branches/py3k/Parser/tokenizer.c
==============================================================================
--- python/branches/py3k/Parser/tokenizer.c     (original)
+++ python/branches/py3k/Parser/tokenizer.c     Fri Jan  4 00:05:47 2008
@@ -452,7 +452,7 @@
 {
        PyObject *readline = NULL, *stream = NULL, *io = NULL;
 
-       io = PyImport_ImportModule("io");
+       io = PyImport_ImportModuleNoBlock("io");
        if (io == NULL)
                goto cleanup;
 

Modified: python/branches/py3k/Python/ast.c
==============================================================================
--- python/branches/py3k/Python/ast.c   (original)
+++ python/branches/py3k/Python/ast.c   Fri Jan  4 00:05:47 2008
@@ -56,7 +56,7 @@
        identifier; if so, normalize to NFKC. */
     for (; *u; u++) {
        if (*u >= 128) {
-           PyObject *m = PyImport_ImportModule("unicodedata");
+           PyObject *m = PyImport_ImportModuleNoBlock("unicodedata");
            PyObject *id2;
            if (!m)
                return NULL;

Modified: python/branches/py3k/Python/bltinmodule.c
==============================================================================
--- python/branches/py3k/Python/bltinmodule.c   (original)
+++ python/branches/py3k/Python/bltinmodule.c   Fri Jan  4 00:05:47 2008
@@ -281,7 +281,7 @@
 builtin_filter(PyObject *self, PyObject *args)
 {
        PyObject *itertools, *ifilter, *result;
-       itertools = PyImport_ImportModule("itertools");
+       itertools = PyImport_ImportModuleNoBlock("itertools");
        if (itertools == NULL)
                return NULL;
        ifilter = PyObject_GetAttrString(itertools, "ifilter");
@@ -796,7 +796,7 @@
 builtin_map(PyObject *self, PyObject *args)
 {
        PyObject *itertools, *imap, *result;
-       itertools = PyImport_ImportModule("itertools");
+       itertools = PyImport_ImportModuleNoBlock("itertools");
        if (itertools == NULL)
                return NULL;
        imap = PyObject_GetAttrString(itertools, "imap");

Modified: python/branches/py3k/Python/codecs.c
==============================================================================
--- python/branches/py3k/Python/codecs.c        (original)
+++ python/branches/py3k/Python/codecs.c        Fri Jan  4 00:05:47 2008
@@ -850,7 +850,7 @@
        interp->codec_error_registry == NULL)
        Py_FatalError("can't initialize codec registry");
 
-    mod = PyImport_ImportModuleLevel("encodings", NULL, NULL, NULL, 0);
+    mod = PyImport_ImportModuleNoBlock("encodings");
     if (mod == NULL) {
        if (PyErr_ExceptionMatches(PyExc_ImportError)) {
            /* Ignore ImportErrors... this is done so that
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to