提交 96f260ba 编写于 作者: Y yinhaofeng

change

上级 6eb1b2cc
......@@ -40,7 +40,7 @@ class Reader(ReaderBase):
output = [(slot, []) for slot in self.all_slots]
for elem in elements:
slot, feasign = elem.split(':')
if not self._all_slots_dict.has_key(slot):
if slot not in self._all_slots_dict:
continue
self._all_slots_dict[slot][0] = True
index = self._all_slots_dict[slot][1]
......
......@@ -44,7 +44,7 @@ class Reader(ReaderBase):
output = [(slot, []) for slot in self.all_slots]
for elem in elements:
slot, feasign = elem.split(':')
if not self._all_slots_dict.has_key(slot):
if slot not in self._all_slots_dict:
continue
self._all_slots_dict[slot][0] = True
index = self._all_slots_dict[slot][1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册