~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to generate_docs.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-19 20:12:26 UTC
  • mfrom: (2911.6.4 bzr.writes)
  • Revision ID: pqm@pqm.ubuntu.com-20071019201226-6z006xotgfe7zmu8
(Blake Winton) Switch 'print >>f' to 'f.write()' throughout the codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        outfile = open(outfilename,"w")
84
84
 
85
85
    if options.show_filename and (outfilename != "-"):
86
 
        print >>sys.stdout, outfilename
 
86
        sys.stdout.write(outfilename)
 
87
        sys.stdout.write('\n')
87
88
    
88
89
    infogen_mod.infogen(options, outfile)
89
90
 
93
94
    Prints out the examples stored in the docstring. 
94
95
 
95
96
    """
96
 
    print >>sys.stdout, __doc__ % {"prog":sys.argv[0]}
 
97
    sys.stdout.write(__doc__ % {"prog":sys.argv[0]})
 
98
    sys.stdout.write('\n')
97
99
    sys.exit(0)
98
100
 
99
101
if __name__ == '__main__':