/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 tools/package_docs.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 17:00:29 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205170029-s01xdro0hkixhq3r
Convert some octal numbers to new notations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
 
70
70
def build_archive(src_dir, archive_name, archive_root, format):
71
 
    print "creating %s ..." % (archive_name,)
 
71
    print("creating %s ..." % (archive_name,))
72
72
    tar = tarfile.open(archive_name, "w:%s" % (format,))
73
73
    for relpath in os.listdir(src_dir):
74
74
        src_path = os.path.join(src_dir, relpath)
98
98
    dest_downloads = os.path.join(dest_dir, 'downloads')
99
99
    for d in [dest_dir, dest_downloads]:
100
100
        if not os.path.exists(d):
101
 
            print "creating directory %s ..." % (d,)
 
101
            print("creating directory %s ..." % (d,))
102
102
            os.mkdir(d)
103
103
 
104
104
    # Package and copy the files across