فهرست منبع

Use self.stdout instead of print

Mike Naberezny 12 سال پیش
والد
کامیت
f31af40191
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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.
         """
-        help = self.doc
+        help = self.doc + "\n"
         if help.find("%s") > 0:
             help = help.replace("%s", self.progname)
-        print help,
+        self.stdout.write(help)
         self.exit(0)
 
     def usage(self, msg):