locale formats should use raw strings
|Reported by:||loewis||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In a number of locale formats.py files, single backslashes are used to escape letters from datetime formatting. However, in some cases, these escapes now form Python escape characters (e.g. in es/locale.py, which contains backslash-a, denoting the BEL control character).
This patch uses raw strings in all cases where single backslashes are used, even if they wouldn't be strictly necessary. The only exception are files that already use double backslashes.
Change History (6)
Changed 4 years ago by loewis
comment:1 Changed 4 years ago by jezdez
- Component changed from Uncategorized to Translations
- Has patch set
- milestone set to 1.2
- Triage Stage changed from Unreviewed to Accepted