/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to generate_docs.py

  • Committer: Robert Collins
  • Date: 2009-05-12 03:50:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4593.
  • Revision ID: robertc@robertcollins.net-20090512035039-6x0pahpjpkdnm9zb
Note another possible error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#
15
15
# You should have received a copy of the GNU General Public License
16
16
# along with this program; if not, write to the Free Software
17
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
19
"""%(prog)s - generate information from built-in bzr help
20
20
 
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__':