~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to generate_docs.py

  • Committer: Blake Winton
  • Date: 2007-10-16 16:02:01 UTC
  • mto: This revision was merged to the branch mainline in revision 2921.
  • Revision ID: bwinton@latte.ca-20071016160201-os2bci2ujf7in7an
Change 'print >> f,'s to 'f.write('s.

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__':