Ordering fixes for Python3.3
This commit is contained in:
@@ -110,14 +110,14 @@ class Command(ElementBase):
|
||||
"""
|
||||
Return the set of allowable next actions.
|
||||
"""
|
||||
actions = []
|
||||
actions = set()
|
||||
actions_xml = self.find('{%s}actions' % self.namespace)
|
||||
if actions_xml is not None:
|
||||
for action in self.next_actions:
|
||||
action_xml = actions_xml.find('{%s}%s' % (self.namespace,
|
||||
action))
|
||||
if action_xml is not None:
|
||||
actions.append(action)
|
||||
actions.add(action)
|
||||
return actions
|
||||
|
||||
def del_actions(self):
|
||||
|
||||
@@ -74,7 +74,7 @@ class Set(ElementBase):
|
||||
if fi is not None:
|
||||
if val:
|
||||
fi.attrib['index'] = val
|
||||
else:
|
||||
elif 'index' in fi.attrib:
|
||||
del fi.attrib['index']
|
||||
elif val:
|
||||
fi = ET.Element("{%s}first" % (self.namespace))
|
||||
|
||||
Reference in New Issue
Block a user