Skip to content

Commit

Permalink
urlutils: greatly expand default port map
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Mar 11, 2017
1 parent aab51bd commit a41cc32
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions boltons/urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,16 @@
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh']
NO_NETLOC_SCHEMES = ['urn', 'tel', 'news', 'mailto', 'magnet'] # TODO: others?

DEFAULT_PORT_MAP = {'http': 80, 'https': 443}
NO_NETLOC_SCHEMES = ['urn', 'tel', 'news', 'mailto', 'magnet', 'about', 'blob', 'data'] # TODO: others?

DEFAULT_PORT_MAP = {'acap': 674, 'afp': 548, 'dict': 2628, 'dns': 53,
'file': None, 'ftp': 21, 'git': 9418, 'gopher': 70,
'http': 80, 'https': 443, 'imap': 143, 'irc': 194,
'ldap': 389, 'ldaps': 636, 'mms': 1755, 'nfs': 111,
'nntp': 119, 'nntps': 563, 'prospero': 1525, 'rsync': 873,
'rtsp': 554, 'rtsps': 322, 'rtspu': 5005, 'sftp': 22,
'smb': 445, 'snmp': 161, 'ssh': 22, 'svn': 3690,
'telnet': 23, 'wais': 210}

DEFAULT_ENCODING = 'utf8'

Expand Down

0 comments on commit a41cc32

Please sign in to comment.