https://bugs.kde.org/show_bug.cgi?id=476708

Mark Wielaard <m...@klomp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|jsew...@acm.org             |m...@klomp.org
             Status|REPORTED                    |ASSIGNED

--- Comment #2 from Mark Wielaard <m...@klomp.org> ---
(In reply to Paul Floyd from comment #1)
> I'm not sure what the \[ is doing in the complemented character set. I
> assume that this is looking for
> 
> 'literal ['
> 'a bunch of non-square bracket characters'
> 'literal ]'

Yes, that is what it is for. But \[ is a valid escape for the regular
expression string, but not in a regular python string.
That is why we get that SyntaxWarning. Using raw strings makes sure python
doesn't try to interpret escape sequences.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to