OSDN Git Service
(root)
/
joypy
/
Thun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f454014
)
When loading definitions ignore lines w/o "==".
author
Simon Forman
<sforman@hushmail.com>
Sat, 21 Apr 2018 18:40:00 +0000
(11:40 -0700)
committer
Simon Forman
<sforman@hushmail.com>
Sat, 21 Apr 2018 18:40:00 +0000
(11:40 -0700)
joy/library.py
patch
|
blob
|
history
diff --git
a/joy/library.py
b/joy/library.py
index
49b6699
..
90139cc
100644
(file)
--- 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
)
#