Skip to content

Commit

Permalink
Escape Sequences with r'' (#807)
Browse files Browse the repository at this point in the history
Add raw strings to files that have the need so correct escaping occurs
  • Loading branch information
cooperlees authored and mitsuhiko committed Jan 4, 2018
1 parent 20b4b1c commit 2cd71bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion click/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DEFAULT_COLUMNS = 80


_ansi_re = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')
_ansi_re = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])')


def get_filesystem_encoding():
Expand Down
2 changes: 1 addition & 1 deletion click/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ def list_commands(self, ctx):


class Parameter(object):
"""A parameter to a command comes in two versions: they are either
r"""A parameter to a command comes in two versions: they are either
:class:`Option`\s or :class:`Argument`\s. Other subclasses are currently
not supported by design as some of the internals for parsing are
intentionally not finalized.
Expand Down
2 changes: 1 addition & 1 deletion click/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _make_command(f, name, attrs, cls):


def command(name=None, cls=None, **attrs):
"""Creates a new :class:`Command` and uses the decorated function as
r"""Creates a new :class:`Command` and uses the decorated function as
callback. This will also automatically attach all decorated
:func:`option`\s and :func:`argument`\s as parameters to the command.
Expand Down

0 comments on commit 2cd71bf

Please sign in to comment.