projects
/
cookbook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c8876a
)
Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels.
v0.1
author
W. Trevor King
<wking@drexel.edu>
Tue, 24 Aug 2010 11:44:17 +0000
(07:44 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 24 Aug 2010 11:44:17 +0000
(07:44 -0400)
bin/cook.py
patch
|
blob
|
history
diff --git
a/bin/cook.py
b/bin/cook.py
index bd0286059fc133431a4a573f2001967427861200..a832e33b315dc67549b92cce70f1d031c458707f 100755
(executable)
--- a/
bin/cook.py
+++ b/
bin/cook.py
@@
-43,7
+43,6
@@
if __name__ == '__main__':
import optparse
import sys
- # HACK! to ensure we *always* get utf-8 output
p = optparse.OptionParser()
p.add_option('-t', '--test', dest='test', default=False,
action='store_true', help='run internal tests and exit')
@@
-80,6
+79,7
@@
if __name__ == '__main__':
sys.stderr.write('Saving cookbook\n')
c.save('new-recipe')
else:
+ # HACK! to ensure we *always* get utf-8 output
#reload(sys)
#sys.setdefaultencoding('utf-8')
sys.stderr.write('Serving cookbook\n')