Skip to content

Commit fd0741b

Browse files
author
Christopher Doris
committed
oops forgot to check this in
1 parent 2466154 commit fd0741b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/convert.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -383,24 +383,6 @@ pyconvertarg(::Type{T}, x, name) where {T} = @autopy x @pyconvert T x_ begin
383383
pythrow()
384384
end
385385

386-
macro pyconvert_and_del(T, x, onfail=:(return $pyconvert_unconverted()))
387-
quote
388-
ans = pytryconvert($(esc(T)), $(esc(x)))
389-
pydel!($(esc(x)))
390-
if pyconvert_isunconverted(ans)
391-
$(esc(onfail))
392-
else
393-
pyconvert_result($(esc(T)), ans)
394-
end
395-
end
396-
end
397-
398-
pyconvert_and_del(::Type{T}, x) where {T} = begin
399-
ans = pyconvert(T, x)
400-
pydel!(x)
401-
ans
402-
end
403-
404386
function init_pyconvert()
405387
push!(PYCONVERT_EXTRATYPES, pyimport("io"=>"IOBase"))
406388
push!(PYCONVERT_EXTRATYPES, pyimport("numbers"=>("Number", "Complex", "Real", "Rational", "Integral"))...)

0 commit comments

Comments
 (0)