Remove functions in string module that are also string methods. Also remove:
* all calls to functions in the string module (except maketrans)
* everything from stropmodule except for maketrans() which is still used
diff --git a/Lib/bsddb/dbrecio.py b/Lib/bsddb/dbrecio.py
index 975a2d9..cb2725c 100644
--- a/Lib/bsddb/dbrecio.py
+++ b/Lib/bsddb/dbrecio.py
@@ -29,7 +29,6 @@
"""
import errno
-import string
class DBRecIO:
def __init__(self, db, key, txn=None):
@@ -83,9 +82,9 @@
if self.closed:
raise ValueError, "I/O operation on closed file"
if self.buflist:
- self.buf = self.buf + string.joinfields(self.buflist, '')
+ self.buf = self.buf + ''.join(self.buflist)
self.buflist = []
- i = string.find(self.buf, '\n', self.pos)
+ i = self.buf.find('\n', self.pos)
if i < 0:
newpos = self.len
else:
@@ -134,7 +133,7 @@
self.pos = newpos
def writelines(self, list):
- self.write(string.joinfields(list, ''))
+ self.write(''.join(list))
def flush(self):
if self.closed: