mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Added PY_RESOURCE (mac only) to imp module
This commit is contained in:
@@ -962,6 +962,13 @@ initimp()
|
||||
dictinsert(d, "C_EXTENSION", v);
|
||||
XDECREF(v);
|
||||
|
||||
#ifdef macintosh
|
||||
v = newintobject(PY_RESOURCE);
|
||||
dictinsert(d, "PY_RESOURCE", v);
|
||||
XDECREF(v);
|
||||
#endif
|
||||
|
||||
|
||||
if (err_occurred())
|
||||
fatal("imp module initialization failed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user