[issue4962] urlparse & nfs url (rfc 2224)
report at bugs.python.org
Mon Jan 19 10:50:09 CET 2009
Cédric BRINER <briner at infomaniak.ch> added the comment:
> Do you encounter any errors or weird behaviors while using nfs url?
Do you mean: Do I have problem using the python module in conjunction of
No, because, I'm not yet using it. But I would like to do it. And I find
it strange that it can not find the host by itself.
>('nfs', '', '//server//a/b/c/d/e/f', '', '', '')
>If you have done the research already, can you please explain what
>difference will adding 'nfs' to uses_netloc do in urlparse.py.
As much as I've looked at the code, the uses_netloc provide an easy way
to tell urlparse.py if such scheme as nfs is composed
by a net location (host[:port]). Which is the case. Modifying
uses_netloc by addind 'nfs' into it will transform the following:
nfsurl : 'nfs://server//a/b/c/d/e/f'
in urlparse from:
('nfs', '', '//server//a/b/c/d/e/f', '', '', '')
('nfs', 'server', '//a/b/c/d/e/f', '', '', '')
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list