Skip to content
Myr

Escape Sequences with r'' (#807)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add raw strings to files that have the need so correct escaping occurs

authored by Cooper Lees · committed by Armin Ronacher · parent 9d08748 · Browse files · 3 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+3 added−3 removed

  • other:+3 added−3 removed

3 files+3 added−3 removed

modified:click/_compat.py+1 added-1 removed
10 unmodified lines
11CYGWIN = sys.platform.startswith('cygwin')12DEFAULT_COLUMNS = 80131415_ansi_re = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')15_ansi_re = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])')161718def get_filesystem_encoding():19 return sys.getfilesystemencoding() or sys.getdefaultencoding()
632 unmodified lines
modified:click/core.py+1 added-1 removed
1228 unmodified lines
1229 return sorted(rv)123012311232class Parameter(object):1233 """A parameter to a command comes in two versions: they are either1233 r"""A parameter to a command comes in two versions: they are either1234 :class:`Option`\s or :class:`Argument`\s. Other subclasses are currently1235 not supported by design as some of the internals for parsing are1236 intentionally not finalized.1237
528 unmodified lines
modified:click/decorators.py+1 added-1 removed
88 unmodified lines
89 callback=f, params=params, **attrs)909192def command(name=None, cls=None, **attrs):93 """Creates a new :class:`Command` and uses the decorated function as93 r"""Creates a new :class:`Command` and uses the decorated function as94 callback. This will also automatically attach all decorated95 :func:`option`\s and :func:`argument`\s as parameters to the command.9697 The name of the command defaults to the name of the function. If you
211 unmodified lines