diff options
author | mattip <matti.picus@gmail.com> | 2019-11-22 08:01:59 -0800 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-11-22 08:01:59 -0800 |
commit | dff3c1f90af9053128e6e241e1b5f19d858670f4 (patch) | |
tree | 739e75d0e9ea596fdfd522ad9e02457975ecee54 /tools | |
parent | e05782302cd9b107e4977271dc43ca42fe5a1e5a (diff) | |
download | numpy-dff3c1f90af9053128e6e241e1b5f19d858670f4.tar.gz |
MAINT: remove deprecation warnings
Diffstat (limited to 'tools')
-rw-r--r-- | tools/refguide_check.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/refguide_check.py b/tools/refguide_check.py index 1428e622e..a71279173 100644 --- a/tools/refguide_check.py +++ b/tools/refguide_check.py @@ -54,7 +54,7 @@ SKIPBLOCK = doctest.register_optionflag('SKIPBLOCK') if parse_version(sphinx.__version__) >= parse_version('1.5'): # Enable specific Sphinx directives - from sphinx.directives import SeeAlso, Only + from sphinx.directives.other import SeeAlso, Only directives.register_directive('seealso', SeeAlso) directives.register_directive('only', Only) else: @@ -610,9 +610,9 @@ class Checker(doctest.OutputChecker): # and then compare the tuples. try: num = len(a_want) - regex = ('[\w\d_]+\(' + - ', '.join(['[\w\d_]+=(.+)']*num) + - '\)') + regex = (r'[\w\d_]+\(' + + ', '.join([r'[\w\d_]+=(.+)']*num) + + r'\)') grp = re.findall(regex, got.replace('\n', ' ')) if len(grp) > 1: # no more than one for now return False |