projects
/
cookbook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
271e7ea
)
Handle 'None' in YAML Directions.
author
W. Trevor King
<wking@drexel.edu>
Wed, 18 Aug 2010 00:38:48 +0000
(20:38 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 18 Aug 2010 00:38:48 +0000
(20:38 -0400)
cookbook/cookbook.py
patch
|
blob
|
history
diff --git
a/cookbook/cookbook.py
b/cookbook/cookbook.py
index fdfae2c5053cf216e000e3de9d7b8bbd564e3c52..24a70feeda9eb34ac151543eadadbf4810267534 100644
(file)
--- a/
cookbook/cookbook.py
+++ b/
cookbook/cookbook.py
@@
-353,6
+353,8
@@
class Directions (list):
for paragraph in self]))
def from_yaml(self, string):
+ if string == None:
+ return
while len(self) > 0:
self.pop()
for paragraph in string.split('\n\n'):