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

SyntaxError when using the Redis backend in Python 3.2 #39

Closed
sqlalchemy-bot opened this issue Aug 14, 2013 · 4 comments
Closed

SyntaxError when using the Redis backend in Python 3.2 #39

sqlalchemy-bot opened this issue Aug 14, 2013 · 4 comments
Labels
bug

Comments

@sqlalchemy-bot
Copy link

@sqlalchemy-bot sqlalchemy-bot commented Aug 14, 2013

Migrated issue, originally created by Jimmy Mabey (jmabey)

The RedisBackend uses the u"" syntax for Unicode strings, which was reintroduced in Python 3.3, so a SyntaxError is raised when used in Python 3.2 (and probably older 3.x versions as well).

It's on this line: https://bitbucket.org/zzzeek/dogpile.cache/src/d3c7df59a0f695a13a213e0503c66878233561a6/dogpile/cache/backends/redis.py?at=master#cl-108

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Aug 14, 2013

Michael Bayer (zzzeek) wrote:

a short pull request, or just upgrade to 3.3 as you probably should, whichever is easier.... thanks !

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Aug 14, 2013

Jimmy Mabey (jmabey) wrote:

Cool, I will send you a pull request, probably tomorrow. Stuck with using 3.2 for now, unfortunately.

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Aug 17, 2013

Michael Bayer (zzzeek) wrote:

f8108da

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Aug 17, 2013

Changes by Michael Bayer (zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant