Skip to content

Commit

Permalink
use &reader instead of hy.&reader
Browse files Browse the repository at this point in the history
  • Loading branch information
scauligi authored and Kodiologist committed Aug 14, 2023
1 parent e938801 commit 316e1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyrule/macrotools.hy
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@
=> (#/ os/path.basename "path/to/file")
"file"]]
(.slurp-space hy.&reader)
(setv [mod #* ident] (.split (.read-ident hy.&reader) ".")
(.slurp-space &reader)
(setv [mod #* ident] (.split (.read-ident &reader) ".")
imp `(hy.M ~(hy.mangle (.replace mod "/" "."))))
(if ident
`(. ~imp ~@(map hy.models.Symbol ident))
Expand Down

0 comments on commit 316e1e6

Please sign in to comment.