mirror of https://github.com/python/cpython
Added PY_RESOURCE (mac only) to imp module
This commit is contained in:
parent
2c67362f70
commit
ae12e19409
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue