diff options
author | 2018-08-09 10:27:37 -0700 | |
---|---|---|
committer | 2018-08-09 10:27:37 -0700 | |
commit | c3c6c45987692e8bc73eff2f10f9ec1a82f55287 (patch) | |
tree | 6b477df0da36dd213501cac08bfe2c7da3e3991e /tensorflow/python/platform | |
parent | 6c14d85b41c565ed9dabc3677aedf76757097242 (diff) |
Moved @deprecated decorator to __init__
Diffstat (limited to 'tensorflow/python/platform')
-rw-r--r-- | tensorflow/python/platform/gfile.py | 2 |
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) |