summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbrecio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bsddb/dbrecio.py')
-rw-r--r--Lib/bsddb/dbrecio.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/bsddb/dbrecio.py b/Lib/bsddb/dbrecio.py
index cb2725c..949a3a2 100644
--- a/Lib/bsddb/dbrecio.py
+++ b/Lib/bsddb/dbrecio.py
@@ -46,12 +46,12 @@ class DBRecIO:
def isatty(self):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
return 0
def seek(self, pos, mode = 0):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
if mode == 1:
pos = pos + self.pos
elif mode == 2:
@@ -60,12 +60,12 @@ class DBRecIO:
def tell(self):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
return self.pos
def read(self, n = -1):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
if n < 0:
newpos = self.len
else:
@@ -111,7 +111,7 @@ class DBRecIO:
def truncate(self, size=None):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
if size is None:
size = self.pos
elif size < 0:
@@ -123,7 +123,7 @@ class DBRecIO:
def write(self, s):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
if not s: return
if self.pos > self.len:
self.buflist.append('\0'*(self.pos - self.len))
@@ -137,7 +137,7 @@ class DBRecIO:
def flush(self):
if self.closed:
- raise ValueError, "I/O operation on closed file"
+ raise ValueError("I/O operation on closed file")
"""