ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
176 stars 74 forks source link

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

Closed hongchhe closed 6 years ago

hongchhe commented 6 years ago

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'

wardi commented 6 years ago

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

hongchhe commented 6 years ago

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