Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 974e32d

Browse files
committed
Steve Clift pointed out that 'file' allows a netloc.
1 parent 61eeb04 commit 974e32d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/urlparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'https', 'shttp',
1111
'prospero', '']
1212
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
13+
'file',
1314
'https', 'shttp', 'snews',
1415
'prospero', '']
1516
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais',

0 commit comments

Comments
 (0)