[printing] Fix Python 3.12 SyntaxWarning
Bug: None Change-Id: Ibcd04d02062ef4ba2ccbd1cd66ccbb3663dce71e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5526661 Reviewed-by: Alan Screen <awscreen@chromium.org> Commit-Queue: Alan Screen <awscreen@chromium.org> Auto-Submit: Max Ihlenfeldt <max@igalia.com> Cr-Commit-Position: refs/heads/main@{#1298684}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
80a6410959
commit
3ff053c07d
@ -34,7 +34,7 @@ NOOP_ATTRS = [
|
||||
|
||||
# RFC 8011 (5.1.4) requires keywords to start with a letter. There's however at
|
||||
# least one keyword that starts with a digit.
|
||||
KEYWORD_PATTERN = re.compile('^[a-z1-9][a-z0-9\._-]*$')
|
||||
KEYWORD_PATTERN = re.compile(r'^[a-z1-9][a-z0-9\._-]*$')
|
||||
|
||||
HANDLER_HEADER = """// DO NOT MODIFY
|
||||
// Generated by printing/backend/tools/code_generator.py
|
||||
@ -121,7 +121,7 @@ def remove_annotation(keyword):
|
||||
return keyword if parenthesis == -1 else keyword[:parenthesis].strip()
|
||||
|
||||
|
||||
SPECIAL_CHARS = re.compile('[-/\.]')
|
||||
SPECIAL_CHARS = re.compile(r'[-/\.]')
|
||||
|
||||
|
||||
def add_l10n(l10n_file, ipp_id, grit_id=None):
|
||||
|
Reference in New Issue
Block a user