aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/autograph
diff options
context:
space:
mode:
authorGravatar 在原佐为 <ariwaranosai@users.noreply.github.com>2018-09-03 10:09:05 +0800
committerGravatar GitHub <noreply@github.com>2018-09-03 10:09:05 +0800
commit74af314e4573e168d38072f646495034412ff061 (patch)
tree9dcad542b7e7a3b95a53bafda71762a252abc9ee /tensorflow/contrib/autograph
parentf2134cbd2ec4dd98f9f20ac41e4f46cdd0246af2 (diff)
use single quotation marks for single-line strings
Diffstat (limited to 'tensorflow/contrib/autograph')
-rw-r--r--tensorflow/contrib/autograph/operators/slices_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/autograph/operators/slices_test.py b/tensorflow/contrib/autograph/operators/slices_test.py
index 5300428462..329d9f1f43 100644
--- a/tensorflow/contrib/autograph/operators/slices_test.py
+++ b/tensorflow/contrib/autograph/operators/slices_test.py
@@ -47,13 +47,13 @@ class SlicesTest(test.TestCase):
self.assertAllEqual(sess.run(t), [3, 4])
def test_get_item_tensor_string(self):
- initial_str = constant_op.constant("abcd")
+ initial_str = constant_op.constant('abcd')
t = slices.get_item(initial_str, 1, slices.GetItemOpts(element_dtype=initial_str.dtype))
with self.test_session() as sess:
- self.assertEqual(sess.run(t), b"b")
+ self.assertEqual(sess.run(t), b'b')
- initial_list_str = constant_op.constant(["abcd", "bcde"])
+ initial_list_str = constant_op.constant(['abcd', 'bcde'])
t = slices.get_item(initial_list_str, 1, slices.GetItemOpts(element_dtype=initial_str.dtype))
with self.test_session() as sess: