Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/Compat/serialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function serialize_py(s, x::Py)
if pyisnull(x)
serialize(s, nothing)
else
b = pyimport("pickle").dumps(x)
b = pyimport(get(ENV, "JULIA_PYTHONCALL_PICKLE", "pickle")).dumps(x)
serialize(s, pybytes_asvector(b))
end
end
Expand All @@ -16,7 +16,7 @@ function deserialize_py(s)
if v === nothing
pynew()
else
pyimport("pickle").loads(pybytes(v))
pyimport(get(ENV, "JULIA_PYTHONCALL_PICKLE", "pickle")).loads(pybytes(v))
end
end

Expand Down