jessatehcrow / lynie Goto Github PK
View Code? Open in Web Editor NEWA easy to use oneline-icator for python
License: MIT License
A easy to use oneline-icator for python
License: MIT License
Describe the bug
It doesn't like certain script formatting.
To Reproduce
Steps to reproduce the behavior:
Msg me on discord for my exact steps as they include some test source code that I'd rather remain private for the time being
GalacticB69#4729
Expected behavior
It doesn't error and produces a functioning script.
Additional context
Traceback:
Traceback (most recent call last):
File "/****/lynie/example.py", line 8, in <module>
line = lynie.parse_file(filename)
File "/****/lynie/lynie/lynie.py", line 408, in parse_file
out = _parse_body(parsed_ast.body,force_list=True)
File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
temp = parser[type(x)](x)
File "/****/lynie/lynie/lynie.py", line 346, in _def_parse
code = _parse_body(body.body)
File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
temp = parser[type(x)](x)
File "/****/lynie/lynie/lynie.py", line 310, in _for_parse
out = _parse_body(body.body)
File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
temp = parser[type(x)](x)
File "/****/lynie/lynie/lynie.py", line 286, in _assign_parse
values = [[_get_values(x),type(x)] for x in body.value.elts] if isinstance(body.value,ast.Tuple) else [_get_values(body.value),type(body.value)]
File "/****/lynie/lynie/lynie.py", line 262, in _get_values
out = [get_value[type(val)](val,raw) for val in types]
File "/****/lynie/lynie/lynie.py", line 262, in <listcomp>
out = [get_value[type(val)](val,raw) for val in types]
File "/****/lynie/lynie/lynie.py", line 57, in _get_call
args = _get_values(*call.args)
File "/****/lynie/lynie/lynie.py", line 262, in _get_values
out = [get_value[type(val)](val,raw) for val in types]
File "/****/lynie/lynie/lynie.py", line 262, in <listcomp>
out = [get_value[type(val)](val,raw) for val in types]
KeyError: <class 'ast.GeneratorExp'>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.