diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-01-29 10:44:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 10:44:27 +0200 |
commit | 05cb43b1c6b5ad6485747f8a3b7071ea0a263706 (patch) | |
tree | 589a65cff68fc3a6a5858e3f8fbf7d6d5b41b7f9 /tools/refguide_check.py | |
parent | 29873a0e03bf931b6216cf07be37f900413cf763 (diff) | |
parent | 9ef5f37397051104835b2de4ae9c5de2b824be26 (diff) | |
download | numpy-05cb43b1c6b5ad6485747f8a3b7071ea0a263706.tar.gz |
Merge pull request #15417 from sethtroisi/python2_easy
MAINT: Cleanup references to python2
Diffstat (limited to 'tools/refguide_check.py')
-rw-r--r-- | tools/refguide_check.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/refguide_check.py b/tools/refguide_check.py index 33c50818b..83f0a7c55 100644 --- a/tools/refguide_check.py +++ b/tools/refguide_check.py @@ -656,7 +656,6 @@ class Checker(doctest.OutputChecker): Check the docstrings """ obj_pattern = re.compile('at 0x[0-9a-fA-F]+>') - int_pattern = re.compile('^[0-9]+L?$') vanilla = doctest.OutputChecker() rndm_markers = {'# random', '# Random', '#random', '#Random', "# may vary", "# uninitialized", "#uninitialized"} @@ -695,11 +694,6 @@ class Checker(doctest.OutputChecker): if want.lstrip().startswith("#"): return True - # python 2 long integers are equal to python 3 integers - if self.int_pattern.match(want) and self.int_pattern.match(got): - if want.rstrip("L\r\n") == got.rstrip("L\r\n"): - return True - # try the standard doctest try: if self.vanilla.check_output(want, got, optionflags): |