Skip to content

Commit 415055e

Browse files
committed
* move symbol to top level
1 parent 88ec4bc commit 415055e

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

tensorflow_io/oss/__init__.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
"""Alibaba OSS File System.
16+
17+
@@ossfs_ops
18+
"""
19+
20+
from __future__ import absolute_import
21+
from __future__ import division
22+
from __future__ import print_function
23+
24+
from tensorflow_io.oss.python.ops import ossfs_ops # pylint: disable=unused-import
25+
26+
from tensorflow.python.util.all_util import remove_undocumented
27+
28+
_allowed_symbols = [
29+
"ossfs_ops",
30+
]
31+
32+
remove_undocumented(__name__, allowed_exception_list=_allowed_symbols)

tests/test_ossfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from tensorflow.python.platform import test
2424
from tensorflow.python.platform import gfile
25-
import tensorflow_io.oss.python.ops.ossfs_ops # pylint: disable=unused-import
25+
from tensorflow_io.oss import ossfs_ops # pylint: disable=unused-import
2626

2727
bucket = None
2828
get_oss_path = None

0 commit comments

Comments
 (0)