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

  • Committer: Vincent Ladeuil
  • Date: 2011-06-06 09:31:59 UTC
  • mto: (5952.1.24 tarball-generator)
  • mto: This revision was merged to the branch mainline in revision 5961.
  • Revision ID: v.ladeuil+lp@free.fr-20110606093159-b7qnoz785pzon0dr
PEP8 tweaks, lines too long, spaces at end of lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    )
28
28
 
29
29
 
30
 
def dir_exporter_generator(tree, dest, root, subdir=None, filtered=False, 
 
30
def dir_exporter_generator(tree, dest, root, subdir=None, filtered=False,
31
31
                           force_mtime=None, fileobj=None):
32
32
    """Return a generator that exports this tree to a new directory.
33
33
 
45
45
        if e.errno == errno.EEXIST:
46
46
            # check if directory empty
47
47
            if os.listdir(dest) != []:
48
 
                raise errors.BzrError("Can't export tree to non-empty directory.")
 
48
                raise errors.BzrError(
 
49
                    "Can't export tree to non-empty directory.")
49
50
        else:
50
51
            raise
51
52
    # Iterate everything, building up the files we will want to export, and
105
106
 
106
107
    for _ in dir_exporter_generator(tree, dest, root, subdir, filtered,
107
108
                                    force_mtime, fileobj):
108
 
        pass
 
 
b'\\ No newline at end of file'
 
109
        pass