diff options
author | 1997-10-22 21:00:49 +0000 | |
---|---|---|
committer | 1997-10-22 21:00:49 +0000 | |
commit | 9694fcab5332f27dc28b195ba1391e5491d2eaef (patch) | |
tree | 23dc3d9a7d1cc4b138ac2bffd028a519cba93b30 /Lib/pstats.py | |
parent | Add pcre to the list of safe modules. (diff) | |
download | cpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.tar.gz cpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.tar.bz2 cpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.zip |
Convert all remaining *simple* cases of regex usage to re usage.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r-- | Lib/pstats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 7e4a3851e75..5bc70b367cf 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) |