From 4064ac1d2367abc7343792cd23b478697304326f Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sat, 21 Apr 2018 11:40:00 -0700 Subject: [PATCH] When loading definitions ignore lines w/o "==". --- joy/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joy/library.py b/joy/library.py index 49b6699..90139cc 100644 --- a/joy/library.py +++ b/joy/library.py @@ -244,7 +244,7 @@ class DefinitionWrapper(FunctionWrapper): def _text_to_defs(text): - return filter(None, (line.strip() for line in text.splitlines())) + return (line.strip() for line in text.splitlines() if '==' in line) #