Skip to content

Commit d93e99a

Browse files
author
hhaensel
committed
remove @pymethod for python-style imports
1 parent e9277ef commit d93e99a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/PyMacro/PyMacro.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -899,18 +899,6 @@ macro py(ex)
899899
esc(py_macro(ex, __module__, __source__))
900900
end
901901

902-
macro py(keyword, modulename, ex)
903-
keyword == :from || return :( nothing )
904-
905-
d = Dict(isa(a.args[1], Symbol) ? a.args[1] => a.args[1] : a.args[1].args[1] => a.args[2] for a in ex.args)
906-
vars = Expr(:tuple, values(d)...)
907-
imports = Tuple(keys(d))
908-
909-
esc(quote
910-
$vars = pyimport($(string(modulename)) => $(string.(imports)))
911-
end)
912-
end
913-
914902
export @py
915903

916904
end

0 commit comments

Comments
 (0)