From: W. Trevor King Date: Tue, 24 Aug 2010 11:44:17 +0000 (-0400) Subject: Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels. X-Git-Tag: v0.1^0 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=458baf4d02a354dab67843b6228b158d4148f2c1;p=cookbook.git Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels. --- 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')