Ticket #1299 (closed defect: fixed)
convert re.sub to string.replace
| Reported by: | szabolcs | Owned by: | szabolcs |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | generic | Version: | |
| Keywords: | Cc: | ||
| Time spent: | 3.0h | Time remaining: | 0h |
| Time planned: | 2h |
Description
re.sub is much slower than string.replace and most of them can be replaced (no regex in the pattern, only simple strings)
the same for re.search -> string.find
Change History
Note: See
TracTickets for help on using
tickets.
