JodelRaccoons / jodel_api

Unoffical Python Interface to the Jodel API
https://github.com/nborrmann/jodel_api
MIT License
18 stars 7 forks source link

Issue with python3.10 #32

Open springjools opened 2 years ago

springjools commented 2 years ago

Issue

For some reason, with python 3.10.4, many requests return a string instead of a dictionary. For example this: status, response = j.get_karma() ...

Adding print statements show this difference to python 3.9:

Python 3.10: Status = 200, Response = {"karma":100}, type = <class 'str'>

Python3.9: Status = 200, Response = {'karma': 100}, type = <class 'dict'>

Notice the difference with single and double quote marks in the dict.

Environment

If you're reporting a bug, please attach the output of the following commands:

$ pip show jodel_api
$ pip -V
$ python -V
$ python -c "import jodel_api; print(jodel_api.JodelAccount.version); print(jodel_api.JodelAccount.secret)"