From: Michael Case Date: Fri, 1 Jun 2018 05:55:46 +0000 (-0700) Subject: Fix import depth issue. X-Git-Tag: upstream/v1.9.0_rc1~26^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f79ab773fe44e4779138a77a3bda4b18245d658;p=platform%2Fupstream%2Ftensorflow.git Fix import depth issue. --- diff --git a/tensorflow/contrib/lite/python/lite.py b/tensorflow/contrib/lite/python/lite.py index 0fc7958..d595415 100644 --- a/tensorflow/contrib/lite/python/lite.py +++ b/tensorflow/contrib/lite/python/lite.py @@ -33,7 +33,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import six +from six import PY3 from google.protobuf import text_format as _text_format from google.protobuf.message import DecodeError @@ -192,7 +192,7 @@ class TocoConverter(object): print("Ignore 'tcmalloc: large alloc' warnings.") if not isinstance(file_content, str): - if six.PY3: + if PY3: file_content = file_content.decode('utf-8') else: file_content = file_content.encode('utf-8')