Merge "Fix python 3.6 escape char warnings in strings"
This commit is contained in:
commit
0d2fc02ec3
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user