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

AttributeError: 'unicode' object has no attribute 'items' #10

Open
AlexOugh opened this issue Jun 30, 2018 · 4 comments
Open

AttributeError: 'unicode' object has no attribute 'items' #10

AlexOugh opened this issue Jun 30, 2018 · 4 comments

Comments

@AlexOugh
Copy link

AlexOugh commented Jun 30, 2018

'isinstance(<variable>, unicode) needs to be added when 'isinstance(<variable>, str) is used in 'conditions.py', 'functions.py' and 'parse.py'

@odedniv
Copy link
Contributor

odedniv commented Jul 4, 2018

Hi @AlexOugh, thanks for the bug report.

Do you think you can submit a PR to fix this? That would ensure the fix works with your use case.

@AlexOugh
Copy link
Author

AlexOugh commented Jul 6, 2018

Sure, but I don't have a permission to create a new branch.

@odedniv
Copy link
Contributor

odedniv commented Jul 6, 2018

That's true, you should fork the repository and create a branch in your forked repo. Let me know if you need any help.

@odedniv
Copy link
Contributor

odedniv commented Jul 16, 2018

@AlexOugh apparently you can use isinstance(<variable>, basestring) in Python 2.x so it works for both str and unicode types. Unfortunately basestring is not available in Python 3.x.

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

2 participants