aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/util/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/util/compat.py')
-rw-r--r--tensorflow/python/util/compat.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tensorflow/python/util/compat.py b/tensorflow/python/util/compat.py
index 3ab0bd16fa..270d96a3c7 100644
--- a/tensorflow/python/util/compat.py
+++ b/tensorflow/python/util/compat.py
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
-
"""Functions for Python 2 vs. 3 compatibility.
## Conversion routines
@@ -118,7 +117,7 @@ def path_to_str(path):
Returns:
A `str` object.
"""
- if hasattr(path, "__fspath__"):
+ if hasattr(path, '__fspath__'):
path = as_str_any(path.__fspath__())
return path
@@ -129,11 +128,9 @@ integral_types = (_numbers.Integral, _np.integer)
real_types = (_numbers.Real, _np.integer, _np.floating)
complex_types = (_numbers.Complex, _np.number)
-
# Either bytes or text.
bytes_or_text_types = (bytes, _six.text_type)
-
_allowed_symbols = [
'as_str',
'bytes_or_text_types',