summaryrefslogtreecommitdiffstats
path: root/Lib/pre.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 09:39:08 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 09:39:08 (GMT)
commitec3bbdef94703b7a69dcc758a4059046bc4d79f0 (patch)
treeaa8a7040f69dc49f113b704c520bedfbb9ed7a8a /Lib/pre.py
parent92852ad9a44183599a98c135e016e66660a91f13 (diff)
downloadcpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.zip
cpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.tar.gz
cpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/pre.py')
-rw-r--r--Lib/pre.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pre.py b/Lib/pre.py
index adc1ddf..c385824 100644
--- a/Lib/pre.py
+++ b/Lib/pre.py
@@ -229,7 +229,7 @@ def escape(pattern):
if char not in alphanum:
if char=='\000': result[i] = '\\000'
else: result[i] = '\\'+char
- return string.join(result, '')
+ return ''.join(result)
def compile(pattern, flags=0):
"""compile(pattern[, flags]) -> RegexObject
@@ -398,7 +398,7 @@ class RegexObject:
append(source[lastmatch:pos])
n = n + 1
append(source[pos:])
- return (string.join(results, ''), n)
+ return (''.join(results), n)
def split(self, source, maxsplit=0):
"""split(source[, maxsplit=0]) -> list of strings