Skip to content

Importing dogpile on python 3.7 beta 2 fails with syntax error. #119

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

Closed
sqlalchemy-bot opened this issue Mar 5, 2018 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Brian Sheldon ()

Importing dogpile on python 3.7 beta 2 fails with syntax error.

Python 3.7.0b2 (v3.7.0b2:b0ef5c979b, Feb 28 2018, 02:24:20) [MSC v.1912 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dogpile
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python\3.7.0\lib\site-packages\dogpile\__init__.py", line 3, in <module>
    from .lock import Lock  # noqa
  File "C:\Python\3.7.0\lib\site-packages\dogpile\lock.py", line 115
    async = False
          ^
SyntaxError: invalid syntax
@sqlalchemy-bot
Copy link
Author

Michael Bayer (zzzeek) wrote:

Rename "async" variable for python 3.7

Fixed import issue for Python 3.7 where a variable named "async" was
used, leading to syntax errors. Pull request courtesy Brian Sheldon.

Fixes: #119
Change-Id: I5189eaaca07e4eb369daa655a54791dfa915c034
Pull-request: https://bitbucket.org/zzzeek/dogpile.cache/pull-requests/64

3c4351c

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added the bug Something isn't working label Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant