Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv8694
Modified Files:
mkhowto
Log Message:
no longer assign into sys; "print chevron" is the way to go
Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** mkhowto 1 Oct 2003 04:03:54 -0000 1.42
--- mkhowto 1 Oct 2003 04:07:44 -0000 1.43
***************
*** 65,76 ****
! def usage(options):
! print __doc__ % options
def error(options, message, err=2):
! sys.stdout = sys.stderr
! print message
! print
! usage(options)
sys.exit(2)
--- 65,75 ----
! def usage(options, file):
! print >>file, __doc__ % options
def error(options, message, err=2):
! print >>sys.stderr, message
! print >>sys.stderr
! usage(options, sys.stderr)
sys.exit(2)
***************
*** 152,156 ****
self.dvips_safe = "ps" in self.formats
elif opt in ("-H", "--help"):
! usage(self)
sys.exit()
elif opt == "--iconserver":
--- 151,155 ----
self.dvips_safe = "ps" in self.formats
elif opt in ("-H", "--help"):
! usage(self, sys.stdout)
sys.exit()
elif opt == "--iconserver":