File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ json/**
1717__future__.py
1818_LWPCookieJar.py
1919_MozillaCookieJar.py
20+ _pyio.py
2021_strptime.py
2122_threading_local.py
2223aifc.py
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ public static ContextManager getManager(PyObject manager) {
5656 public static PyObject makeManager (PyObject object ) {
5757 if (object instanceof PyFunction ) {
5858 PyFunction function = (PyFunction ) object ;
59- PyCode code = function .func_code ;
59+ PyCode code = function .__code__ ;
6060 if (code instanceof PyBaseCode ) {
6161 PyBaseCode pyCode = (PyBaseCode ) code ;
6262 if (pyCode .co_flags .isFlagSet (CodeFlag .CO_GENERATOR )) {
63- return new PyFunction (function .func_globals ,
63+ return new PyFunction (function .__globals__ ,
6464 function .func_defaults ,
6565 new ContextCode (pyCode ),
6666 function .__doc__ ,
You can’t perform that action at this time.
0 commit comments