~ubuntu-branches/ubuntu/maverick/duplicity/maverick-proposed

« back to all changes in this revision

Viewing changes to src/urlparse_2_5.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Hahler
  • Date: 2009-02-12 23:31:44 UTC
  • mfrom: (1.1.8 upstream) (5.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090212233144-fzxu9a94bnd2l05d
Tags: 0.5.08-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 
2
 
1
3
"""Parse (absolute and relative) URLs.
2
4
 
3
5
See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
8
10
           "urlsplit", "urlunsplit"]
9
11
 
10
12
# A classification of schemes ('' means apply by default)
11
 
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'gmail',
 
13
uses_relative = ['ftp', 'http', 'gopher', 'nntp',
12
14
                 'wais', 'file', 'https', 'shttp', 'mms',
13
 
                 'prospero', 'rtsp', 'rtspu', '', 'sftp']
14
 
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'gmail',
 
15
                 'prospero', 'rtsp', 'rtspu', '', 'sftp', 'imap', 'imaps']
 
16
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
15
17
               'wais', 'file', 'mms', 'https', 'shttp',
16
18
               'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
17
 
               'svn', 'svn+ssh', 'sftp']
 
19
               'svn', 'svn+ssh', 'sftp', 'imap', 'imaps']
18
20
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
19
 
                    'telnet', 'wais', 'gmail', 'snews', 'sip', 'sips']
20
 
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'gmail',
 
21
                    'telnet', 'wais', 'snews', 'sip', 'sips', 'imap', 'imaps']
 
22
uses_params = ['ftp', 'hdl', 'prospero', 'http', 
21
23
               'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
22
 
               'mms', '', 'sftp']
23
 
uses_query = ['http', 'wais', 'gmail', 'https', 'shttp', 'mms',
24
 
              'gopher', 'rtsp', 'rtspu', 'sip', 'sips', '']
 
24
               'mms', '', 'sftp', 'imap', 'imaps']
 
25
uses_query = ['http', 'wais', 'https', 'shttp', 'mms',
 
26
              'gopher', 'rtsp', 'rtspu', 'sip', 'sips', 'imap', 'imaps', '']
25
27
uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
26
28
                 'nntp', 'wais', 'https', 'shttp', 'snews',
27
29
                 'file', 'prospero', '']