summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-02-11 17:52:18 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-02-11 17:52:18 (GMT)
commit9fb289d826a6defdc53afa7074e6a3e0785153e0 (patch)
treeeb53993ccf8548bf8e378b1a32a4cbc638dd262c
parenta0af63b2421916e748700c746e03f1bd1656b074 (diff)
downloadcpython-9fb289d826a6defdc53afa7074e6a3e0785153e0.zip
cpython-9fb289d826a6defdc53afa7074e6a3e0785153e0.tar.gz
cpython-9fb289d826a6defdc53afa7074e6a3e0785153e0.tar.bz2
SF #515000, print result of f.tell() in test() instead of ignoring
-rw-r--r--Lib/StringIO.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/StringIO.py b/Lib/StringIO.py
index 1840bad..087092e 100644
--- a/Lib/StringIO.py
+++ b/Lib/StringIO.py
@@ -193,7 +193,7 @@ def test():
f.write(lines[1])
f.seek(0)
print 'First line =', `f.readline()`
- here = f.tell()
+ print 'Position =', f.tell()
line = f.readline()
print 'Second line =', `line`
f.seek(-len(line), 1)