~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-04-25 15:05:42 UTC
  • mfrom: (1185.85.85 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060425150542-c7b518dca9928691
[merge] the old bzr-encoding changes, reparenting them on bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from bzrlib.transport import Transport, register_transport, Server
32
32
from bzrlib.errors import (TransportNotPossible, NoSuchFile,
33
33
                           TransportError, ConnectionError)
34
 
from bzrlib.errors import BzrError, BzrCheckError
35
34
from bzrlib.branch import Branch
36
35
from bzrlib.trace import mutter
37
36
# TODO: load these only when running http tests
113
112
        implementation qualifier.
114
113
        """
115
114
        assert isinstance(relpath, basestring)
 
115
        if isinstance(relpath, unicode):
 
116
            raise errors.InvalidURL(relpath, 'paths must not be unicode.')
116
117
        if isinstance(relpath, basestring):
117
118
            relpath_parts = relpath.split('/')
118
119
        else: