Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Bindgen
pystencils
Commits
76c3727b
Commit
76c3727b
authored
Jun 19, 2020
by
Markus Holzer
Browse files
Replaced repr naming of variable
parent
87f5cfdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/astnodes.py
View file @
76c3727b
...
...
@@ -113,14 +113,14 @@ class Conditional(Node):
return
self
.
__repr__
()
def
__repr__
(
self
):
re
pr
=
f
'if:(
{
self
.
condition_expr
!r}
) '
re
sult
=
f
'if:(
{
self
.
condition_expr
!r}
) '
if
self
.
true_block
:
re
pr
+=
f
'
\n\t
{
self
.
true_block
}
) '
re
sult
+=
f
'
\n\t
{
self
.
true_block
}
) '
if
self
.
false_block
:
re
pr
=
'else: '
re
pr
+=
f
'
\n\t
{
self
.
false_block
}
'
re
sult
=
'else: '
re
sult
+=
f
'
\n\t
{
self
.
false_block
}
'
return
re
pr
return
re
sult
def
replace_by_true_block
(
self
):
"""Replaces the conditional by its True block"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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