Merge "Fix python 3.6 escape char warnings in strings"

This commit is contained in:
Zuul 2018-02-13 14:49:39 +00:00 committed by Gerrit Code Review
commit 0d2fc02ec3

View File

@ -16,14 +16,14 @@ import tokenize
from hacking import core from hacking import core
FORMAT_RE = re.compile("%(?:" FORMAT_RE = re.compile(r"%(?:"
"%|" # Ignore plain percents r"%|" # Ignore plain percents
"(\(\w+\))?" # mapping key r"(\(\w+\))?" # mapping key
"([#0 +-]?" # flag r"([#0 +-]?" # flag
"(?:\d+|\*)?" # width r"(?:\d+|\*)?" # width
"(?:\.\d+)?" # precision r"(?:\.\d+)?" # precision
"[hlL]?" # length mod r"[hlL]?" # length mod
"\w))") # type r"\w))") # type
class LocalizationError(Exception): class LocalizationError(Exception):