summaryrefslogtreecommitdiff
path: root/tools/find_deprecated_escaped_characters.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-02-25 07:29:45 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-02-25 07:50:15 -0700
commite5110fa81540103800da34c2199a0e2823031f98 (patch)
tree4a2f6a7e44067148251d3348099dd76c3d4664ae /tools/find_deprecated_escaped_characters.py
parente9246860480b6c909e6e00c1cd4371b0e5fee1ce (diff)
downloadnumpy-e5110fa81540103800da34c2199a0e2823031f98.tar.gz
MAINT: Fix deprecated escape sequences in tools/
Fix the escape sequences deprecated in Python 3.6 found in the tools directory. Note that this does not include the files in tools/swig/tests which are not even Python 3 compatible at this point.
Diffstat (limited to 'tools/find_deprecated_escaped_characters.py')
-rw-r--r--tools/find_deprecated_escaped_characters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/find_deprecated_escaped_characters.py b/tools/find_deprecated_escaped_characters.py
index 8015d3a42..1c3cc0d38 100644
--- a/tools/find_deprecated_escaped_characters.py
+++ b/tools/find_deprecated_escaped_characters.py
@@ -1,8 +1,8 @@
#! /usr/bin/env python
-"""
+r"""
Look for escape sequences deprecated in Python 3.6.
-Python 3.6 deprecates a number of non-escape sequences starting with `\` that
+Python 3.6 deprecates a number of non-escape sequences starting with '\' that
were accepted before. For instance, '\(' was previously accepted but must now
be written as '\\(' or r'\('.