locale formats should use raw strings
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.
Component: |
Uncategorized → Translations
|
Has patch: |
set
|
milestone: |
→ 1.2
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Yes, this is something I had noted and tried to fix for
es_AR
in r12108 (wasn't sure about going either the raw string or the backslash escaping route), although I forgot a'\'
before a's'
inDATETIME_FORMAT
. We will try to fix this with Fabián Ramirez during the March 6 sprint.