~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

[merge] robert's knit-performance work

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from stat import *
33
33
import sys
34
34
from unittest import TestSuite
 
35
import urllib
35
36
 
36
37
from bzrlib.trace import mutter, warning
37
38
import bzrlib.errors as errors
642
643
def urlescape(relpath):
643
644
    """Escape relpath to be a valid url."""
644
645
    # TODO utf8 it first. utf8relpath = relpath.encode('utf8')
645
 
    import urllib
646
646
    return urllib.quote(relpath)
647
647
 
648
648