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
8a1b1852
Commit
8a1b1852
authored
May 24, 2017
by
Maxime Perrotin
Browse files
Fix some unicode issues
parent
23a93cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
8a1b1852
...
...
@@ -1991,15 +1991,15 @@ def _append(expr):
local_decl
.
extend
(
left_local
)
local_decl
.
extend
(
right_local
)
left
=
'{}{}'
.
format
(
left_str
,
string_payload
(
expr
.
left
,
left_str
)
if
left
=
u
'{}{}'
.
format
(
left_str
,
string_payload
(
expr
.
left
,
left_str
)
if
isinstance
(
expr
.
left
,
(
ogAST
.
PrimVariable
,
ogAST
.
PrimConstant
))
else
''
)
right
=
'{}{}'
.
format
(
right_str
,
string_payload
(
expr
.
right
,
right_str
)
if
right
=
u
'{}{}'
.
format
(
right_str
,
string_payload
(
expr
.
right
,
right_str
)
if
isinstance
(
expr
.
right
,
(
ogAST
.
PrimVariable
,
ogAST
.
PrimConditional
,
ogAST
.
PrimConstant
))
else
''
)
ada_string
=
'(({}) & ({}))'
.
format
(
left
,
right
)
ada_string
=
u
'(({}) & ({}))'
.
format
(
left
,
right
)
return
stmts
,
unicode
(
ada_string
),
local_decl
...
...
@@ -2774,7 +2774,7 @@ def append_size(append):
else
:
# Must be a variable of type SEQOF
_
,
inner
,
_
=
expression
(
each
)
result
+=
'{}.Length'
.
format
(
inner
)
result
+=
u
'{}.Length'
.
format
(
inner
)
return
result
...
...
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