Skip to content

Commit

Permalink
Don't use the internal Hy module hy._compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed May 2, 2024
1 parent 233a301 commit 67dfc1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hyrule/hypprint.hy
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ Since Hy lacks :ref:`implicit concatenation of string literals
_safe-tuple
_safe-key]
hy.core.hy-repr
hy._compat [PY3_10]
hyrule.collections [assoc]
hyrule.misc [inc dec constantly])

(export [pprint pformat saferepr PrettyPrinter readable? recursive? pp])

(if PY3_10
(if (>= sys.version-info #(3 10))
(defn _safe-py-repr [object context maxlevels level sort-dicts]
(._safe-repr (PyPrettyPrinter :sort-dicts sort-dicts)
object context maxlevels level))
Expand Down

0 comments on commit 67dfc1d

Please sign in to comment.