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
b42747b6
Commit
b42747b6
authored
Jul 28, 2014
by
dbarbera
Browse files
flake8 fixes
parent
e5ac2879
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
b42747b6
...
...
@@ -632,7 +632,7 @@ def check_type_compatibility(primary, typeRef, context):
# Compare the types for semantic equivalence
try
:
compare_types
(
primary
.
value
[
ufield
].
exprType
,
fd_data
.
type
)
primary
.
value
[
ufield
].
exprType
,
fd_data
.
type
)
except
TypeError
as
err
:
raise
TypeError
(
'Field '
+
ufield
+
' is not of the proper type, i.e. '
+
...
...
@@ -1617,7 +1617,7 @@ def primary(root, context):
elif
root
.
type
==
lexer
.
OCTSTR
:
prim
=
ogAST
.
PrimOctetStringLiteral
()
warnings
.
append
(
warning
(
root
,
'Octet string literal not supported yet'
))
warning
(
root
,
'Octet string literal not supported yet'
))
else
:
# TODO: return error message
raise
NotImplementedError
...
...
@@ -2561,9 +2561,9 @@ def state(root, parent, context):
else
:
asterisk_input
=
inp
elif
child
.
type
==
lexer
.
CONNECT
:
comp_states
=
(
comp
.
statename
for
comp
in
context
.
composite_states
)
if
asterisk_state
or
len
(
state_def
.
statelist
)
!=
1
\
or
(
state_def
.
statelist
[
0
].
lower
()
not
in
(
comp
.
statename
for
comp
in
context
.
composite_states
)):
or
state_def
.
statelist
[
0
].
lower
()
not
in
comp_states
:
errors
.
append
(
'State {} is not a composite state and cannot '
'be followed by a connect statement'
.
format
(
state_def
.
statelist
[
0
]))
...
...
@@ -3062,7 +3062,7 @@ def decision(root, parent, context):
qmin
,
qmax
=
int
(
float
(
q_basic
.
Min
)),
int
(
float
(
q_basic
.
Max
))
a0_val
=
int
(
float
(
a0_basic
.
Min
))
a1_val
=
int
(
float
(
a1_basic
.
Max
))
if
a0_val
<
qmin
:
if
a0_val
<
qmin
:
warnings
.
append
(
'Decision "{dec}": '
'Range [{a0} .. {qmin}] is unreachable'
.
format
(
a0
=
a0_val
,
qmin
=
qmin
-
1
,
...
...
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