mirror of https://github.com/python/cpython
SF #515000, print result of f.tell() in test() instead of ignoring
This commit is contained in:
parent
a0af63b242
commit
9fb289d826
|
@ -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…
Reference in New Issue