Fix SF #1373161, r41552 broke test_file on OS X
You apparently can seek(0) on sys.stdin on OS X. But you can't go backwards, so seek(-1).
This commit is contained in:
parent
b78a5fc004
commit
a6fc397a80
|
@ -101,7 +101,7 @@ else:
|
|||
f.close()
|
||||
|
||||
try:
|
||||
sys.stdin.seek(0)
|
||||
sys.stdin.seek(-1)
|
||||
except IOError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue