Author jjl
Recipients ezio.melotti, jjl, mrabarnett
Date 2013-08-05.17:10:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Traceback (most recent call last):
  File "/Users/jlaver/", line 6, in test_escape
    self.assertEquals(re.escape('-'), '-')
AssertionError: '\\-' != '-'

The only place you can do bad things with hyphens is in a character class. I fail to see how you'd be in the situation of wanting to use escape()d data in a character class. Even if I could think of a reason to do that, it's decidedly not the usual case.

It's all over again, just with a different character (in that case, underscore).

While we're at it, what else shouldn't it be escaping?
Date User Action Args
2013-08-05 17:10:44jjlsetrecipients: + jjl, ezio.melotti, mrabarnett
2013-08-05 17:10:44jjlsetmessageid: <>
2013-08-05 17:10:44jjllinkissue18662 messages
2013-08-05 17:10:43jjlcreate