소스 검색

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