aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar rasmi <rrelasmar@gmail.com>2018-08-09 10:27:37 -0700
committerGravatar GitHub <noreply@github.com>2018-08-09 10:27:37 -0700
commitc3c6c45987692e8bc73eff2f10f9ec1a82f55287 (patch)
tree6b477df0da36dd213501cac08bfe2c7da3e3991e
parent6c14d85b41c565ed9dabc3677aedf76757097242 (diff)
Moved @deprecated decorator to __init__
-rw-r--r--tensorflow/python/platform/gfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/platform/gfile.py b/tensorflow/python/platform/gfile.py
index ac53609434..5927bc2409 100644
--- a/tensorflow/python/platform/gfile.py
+++ b/tensorflow/python/platform/gfile.py
@@ -52,7 +52,6 @@ class GFile(_FileIO):
super(GFile, self).__init__(name=name, mode=mode)
-@deprecated(None, 'Use tf.gfile.GFile.')
@tf_export('gfile.FastGFile')
class FastGFile(_FileIO):
"""File I/O wrappers without thread locking.
@@ -64,6 +63,7 @@ class FastGFile(_FileIO):
invocations in network filesystems).
"""
+ @deprecated(None, 'Use tf.gfile.GFile.')
def __init__(self, name, mode='r'):
super(FastGFile, self).__init__(name=name, mode=mode)