jpush-api-python-client
jpush-api-python-client copied to clipboard
Fix no encoding declared error in python2.7
There are non ascii characters in https://github.com/jpush/jpush-api-python-client/blob/470d2d027c518f18245f0a8a61c93e440a76b551/jpush/common.py#L84, this will raise SyntaxError: Non-ASCII character '\xe4' in file /app/.heroku/python/lib/python2.7/site-packages/jpush/common.py on line 84, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details error in python2.7.
This PR fixes this.