From: Simon Forman Date: Sat, 21 Apr 2018 18:40:00 +0000 (-0700) Subject: When loading definitions ignore lines w/o "==". X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4064ac1d2367abc7343792cd23b478697304326f;p=joypy%2FThun.git When loading definitions ignore lines w/o "==". --- 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) #