Преглед на файлове

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):