Message228820
I prefer to include the line and column numbers if it's a multi-line pattern, not just if the line number is > 1.
BTW, it's shorter if you do this:
self.colno = pos - pattern.rfind(newline, 0, pos)
If there's no newline, .rfind will return -1. |
|
| Date |
User |
Action |
Args |
| 2014-10-08 23:01:42 | mrabarnett | set | recipients:
+ mrabarnett, pitrou, ezio.melotti, serhiy.storchaka |
| 2014-10-08 23:01:42 | mrabarnett | set | messageid: <[email protected]> |
| 2014-10-08 23:01:42 | mrabarnett | link | issue22578 messages |
| 2014-10-08 23:01:42 | mrabarnett | create | |
|