/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 breezy/export.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        # then we should stream a tar file and unpack that on the fly.
76
76
        with tree.lock_read():
77
77
            for unused in dir_exporter_generator(tree, dest, root, subdir,
78
 
                    force_mtime):
 
78
                                                 force_mtime):
79
79
                pass
80
80
        return
81
81
 
82
82
    with tree.lock_read():
83
 
        chunks = tree.archive(format, dest, root=root, subdir=subdir, force_mtime=force_mtime)
 
83
        chunks = tree.archive(format, dest, root=root,
 
84
                              subdir=subdir, force_mtime=force_mtime)
84
85
        if dest == '-':
85
86
            for chunk in chunks:
86
 
                 getattr(sys.stdout, 'buffer', sys.stdout).write(chunk)
 
87
                getattr(sys.stdout, 'buffer', sys.stdout).write(chunk)
87
88
        elif fileobj is not None:
88
89
            for chunk in chunks:
89
90
                fileobj.write(chunk)
204
205
                    % (fullpath, symlink_target, e))
205
206
        else:
206
207
            raise errors.BzrError("don't know how to export {%s} of kind %r" %
207
 
               (tp, ie.kind))
 
208
                                  (tp, ie.kind))
208
209
 
209
210
        yield
210
211
    # The data returned here can be in any order, but we've already created all