summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-01-29 10:44:27 +0200
committerGitHub <noreply@github.com>2020-01-29 10:44:27 +0200
commit05cb43b1c6b5ad6485747f8a3b7071ea0a263706 (patch)
tree589a65cff68fc3a6a5858e3f8fbf7d6d5b41b7f9 /tools
parent29873a0e03bf931b6216cf07be37f900413cf763 (diff)
parent9ef5f37397051104835b2de4ae9c5de2b824be26 (diff)
downloadnumpy-05cb43b1c6b5ad6485747f8a3b7071ea0a263706.tar.gz
Merge pull request #15417 from sethtroisi/python2_easy
MAINT: Cleanup references to python2
Diffstat (limited to 'tools')
-rw-r--r--tools/refguide_check.py6
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):