Debian Codegraph @

debian/patches/SyntaxWarning.patch

raw
1 --- a/behave/formatter/ansi_escapes.py
2 +++ b/behave/formatter/ansi_escapes.py
3 @@ -54,7 +54,7 @@
4 return u"\x1b[%dA" % n
5
6
7 -_ANSI_ESCAPE_PATTERN = re.compile(u"\x1b\[\d+[mA]", re.UNICODE)
8 +_ANSI_ESCAPE_PATTERN = re.compile(r"\x1b\[\d+[mA]", re.UNICODE)
9 # pylint: enable=anomalous-backslash-in-string
10 def strip_escapes(text):
11 """
12 --- a/behave/matchers.py
13 +++ b/behave/matchers.py
14 @@ -264,7 +264,7 @@
15 def register_type(**kw):
16 # pylint: disable=anomalous-backslash-in-string
17 # REQUIRED-BY: code example
18 - """Registers a custom type that will be available to "parse"
19 + r"""Registers a custom type that will be available to "parse"
20 for type conversion during step matching.
21
22 Converters should be supplied as ``name=callable`` arguments (or as dict).