summaryrefslogtreecommitdiff
path: root/Lib/pstats.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-22 21:00:49 +0000
committerGuido van Rossum <guido@python.org>1997-10-22 21:00:49 +0000
commit3ccd1e6e796323cb4f464f847130a5b67fc3db1b (patch)
tree2c489bf2d32bc6b954605d98cc22618a1aad9616 /Lib/pstats.py
parent9006d299bd48d1ab1c30edfc747c88a21a9bc913 (diff)
downloadcpython-3ccd1e6e796323cb4f464f847130a5b67fc3db1b.tar.gz
Convert all remaining *simple* cases of regex usage to re usage.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r--Lib/pstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 7e4a3851e7..5bc70b367c 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -35,7 +35,7 @@ import os
import time
import string
import marshal
-import regex
+import re
#**************************************************************************
# Class Stats documentation
@@ -300,7 +300,7 @@ class Stats:
if type(sel) == type(""):
new_list = []
for func in list:
- if 0<=regex.search(sel, func_std_string(func)):
+ if re.search(sel, func_std_string(func)):
new_list.append(func)
else:
count = len(list)