locale formats should use raw strings
|Reported by:||Martin v. Löwis||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)
comment:1 Changed 7 years ago by
|Component:||Uncategorized → Translations|
|Triage Stage:||Unreviewed → Accepted|