Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2013-03-02 10:05:49 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
20f0b9efb21f3860e2cf822cc6ed07d0daeedd16
20f0b9ef
1 parent
19d6e1be
fixed bug in dict comprehension parser
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
snakes/lang/python/parser.py
snakes/lang/python/parser.py
View file @
20f0b9e
...
...
@@ -1623,7 +1623,7 @@ class Translator (object) :
return
self
.
ST
.
Set
(
lineno
=
st
.
srow
,
col_offset
=
st
.
scol
,
elts
=
[
self
.
do
(
st
[
0
],
ctx
)])
elif
st
[
1
]
.
text
==
":"
:
if
st
[
3
]
.
text
==
","
:
if
len
(
st
)
<
4
or
st
[
3
]
.
text
==
","
:
return
self
.
ST
.
Dict
(
lineno
=
st
.
srow
,
col_offset
=
st
.
scol
,
keys
=
[
self
.
do
(
child
,
ctx
)
for
child
in
st
[::
4
]],
...
...
Please
register
or
login
to post a comment