mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
SF #515000, print result of f.tell() in test() instead of ignoring
This commit is contained in:
parent
a0af63b242
commit
9fb289d826
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue