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

fix the bug that the str object has no decode in python3 #132

Merged
merged 3 commits into from Jun 3, 2018

Conversation

hongchhe
Copy link

Traceback (most recent call last):
File "/home/chuang/.local/bin/ckanapi", line 11, in
sys.exit(main())
File
"/home/chuang/.local/lib/python3.6/site-packages/ckanapi/cli/main.py",
line 110, in main
for r in action(ckan, arguments):
File
"/home/chuang/.local/lib/python3.6/site-packages/ckanapi/cli/action.py",
line 25, in action
expanduser(arguments['--input'])).read().decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

Traceback (most recent call last):
  File "/home/chuang/.local/bin/ckanapi", line 11, in <module>
    sys.exit(main())
  File
"/home/chuang/.local/lib/python3.6/site-packages/ckanapi/cli/main.py",
line 110, in main
    for r in action(ckan, arguments):
  File
"/home/chuang/.local/lib/python3.6/site-packages/ckanapi/cli/action.py",
line 25, in action
    expanduser(arguments['--input'])).read().decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
@wardi
Copy link
Contributor

wardi commented May 28, 2018

@hongchhe thanks, would you look into the broken tests on some versions of Python?

@hongchhe
Copy link
Author

hongchhe commented Jun 3, 2018

@wardi sorry, I forgot the parameter's definition. I will fix it again.

@wardi wardi merged commit 3be4a5c into ckan:master Jun 3, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants