This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdengler
Recipients Cristian Măgherușan-Stanciu, gvanrossum, mdengler, r.david.murray, rhettinger, skip.montanaro, vimboss
Date 2016-01-18.06:45:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453099537.24.0.465905150982.issue557704@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-01-18 06:45:37mdenglersetrecipients: + mdengler, gvanrossum, skip.montanaro, rhettinger, vimboss, r.david.murray, Cristian Măgherușan-Stanciu
2016-01-18 06:45:37mdenglersetmessageid: <1453099537.24.0.465905150982.issue557704@psf.upfronthosting.co.za>
2016-01-18 06:45:37mdenglerlinkissue557704 messages
2016-01-18 06:45:36mdenglercreate