Browse Source

Use self.stdout instead of print

Mike Naberezny 12 năm trước cách đây
mục cha
commit
f31af40191
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      supervisor/options.py

+ 2 - 2
supervisor/options.py

@@ -123,10 +123,10 @@ class Options:
 
 
         Occurrences of "%s" in are replaced by self.progname.
         Occurrences of "%s" in are replaced by self.progname.
         """
         """
-        help = self.doc
+        help = self.doc + "\n"
         if help.find("%s") > 0:
         if help.find("%s") > 0:
             help = help.replace("%s", self.progname)
             help = help.replace("%s", self.progname)
-        print help,
+        self.stdout.write(help)
         self.exit(0)
         self.exit(0)
 
 
     def usage(self, msg):
     def usage(self, msg):