From b190f8eca8b53764b7d3a38931e5c5a0588d5f54 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Wed, 9 Mar 2022 14:53:16 -0800 Subject: [PATCH] Export JOY_BOOL_LITERALS --- implementations/Python/joy/utils/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implementations/Python/joy/utils/stack.py b/implementations/Python/joy/utils/stack.py index ab8ae03..f0063a8 100644 --- a/implementations/Python/joy/utils/stack.py +++ b/implementations/Python/joy/utils/stack.py @@ -130,11 +130,11 @@ def expression_to_string(expression): return _to_string(expression, iter_stack) -_JOY_BOOL_LITS = 'false', 'true' +JOY_BOOL_LITERALS = 'false', 'true' def _joy_repr(thing): - if isinstance(thing, bool): return _JOY_BOOL_LITS[thing] + if isinstance(thing, bool): return JOY_BOOL_LITERALS[thing] if isinstance(thing, Snippet): return snip_to_string(thing) return repr(thing)