summaryrefslogtreecommitdiffstats
path: root/Lib/sre.py
diff options
context:
space:
mode:
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