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:
Neal Norwitz 2005-12-05 01:17:03 +00:00
parent b78a5fc004
commit a6fc397a80
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ else:
f.close()
try:
sys.stdin.seek(0)
sys.stdin.seek(-1)
except IOError:
pass
else: