Martin Dengler added the comment:

Bram's patch for "special" characters is in, mine is the one that allows spaces 
in .netrc by enabling the parsing of a password field's value that's surrounded 
by lexer.quotes ( https://hg.python.org/cpython/file/2.7/Lib/shlex.py#l45 ).

This is not the same as Perl's approach (parse the file in a 
quoted-character-aware way, so quoted spaces don't separate tokens), but was 
much simpler to implement.

So, in effect, there are no general support for quoting introduced by my patch, 
only a special case for supporting the entire contents of the password field to 
be surrounded by the shlex.quote characters.

Would you accept a different (longer, more involved) patch to implement the 
arbitrary quoting of characters, or an update to this patch to document how the 
password field is treated and which characters can surround it?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue557704>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to