"""
import sys
-import string
__all__ = ["MultiFile","Error"]
return line
else:
# Ignore trailing whitespace on marker lines
- k = len(line) - 1
- while line[k] in string.whitespace:
- k = k - 1
- marker = line[:k+1]
+ marker = line.rstrip()
# No? OK, try to match a boundary.
# Return the line (unstripped) if we don't.
for i in range(len(self.stack)):
return list
def read(self): # Note: no size argument -- read until EOF only!
- return string.joinfields(self.readlines(), '')
+ return self.readlines().join('')
def next(self):
while self.readline(): pass
fromstr = map(ord, fromstr)
for i in range(len(fromstr)):
L[fromstr[i]] = tostr[i]
- return joinfields(L, "")
+ return join(L, "")
# Substring replacement (global)
def replace(s, old, new, maxsplit=-1):
fromstr = map(ord, fromstr)
for i in range(len(fromstr)):
L[fromstr[i]] = tostr[i]
- return joinfields(L, "")
+ return join(L, "")
# Substring replacement (global)
def replace(s, old, new, maxsplit=0):