~ubuntu-branches/ubuntu/hardy/bzr/hardy-updates

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Etienne Goyer
  • Date: 2007-03-07 08:55:49 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: james.westby@ubuntu.com-20070307085549-2y0nzag1hotluiah
Tags: upstream-0.15~rc1
ImportĀ upstreamĀ versionĀ 0.15~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
93
93
    intended to be used when the implementation depends on an external
94
94
    implementation that may not be present.  If any other error is raised, it
95
95
    propagates up and the attempt to open the url fails.
 
96
 
 
97
    :param scheme: The url scheme part, eg "ftp://"
96
98
    """
97
99
    # TODO: If no implementation of a protocol is available because of missing
98
100
    # dependencies, we should perhaps show the message about what dependency
1004
1006
 
1005
1007
    base is either a URL or a directory name.  
1006
1008
    """
1007
 
    # TODO: give a better error if base looks like a url but there's no
1008
 
    # handler for the scheme?
1009
1009
    global _protocol_handlers
1010
1010
    if base is None:
1011
1011
        base = '.'
1012
 
 
1013
1012
    last_err = None
1014
1013
 
1015
1014
    def convert_path_to_url(base, error_str):