Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid syntax #3

Closed
buriy opened this issue Oct 13, 2015 · 2 comments
Closed

Invalid syntax #3

buriy opened this issue Oct 13, 2015 · 2 comments
Labels

Comments

@buriy
Copy link

buriy commented Oct 13, 2015

python 2.7

$ pigar
Traceback (most recent call last):
File "/usr/local/bin/pigar", line 9, in
load_entry_point('pigar==0.5.4', 'console_scripts', 'pigar')()
File "/usr/local/lib/python2.7/dist-packages/pigar/main.py", line 32, in main
generate_reqs(save_path, project_path)
File "/usr/local/lib/python2.7/dist-packages/pigar/main.py", line 93, in generate_reqs
reqs, guess = extract_reqs(project_path)
File "/usr/local/lib/python2.7/dist-packages/pigar/main.py", line 135, in extract_reqs
modules, local_mods = project_import_modules(path)
File "/usr/local/lib/python2.7/dist-packages/pigar/reqs.py", line 38, in project_import_modules
modules.extend(file_import_modules(f.read()))
File "/usr/local/lib/python2.7/dist-packages/pigar/reqs.py", line 56, in file_import_modules
return list(_recursion(ic, data))
File "/usr/local/lib/python2.7/dist-packages/pigar/reqs.py", line 49, in _recursion
parsed = ast.parse(str_code)
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "", line 1306
print("...", end=' ')
^
SyntaxError: invalid syntax

@damnever damnever added the bug label Oct 14, 2015
@damnever
Copy link
Owner

pip install git+https://github.com/Damnever/pigar.git@invalid_syntax --upgrade

@damnever
Copy link
Owner

Some code like this:

exec "testing print_exception() -- <I>italics?</I>"

So I just ignore it...

damnever pushed a commit that referenced this issue Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants