提交 1b9c323e 编写于 作者: X Xiangquan Xiao

Python: Migrate iteritems to items.

上级 3a6c2e4a
......@@ -191,7 +191,7 @@ def main():
# TODO(xiaoxq): We always try to make data structurized, such as putting
# them into rosbag, instead of copying raw files around.
other_data_dirs = {'/apollo/data/gpsbin': 'data/gpsbin'}
for src, dst in other_data_dirs.iteritems():
for src, dst in other_data_dirs.items():
if os.path.exists(src):
print('Copying ', src)
shutil.copytree(src, os.path.join(copy_to, dst))
......
......@@ -76,7 +76,7 @@ def dump_bag(in_bag, out_dir):
seq += 1
topic_name_map[channel][1] = msg
print('Generating seq: %d' % seq)
for t, name_pb in topic_name_map.iteritems():
for t, name_pb in topic_name_map.items():
if name_pb[1] is None:
continue
file_path = os.path.join(out_dir,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册