From 458baf4d02a354dab67843b6228b158d4148f2c1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 24 Aug 2010 07:44:17 -0400 Subject: [PATCH] Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels. --- bin/cook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.26.2