~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/transport.txt

  • Committer: Patch Queue Manager
  • Date: 2016-04-21 04:10:52 UTC
  • mfrom: (6616.1.1 fix-en-user-guide)
  • Revision ID: pqm@pqm.ubuntu.com-20160421041052-clcye7ns1qcl2n7w
(richard-wilbur) Ensure build of English use guide always uses English text
 even when user's locale specifies a different language. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   >>> from bzrlib.urlutils import local_path_from_url
7
7
   >>> import bzrlib.transport as transport
8
8
   >>> if sys.platform == 'win32':
9
 
   ...     root = transport.get_transport('file:///C:/')
 
9
   ...     root = transport.get_transport_from_url('file:///C:/')
10
10
   ... else:
11
 
   ...     root = transport.get_transport('file:///')
 
11
   ...     root = transport.get_transport_from_url('file:///')
12
12
   >>>
13
13
 
14
14
Each Transport instance represents a single logical directory.
15
15
 
16
 
   >>> dir = transport.get_transport(".")
 
16
   >>> dir = transport.get_transport_from_path(".")
17
17
   >>> local_path_from_url(dir.base) == getcwd() + '/'
18
18
   True
19
19