summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:30:02 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:30:02 (GMT)
commit94a9c09e109706af64ae8796882baab2af25be2f (patch)
treeba1884845b6de1e3b6e930c735ea58df1e658ad5 /Lib
parent559e88be2816d6ce382ef8c079ef68ca9dcbbbee (diff)
downloadcpython-94a9c09e109706af64ae8796882baab2af25be2f.zip
cpython-94a9c09e109706af64ae8796882baab2af25be2f.tar.gz
cpython-94a9c09e109706af64ae8796882baab2af25be2f.tar.bz2
Rename sre.py -> re.py
Diffstat (limited to 'Lib')
-rw-r--r--Lib/re.py (renamed from Lib/sre.py)0
-rwxr-xr-xLib/test/regrtest.py4
-rw-r--r--Lib/test/test___all__.py1
-rw-r--r--Lib/test/test_re.py2
4 files changed, 3 insertions, 4 deletions
diff --git a/Lib/sre.py b/Lib/re.py
index a33e34e..a33e34e 100644
--- a/Lib/sre.py
+++ b/Lib/re.py
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index b850912..85f57a6 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -110,7 +110,7 @@ import sys
import getopt
import random
import warnings
-import sre
+import re
import cStringIO
import traceback
@@ -525,7 +525,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
_path_created.clear()
warnings.filters[:] = fs
gc.collect()
- sre.purge()
+ re.purge()
_strptime._regex_cache.clear()
urlparse.clear_cache()
urllib.urlcleanup()
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 74a9cdf..0b2e7da 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -145,7 +145,6 @@ class AllTest(unittest.TestCase):
self.check_all("smtplib")
self.check_all("sndhdr")
self.check_all("socket")
- self.check_all("sre")
self.check_all("_strptime")
self.check_all("symtable")
self.check_all("tabnanny")
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 9755005..14a0acf 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -3,7 +3,7 @@ sys.path = ['.'] + sys.path
from test.test_support import verbose, run_unittest
import re
-from sre import Scanner
+from re import Scanner
import sys, os, traceback
from weakref import proxy