| 75 | |
| 76 | == Post Scriptum |
| 77 | |
| 78 | I noticed, for complete backwards compatibility prior to named patterns, the template should also have a fallback for this. |
| 79 | |
| 80 | Current: |
| 81 | {{{ |
| 82 | matches["url"] = unquote(transformed_url) |
| 83 | return template % matches |
| 84 | }}} |
| 85 | |
| 86 | Proposed change: |
| 87 | {{{ |
| 88 | try: |
| 89 | # Remain backwards compatible prior to changing to named template strings |
| 90 | return template % unquote(transformed_url) |
| 91 | except TypeError: |
| 92 | # Template string is thus a named template string |
| 93 | return template % {"url": unquote(transformed_url)} |
| 94 | }}} |