From: Fred Drake Date: Wed, 1 Oct 2003 04:07:44 +0000 (+0000) Subject: no longer assign into sys; "print chevron" is the way to go X-Git-Tag: v2.4a1~1482 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e3a27789a7c182fcf4e7f833b9e2b795c9e3b84;p=python no longer assign into sys; "print chevron" is the way to go --- diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index 8f506c5ba5..5c1d31cd69 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -64,14 +64,13 @@ PERL_BINARY = "perl" PYTHON_BINARY = "python" -def usage(options): - print __doc__ % options +def usage(options, file): + print >>file, __doc__ % options def error(options, message, err=2): - sys.stdout = sys.stderr - print message - print - usage(options) + print >>sys.stderr, message + print >>sys.stderr + usage(options, sys.stderr) sys.exit(2) @@ -151,7 +150,7 @@ class Options: self.formats = list(self.ALL_FORMATS) self.dvips_safe = "ps" in self.formats elif opt in ("-H", "--help"): - usage(self) + usage(self, sys.stdout) sys.exit() elif opt == "--iconserver": self.icon_server = arg