summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbrecio.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-05-13 04:55:24 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-05-13 04:55:24 (GMT)
commit752abd0d3cc66f84f551650b8424248b202a16a4 (patch)
treef5302f8a246115f3f61a1414a94c8d2ce12a3a01 /Lib/bsddb/dbrecio.py
parent8321f978918e3ae4de18672770c6504dcae82343 (diff)
downloadcpython-752abd0d3cc66f84f551650b8424248b202a16a4.zip
cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.gz
cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.bz2
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
Diffstat (limited to 'Lib/bsddb/dbrecio.py')
-rw-r--r--Lib/bsddb/dbrecio.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/bsddb/dbrecio.py b/Lib/bsddb/dbrecio.py
index 949a3a2..6036b3a 100644
--- a/Lib/bsddb/dbrecio.py
+++ b/Lib/bsddb/dbrecio.py
@@ -158,14 +158,14 @@ def _test():
if f.getvalue() != text:
raise RuntimeError, 'write failed'
length = f.tell()
- print 'File length =', length
+ print('File length =', length)
f.seek(len(lines[0]))
f.write(lines[1])
f.seek(0)
- print 'First line =', repr(f.readline())
+ print('First line =', repr(f.readline()))
here = f.tell()
line = f.readline()
- print 'Second line =', repr(line)
+ print('Second line =', repr(line))
f.seek(-len(line), 1)
line2 = f.read(len(line))
if line != line2:
@@ -177,8 +177,8 @@ def _test():
line2 = f.read()
if line != line2:
raise RuntimeError, 'bad result after seek back from EOF'
- print 'Read', len(list), 'more lines'
- print 'File length =', f.tell()
+ print('Read', len(list), 'more lines')
+ print('File length =', f.tell())
if f.tell() != length:
raise RuntimeError, 'bad length'
f.close()