/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 bzrlib/transport/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2007-07-22 17:18:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070722171805-u050omkduhfxijy0
From review comments, fix typos and deprecate some functions.

* bzrlib/transport/__init__.py:
(urlescape, urlunescape): Deprecated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1141
1141
    def __init__(self, base, _from_transport=None):
1142
1142
        """Constructor.
1143
1143
 
 
1144
        The caller should ensure that _from_transport points at the same host
 
1145
        as the new base.
 
1146
 
1144
1147
        :param base: transport root URL
1145
1148
 
1146
1149
        :param _from_transport: optional transport to build from. The built
1386
1389
        return transport
1387
1390
 
1388
1391
 
 
1392
@deprecated_function(zero_nineteen)
 
1393
def urlescape(relpath):
 
1394
    urlutils.escape(relpath)
 
1395
@deprecated_function(zero_nineteen)
 
1396
def urlunescape(url):
 
1397
    urlutils.unescape(url)
1389
1398
 
1390
 
# jam 20060426 For compatibility we copy the functions here
1391
 
# TODO: They should be marked as deprecated
1392
 
# vila-20070606: How should we do that ?
1393
 
urlescape = urlutils.escape
1394
 
urlunescape = urlutils.unescape
1395
1399
# We try to recognize an url lazily (ignoring user, password, etc)
1396
1400
_urlRE = re.compile(r'^(?P<proto>[^:/\\]+)://(?P<rest>.*)$')
1397
1401