summaryrefslogtreecommitdiffstats
path: root/Lib/sre.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:10:16 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:10:16 (GMT)
commitb08b2d316653bf22d39ad76814b5a0e7dad30c31 (patch)
tree004b23a8a68e8fa951c21aca3da4e71304fafb48 /Lib/sre.py
parentbe9b507bddf79fc98536dee2feaf05fcd4438196 (diff)
downloadcpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.zip
cpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.tar.gz
cpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/sre.py')
-rw-r--r--Lib/sre.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/sre.py b/Lib/sre.py
index 859ff9e..4533354 100644
--- a/Lib/sre.py
+++ b/Lib/sre.py
@@ -17,8 +17,6 @@
import sre_compile
import sre_parse
-import string
-
# flags
I = IGNORECASE = sre_compile.SRE_FLAG_IGNORECASE # ignore case
L = LOCALE = sre_compile.SRE_FLAG_LOCALE # assume current 8-bit locale
@@ -109,7 +107,7 @@ _MAXCACHE = 100
def _join(seq, sep):
# internal: join into string having the same type as sep
- return string.join(seq, sep[:0])
+ return sep[:0].join(seq)
def _compile(*key):
# internal: compile pattern