aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/lib/io/file_io.py
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2017-02-17 17:05:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-17 17:23:48 -0800
commit93a975e114ee1c35f01ed3bdd47170e6f7129014 (patch)
treee34255aff698fe6a4a586e7940337fd278947f58 /tensorflow/python/lib/io/file_io.py
parenteb9624017a0040e805fda622a5f9ec6681e24246 (diff)
Merge changes from github.
Change: 147897309
Diffstat (limited to 'tensorflow/python/lib/io/file_io.py')
-rw-r--r--tensorflow/python/lib/io/file_io.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/python/lib/io/file_io.py b/tensorflow/python/lib/io/file_io.py
index ddd117e443..ace03e3d1b 100644
--- a/tensorflow/python/lib/io/file_io.py
+++ b/tensorflow/python/lib/io/file_io.py
@@ -146,9 +146,7 @@ class FileIO(object):
def tell(self):
"""Returns the current position in the file."""
- if not self._read_check_passed:
- raise errors.PermissionDeniedError(None, None,
- "File isn't open for reading")
+ self._preread_check()
return self._read_buf.Tell()
def __enter__(self):