~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/repository.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-19 01:56:41 UTC
  • mfrom: (6379.4.8 urlutils-quote)
  • Revision ID: pqm@pqm.ubuntu.com-20111219015641-k7fyhyf6rfgk93m2
(jelmer) Include quote() and unquote() directly in bzrlib.urlutils. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import gzip
24
24
import os
25
25
from cStringIO import StringIO
26
 
import urllib
27
26
 
28
27
from bzrlib.lazy_import import lazy_import
29
28
lazy_import(globals(), """
708
707
            raise errors.ObjectNotLocked(self)
709
708
        relpaths = set()
710
709
        for quoted_relpath in self._transport.iter_files_recursive():
711
 
            relpath = urllib.unquote(quoted_relpath)
 
710
            relpath = urlutils.unquote(quoted_relpath)
712
711
            path, ext = os.path.splitext(relpath)
713
712
            if ext == '.gz':
714
713
                relpath = path
748
747
            raise errors.ObjectNotLocked(self)
749
748
        relpaths = set()
750
749
        for quoted_relpath in self._transport.iter_files_recursive():
751
 
            relpath = urllib.unquote(quoted_relpath)
 
750
            relpath = urlutils.unquote(quoted_relpath)
752
751
            path, ext = os.path.splitext(relpath)
753
752
            if ext == '.gz':
754
753
                relpath = path