File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,16 +151,16 @@ struct type_caster<std::function<Return(Args...)>> {
151151 std::cout << " __code__ exists" << std::endl;
152152 argCount = argCountFromFuncCode (codeAttr);
153153 } else {
154- object callAttr = getattr (src , " __call__" );
155- // = reinterpret_borrow<object>(PyObject_GetAttrString(src.ptr(), "__call__"));
154+ object callAttr = getattr (src, " __call__" );
155+ // = reinterpret_borrow<object>(PyObject_GetAttrString(src.ptr(), "__call__"));
156156 assert ((static_cast <bool >(callAttr)
157157 == static_cast <bool >(PyObject_HasAttrString (src.ptr (), " __call__" )))
158158 && " ptr and "
159159 " HasAttrString "
160160 " inconsistent for __call__" );
161161 if (static_cast <bool >(PyObject_HasAttrString (src.ptr (), " __call__" ))) {
162162 std::cout << " __call__ exists" << std::endl;
163- object codeAttr2 = getattr (callAttr , " __code__" );
163+ object codeAttr2 = getattr (callAttr, " __code__" );
164164 // reinterpret_borrow<object>(
165165 // PyObject_GetAttrString(callAttr.ptr(), "__code__"));
166166 argCount = argCountFromFuncCode (codeAttr2)
You can’t perform that action at this time.
0 commit comments