--- a/behave/formatter/ansi_escapes.py +++ b/behave/formatter/ansi_escapes.py @@ -54,7 +54,7 @@ return u"\x1b[%dA" % n -_ANSI_ESCAPE_PATTERN = re.compile(u"\x1b\[\d+[mA]", re.UNICODE) +_ANSI_ESCAPE_PATTERN = re.compile(r"\x1b\[\d+[mA]", re.UNICODE) # pylint: enable=anomalous-backslash-in-string def strip_escapes(text): """ --- a/behave/matchers.py +++ b/behave/matchers.py @@ -264,7 +264,7 @@ def register_type(**kw): # pylint: disable=anomalous-backslash-in-string # REQUIRED-BY: code example - """Registers a custom type that will be available to "parse" + r"""Registers a custom type that will be available to "parse" for type conversion during step matching. Converters should be supplied as ``name=callable`` arguments (or as dict).