Commit 928a16ad authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix more Python3 issues

map() behaves differenly from python2
parent f886eb7e
...@@ -768,7 +768,8 @@ package {process_name} is'''.format(generic=generic_spec, ...@@ -768,7 +768,8 @@ package {process_name} is'''.format(generic=generic_spec,
execute_transition(state) execute_transition(state)
if not instance: if not instance:
map(case_state, reduced_statelist) # XXX update C generator for each_state in reduced_statelist:
case_state(each_state)
taste_template.append('when others =>') taste_template.append('when others =>')
taste_template.append('runTransition(CS_Only);') taste_template.append('runTransition(CS_Only);')
taste_template.append('end case;') taste_template.append('end case;')
......
...@@ -233,7 +233,7 @@ class MoveSymbol(QUndoCommand): ...@@ -233,7 +233,7 @@ class MoveSymbol(QUndoCommand):
self.old_pos = old_pos self.old_pos = old_pos
self.new_pos = new_pos self.new_pos = new_pos
if animate: if animate:
self.animation = QPropertyAnimation(self.symbol, "position") self.animation = QPropertyAnimation(self.symbol, b"position")
self.animation.setDuration(500) self.animation.setDuration(500)
self.animation.setStartValue(self.old_pos) self.animation.setStartValue(self.old_pos)
self.animation.setEndValue(self.new_pos) self.animation.setEndValue(self.new_pos)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment