mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Enable pycodestyle W605 (invalid escape sequence).
The only changes visible at the AST level, checked using https://github.com/asottile/astpretty, are zerver/lib/test_fixtures.py: '\x1b\\[(1|0)m' ↦ '\\x1b\\[(1|0)m' '\\[[X| ]\\] (\\d+_.+)\n' ↦ '\\[[X| ]\\] (\\d+_.+)\\n' which is fine because re treats '\\x1b' and '\\n' the same way as '\x1b' and '\n'. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
7b8d3023f5
commit
037f696d26
@@ -11,7 +11,7 @@ def get_json_filename(locale: str) -> str:
|
||||
def get_locales() -> List[str]:
|
||||
tracked_files = check_output(['git', 'ls-files', 'static/locale'])
|
||||
tracked_files = tracked_files.decode().split()
|
||||
regex = re.compile('static/locale/(\w+)/LC_MESSAGES/django.po')
|
||||
regex = re.compile(r'static/locale/(\w+)/LC_MESSAGES/django.po')
|
||||
locales = ['en']
|
||||
for tracked_file in tracked_files:
|
||||
matched = regex.search(tracked_file)
|
||||
|
||||
Reference in New Issue
Block a user