/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/osutils.py

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
593
593
        F = realpath
594
594
    else:
595
595
        F = abspath
596
 
    [p,e] = os.path.split(f)
 
596
    [p, e] = os.path.split(f)
597
597
    if e == "" or e == "." or e == "..":
598
598
        return F(f)
599
599
    else:
1948
1948
        link_to = os.readlink(source)
1949
1949
        os.symlink(link_to, dest)
1950
1950
 
1951
 
    real_handlers = {'file':shutil.copy2,
1952
 
                     'symlink':copy_link,
1953
 
                     'directory':copy_dir,
 
1951
    real_handlers = {'file': shutil.copy2,
 
1952
                     'symlink': copy_link,
 
1953
                     'directory': copy_dir,
1954
1954
                    }
1955
1955
    real_handlers.update(handlers)
1956
1956
 
1992
1992
 
1993
1993
    This can be used to sort paths in the same way that walkdirs does.
1994
1994
    """
1995
 
    return (dirname(path) , path)
 
1995
    return (dirname(path), path)
1996
1996
 
1997
1997
 
1998
1998
def compare_paths_prefix_order(path_a, path_b):