Skip to content

Commit 46e9e36

Browse files
authored
Merge branch 'master' into cifar10_estimator-owners
2 parents 31006d2 + d2aa29f commit 46e9e36

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

research/cognitive_mapping_and_planning/scripts/script_plot_trajectory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def worker(j):
220220
t.set_bbox(dict(color='white', alpha=0.85, pad=-0.1))
221221

222222
# Action to take.
223-
action_latex = ['$\odot$ ', '$\curvearrowright$ ', '$\curvearrowleft$ ', '$\Uparrow$ ']
223+
action_latex = ['$\odot$ ', '$\curvearrowright$ ', '$\curvearrowleft$ ', r'$\Uparrow$ ']
224224
t = ax.text(0.99, 0.99, action_latex[actions[step_number]],
225225
horizontalalignment='right',
226226
verticalalignment='top',

research/syntaxnet/dragnn/python/dragnn_model_saver_lib_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def LoadSpec(self, spec_path):
4545
master_spec = spec_pb2.MasterSpec()
4646
root_dir = os.path.join(FLAGS.test_srcdir,
4747
'dragnn/python')
48-
with file(os.path.join(root_dir, 'testdata', spec_path), 'r') as fin:
48+
with open(os.path.join(root_dir, 'testdata', spec_path), 'r') as fin:
4949
text_format.Parse(fin.read().replace('TOPDIR', root_dir), master_spec)
5050
return master_spec
5151

research/syntaxnet/dragnn/python/graph_builder_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def LoadSpec(self, spec_path):
246246
master_spec = spec_pb2.MasterSpec()
247247
testdata = os.path.join(FLAGS.test_srcdir,
248248
'dragnn/core/testdata')
249-
with file(os.path.join(testdata, spec_path), 'r') as fin:
249+
with open(os.path.join(testdata, spec_path), 'r') as fin:
250250
text_format.Parse(fin.read().replace('TESTDATA', testdata), master_spec)
251251
return master_spec
252252

research/syntaxnet/syntaxnet/lexicon_builder_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ def ValidateDocuments(self):
140140
self.assertTrue(last)
141141

142142
def ValidateTagToCategoryMap(self):
143-
with file(os.path.join(FLAGS.test_tmpdir, 'tag-to-category'), 'r') as f:
143+
with open(os.path.join(FLAGS.test_tmpdir, 'tag-to-category'), 'r') as f:
144144
entries = [line.strip().split('\t') for line in f.readlines()]
145145
for tag, category in entries:
146146
self.assertIn(tag, TAGS)
147147
self.assertIn(category, CATEGORIES)
148148

149149
def LoadMap(self, map_name):
150150
loaded_map = {}
151-
with file(os.path.join(FLAGS.test_tmpdir, map_name), 'r') as f:
151+
with open(os.path.join(FLAGS.test_tmpdir, map_name), 'r') as f:
152152
for line in f:
153153
entries = line.strip().split(' ')
154154
if len(entries) >= 2:

0 commit comments

Comments
 (0)