diff options
author | Gunhan Gulsoy <gunan@google.com> | 2016-09-27 09:50:06 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-09-27 11:02:50 -0700 |
commit | 6da5d2140ef41cde0ca67275e5db08af416e1df9 (patch) | |
tree | 3604977fa3a2563a165c193fb1a7e3dcc2a9f1d8 /tensorflow/tools/git/gen_git_source.py | |
parent | 1a295f88ecc387c03b9de28b4c948c1d2a2c331e (diff) |
Fix nightly test failures by making gen_git_source py3 compliant.
Change: 134426091
Diffstat (limited to 'tensorflow/tools/git/gen_git_source.py')
-rwxr-xr-x | tensorflow/tools/git/gen_git_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py index 94cba7184c..3d2464a744 100755 --- a/tensorflow/tools/git/gen_git_source.py +++ b/tensorflow/tools/git/gen_git_source.py @@ -157,7 +157,7 @@ def write_version_info(filename, git_version): filename: filename to write to. git_version: the result of a git describe. """ - if "\"" in git_version or "\\" in git_version: + if b"\"" in git_version or b"\\" in git_version: git_version = "git_version_is_invalid" # do not cause build to fail! contents = """/* Generated by gen_git_source.py */ const char* tf_git_version() {return "%s";} |