summaryrefslogtreecommitdiff
path: root/tools/refguide_check.py
diff options
context:
space:
mode:
authorSeth Troisi <sethtroisi@google.com>2020-01-23 17:25:52 -0800
committerSeth Troisi <sethtroisi@google.com>2020-01-28 23:40:03 -0800
commit9ef5f37397051104835b2de4ae9c5de2b824be26 (patch)
tree8b51c915b1074b3a41decadf342969b5a40d849f /tools/refguide_check.py
parent7b7197517f31bdfdf6fb1d99944002c90568d705 (diff)
downloadnumpy-9ef5f37397051104835b2de4ae9c5de2b824be26.tar.gz
MAINT: Python2 Cleanups
Diffstat (limited to 'tools/refguide_check.py')
-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 ad3f93c42..db02f2e3a 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):