Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Fix Python 3 issue, use str instead of basestring #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michael-erasmus
Copy link

Hey @kennethreitz!

Just a small PR to fix an issue I got trying to use this with Python3.

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/opt/conda/lib/python3.5/site-packages/dynamo.py", line 48, in __setitem__
    if isinstance(key, (basestring, Number)):
NameError: name 'basestring' is not defined

This was pretty easy to fix, just forked the repo and ran:

2to3 -wn dynamo.py

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

Successfully merging this pull request may close these issues.

1 participant