summaryrefslogtreecommitdiffstats
path: root/Tools/ccbench
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2019-11-19 19:45:20 (GMT)
committerBrett Cannon <54418+brettcannon@users.noreply.github.com>2019-11-19 19:45:20 (GMT)
commit892221bfa04a41cf581f988ba19dc263f557e157 (patch)
tree3961cf2084befe960fd1171381564886cb4a913c /Tools/ccbench
parent54b32c987146123f2237f0e21b1d02b1c1ebdf6f (diff)
downloadcpython-892221bfa04a41cf581f988ba19dc263f557e157.zip
cpython-892221bfa04a41cf581f988ba19dc263f557e157.tar.gz
cpython-892221bfa04a41cf581f988ba19dc263f557e157.tar.bz2
bpo-38839: Fix some unused functions in tests (GH-17189)
Diffstat (limited to 'Tools/ccbench')
-rw-r--r--Tools/ccbench/ccbench.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Tools/ccbench/ccbench.py b/Tools/ccbench/ccbench.py
index 4f77a65..ab1465a 100644
--- a/Tools/ccbench/ccbench.py
+++ b/Tools/ccbench/ccbench.py
@@ -84,13 +84,6 @@ def task_regex():
pat = re.compile(r'^(\s*def\s)|(.*(?<!\w)lambda(:|\s))|^(\s*@)', re.MULTILINE)
with open(__file__, "r") as f:
arg = f.read(2000)
-
- def findall(s):
- t = time.time()
- try:
- return pat.findall(s)
- finally:
- print(time.time() - t)
return pat.findall, (arg, )
def task_sort():