diff options
Diffstat (limited to 'tensorflow/tools/ci_build/update_version.py')
-rwxr-xr-x | tensorflow/tools/ci_build/update_version.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/tools/ci_build/update_version.py b/tensorflow/tools/ci_build/update_version.py index e525e11397..4405678a6b 100755 --- a/tensorflow/tools/ci_build/update_version.py +++ b/tensorflow/tools/ci_build/update_version.py @@ -276,8 +276,9 @@ def check_for_lingering_string(lingering_string): """Check for given lingering strings.""" formatted_string = lingering_string.replace(".", r"\.") try: - linger_strs = subprocess.check_output( - ['grep', '-rnoH', formatted_string, TF_SRC_DIR]).split("\n") + linger_str_output = subprocess.check_output( + ["grep", "-rnoH", formatted_string, TF_SRC_DIR]) + linger_strs = linger_str_output.decode("utf8").split("\n") except subprocess.CalledProcessError: linger_strs = [] |