Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels. v0.1
authorW. Trevor King <wking@drexel.edu>
Tue, 24 Aug 2010 11:44:17 +0000 (07:44 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 24 Aug 2010 11:44:17 +0000 (07:44 -0400)
bin/cook.py

index bd0286059fc133431a4a573f2001967427861200..a832e33b315dc67549b92cce70f1d031c458707f 100755 (executable)
@@ -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')