X-Git-Url: http://git.tremily.us/?p=cookbook.git;a=blobdiff_plain;f=bin%2Fcook.py;fp=bin%2Fcook.py;h=a832e33b315dc67549b92cce70f1d031c458707f;hp=bd0286059fc133431a4a573f2001967427861200;hb=458baf4d02a354dab67843b6228b158d4148f2c1;hpb=1c8876a3f408bb5ad8b0484008be97321c59f211 diff --git a/bin/cook.py b/bin/cook.py index bd02860..a832e33 100755 --- 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')