diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 09:39:08 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 09:39:08 (GMT) |
commit | ec3bbdef94703b7a69dcc758a4059046bc4d79f0 (patch) | |
tree | aa8a7040f69dc49f113b704c520bedfbb9ed7a8a /Lib/pre.py | |
parent | 92852ad9a44183599a98c135e016e66660a91f13 (diff) | |
download | cpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.zip cpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.tar.gz cpython-ec3bbdef94703b7a69dcc758a4059046bc4d79f0.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/pre.py')
-rw-r--r-- | Lib/pre.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |