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

async failure in Python 2.7 #384

Open
appukuttan-shailesh opened this issue Jul 30, 2019 · 0 comments
Open

async failure in Python 2.7 #384

appukuttan-shailesh opened this issue Jul 30, 2019 · 0 comments

Comments

@appukuttan-shailesh
Copy link

appukuttan-shailesh commented Jul 30, 2019

The following files need to be deleted in Python 2.7 for sumatra.dependency_finder.find_dependencies to work:

  • jinja2.asyncfilters.py
  • jinja2.asyncsupport.py
  • pexpect._async.py

Errors that arise are:

async def concat_async(async_gen):
       ^

SyntaxError: invalid syntax

and

transport, pw = yield from asyncio.get_event_loop()\
                        ^

SyntaxError: invalid syntax

From what I understand, the above files are functional only in Python 3.x.

@apdavison : On this line, there seems to be an effort to handle the issues arising out of async, but it seems to fail. Any quick fix to handle the above files?

Also, the above list of files are quite certainly only a sample of issues that might arise with Py 2 & 3 code in a single package. Is a more foolproof workaround possible, that for example might ignore or appropriately convert Py3 only statements (such as yield from ...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant