Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some leftover _Py #481

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compat/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function init_gui()
pycopy!(new_event_loop_callback, g["new_event_loop_callback"])

# add a hook to automatically call fix_qt_plugin_path()
fixqthook = Py(() -> (_Py.CONFIG.auto_fix_qt_plugin_path && fix_qt_plugin_path(); nothing))
fixqthook = Py(() -> (Core.CONFIG.auto_fix_qt_plugin_path && fix_qt_plugin_path(); nothing))
pymodulehooks.add_hook("PyQt4", fixqthook)
pymodulehooks.add_hook("PyQt5", fixqthook)
pymodulehooks.add_hook("PySide", fixqthook)
Expand Down
2 changes: 1 addition & 1 deletion src/Compat/pycall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function init_pycall(PyCall::Module)
- Set the environment variable `PYTHON` to `PythonCall.C.CTX.exe_path` and rebuild PyCall. This forces PyCall
to use the same interpreter as PythonCall, but needs to be repeated whenever you switch Julia environment.
"""
@eval function _Py.Py(x::$PyCall.PyObject)
@eval function Core.Py(x::$PyCall.PyObject)
C.CTX.matches_pycall::Bool || error($errmsg)
return pynew(C.PyPtr($PyCall.pyreturn(x)))
end
Expand Down
2 changes: 1 addition & 1 deletion src/JlWrap/objectarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PyObjectArray(undef::UndefInitializer, dims::Vararg{Integer,N}) where {N} = PyOb
PyObjectArray{N}(x::AbstractArray{T,N}) where {T,N} = copyto!(PyObjectArray{N}(undef, size(x)), x)
PyObjectArray(x::AbstractArray{T,N}) where {T,N} = PyObjectArray{N}(x)

pyobjectarray_finalizer(x::PyObjectArray) = _Py.GC.enqueue_all(x.ptrs)
pyobjectarray_finalizer(x::PyObjectArray) = GC.enqueue_all(x.ptrs)

Base.IndexStyle(x::PyObjectArray) = Base.IndexStyle(x.ptrs)

Expand Down
Loading