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 20b4b1c · 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
9 unmodified lines
10WIN = sys.platform.startswith('win')11DEFAULT_COLUMNS = 80121314_ansi_re = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')14_ansi_re = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])')151617def get_filesystem_encoding():18 return sys.getfilesystemencoding() or sys.getdefaultencoding()
630 unmodified lines
modified:click/core.py+1 added-1 removed
1214 unmodified lines
1215 return sorted(rv)121612171218class Parameter(object):1219 """A parameter to a command comes in two versions: they are either1219 r"""A parameter to a command comes in two versions: they are either1220 :class:`Option`\s or :class:`Argument`\s. Other subclasses are currently1221 not supported by design as some of the internals for parsing are1222 intentionally not finalized.1223
521 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