diff options
author | Yong Tang <yong.tang.github@outlook.com> | 2018-05-24 16:42:48 +0000 |
---|---|---|
committer | Yong Tang <yong.tang.github@outlook.com> | 2018-06-29 21:53:55 +0000 |
commit | 21bf4812c5079764c817cb2e193f136d4e590d17 (patch) | |
tree | 35788fe17469c244f2af81caa0d3ac94d662e48e /tensorflow/contrib/hadoop | |
parent | a10f5141868b98d41137572a80594adc158a3227 (diff) |
Fix python 3 issue with `b` prefix strings
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/contrib/hadoop')
-rw-r--r-- | tensorflow/contrib/hadoop/python/kernel_tests/hadoop_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/hadoop/python/kernel_tests/hadoop_test.py b/tensorflow/contrib/hadoop/python/kernel_tests/hadoop_test.py index 8bbb1da85d..108aaecdb7 100644 --- a/tensorflow/contrib/hadoop/python/kernel_tests/hadoop_test.py +++ b/tensorflow/contrib/hadoop/python/kernel_tests/hadoop_test.py @@ -56,8 +56,8 @@ class SequenceFileDatasetTest(test.TestCase): sess.run(init_op) for _ in range(num_repeats): # Dataset is repeated. for i in range(25): # 25 records. - v0 = "{0:03d}".format(i + 1) - v1 = "VALUE{0:03d}".format(i + 1) + v0 = b"%03d" % (i + 1) + v1 = b"VALUE%03d" % (i + 1) self.assertEqual((v0, v1), sess.run(get_next)) with self.assertRaises(errors.OutOfRangeError): sess.run(get_next) |