~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-24 12:49:17 UTC
  • mfrom: (2935.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071024124917-xb75eckyxx6vkrlg
Makefile fixes - hooks.html generation & allow python to be overridden (Ian Clatworthy)

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