Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
928a16ad
Commit
928a16ad
authored
Nov 06, 2019
by
Maxime Perrotin
Browse files
Fix more Python3 issues
map() behaves differenly from python2
parent
f886eb7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
928a16ad
...
...
@@ -768,7 +768,8 @@ package {process_name} is'''.format(generic=generic_spec,
execute_transition
(
state
)
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
(
'runTransition(CS_Only);'
)
taste_template
.
append
(
'end case;'
)
...
...
opengeode/undoCommands.py
View file @
928a16ad
...
...
@@ -233,7 +233,7 @@ class MoveSymbol(QUndoCommand):
self
.
old_pos
=
old_pos
self
.
new_pos
=
new_pos
if
animate
:
self
.
animation
=
QPropertyAnimation
(
self
.
symbol
,
"position"
)
self
.
animation
=
QPropertyAnimation
(
self
.
symbol
,
b
"position"
)
self
.
animation
.
setDuration
(
500
)
self
.
animation
.
setStartValue
(
self
.
old_pos
)
self
.
animation
.
setEndValue
(
self
.
new_pos
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment