summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-04 22:46:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-04 22:46:06 (GMT)
commit02566ec89f90e5696eef062414c69a7c7ee991df (patch)
treedc8ca5b5c0ca581ebdfaafd073d901c57e9137bd /Lib/re.py
parente9a4de51ab5ba19d4b1295aadad0533eea394b0a (diff)
downloadcpython-02566ec89f90e5696eef062414c69a7c7ee991df.zip
cpython-02566ec89f90e5696eef062414c69a7c7ee991df.tar.gz
cpython-02566ec89f90e5696eef062414c69a7c7ee991df.tar.bz2
Adopt more descriptive attribute names as suggested on python-dev.
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 1dcf4a7..92e4e4c 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -207,8 +207,8 @@ def compile(pattern, flags=0):
def purge():
"Clear the regular expression caches"
- _compile_typed.clear()
- _compile_repl.clear()
+ _compile_typed.cache_clear()
+ _compile_repl.cache_clear()
def template(pattern, flags=0):
"Compile a template pattern, returning a pattern object"