Skip to content

Commit 11f9d85

Browse files
committed
Fix some more invalid string escapes.
1 parent 380a603 commit 11f9d85

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/shapes_and_collections/path_patch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
================
33
PathPatch object
44
================

lib/matplotlib/axes/_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5595,7 +5595,7 @@ def _pcolorargs(funcname, *args, **kw):
55955595
@_preprocess_data(label_namer=None)
55965596
@docstring.dedent_interpd
55975597
def pcolor(self, *args, **kwargs):
5598-
"""
5598+
r"""
55995599
Create a pseudocolor plot with a non-regular rectangular grid.
56005600
56015601
Call signature::

setupext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ def check(self):
20512051
output = check_output('latex -version', shell=True,
20522052
stderr=subprocess.STDOUT)
20532053
line = output.splitlines()[0].decode()
2054-
pattern = '(3\.1\d+)|(MiKTeX \d+.\d+)'
2054+
pattern = r'(3\.1\d+)|(MiKTeX \d+.\d+)'
20552055
match = re.search(pattern, line)
20562056
return "version %s" % match.group(0)
20572057
except (IndexError, ValueError, AttributeError, subprocess.CalledProcessError):

versioneer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
469469
print("unable to run %s (error)" % dispcmd)
470470
return None
471471
return stdout
472-
LONG_VERSION_PY['git'] = '''
472+
LONG_VERSION_PY['git'] = r'''
473473
# This file helps to compute a version number in source trees obtained from
474474
# git-archive tarball (such as those provided by githubs download-from-tag
475475
# feature). Distribution tarballs (built by setup.py sdist) and build

0 commit comments

Comments
 (0)