My previous patch to warn about unknown backslash escapes was buggy, and
warns on "\0" or "\177".  This fixes it.

As I say in a comment, I do wonder if octal escapes are so rare today that
they often indicate incorrect escaping.  In my survey of some Google code,
I do see things like "\1" used much more often as a regexp replacement than
as an octal escape.  How would you feel about an (of course suppressable)
warning for non-zero octal characters?

-- 
Martin

Attachment: 2013-01-02-pylint-nul.diff
Description: Binary data

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to