~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Mark Hammond
  • Date: 2008-12-21 07:02:55 UTC
  • mto: (3932.3.1 cicp-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081221070255-woe8jyj2gxn9fteg
Add canonical_relpaths() as a placeholder for a future caching implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
992
992
else:
993
993
    canonical_relpath = relpath
994
994
 
 
995
def canonical_relpaths(base, paths):
 
996
    """Create an iterable to canonicalize a sequence of relative paths.
 
997
 
 
998
    The intent is for this implementation to use a cache, vastly speeding
 
999
    up multiple transformations in the same directory.
 
1000
    """
 
1001
    # but for now, we haven't optimized...
 
1002
    return [canonical_relpath(base, p) for p in paths]
995
1003
 
996
1004
def safe_unicode(unicode_or_utf8_string):
997
1005
    """Coerce unicode_or_utf8_string into unicode.