Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix no encoding declared error in python2.7#53

Open
jxltom wants to merge 1 commit intojpush:masterjpush/jpush-api-python-client:masterfrom
jxltom:patch-1jxltom/jpush-api-python-client:patch-1Copy head branch name to clipboard
Open

Fix no encoding declared error in python2.7#53
jxltom wants to merge 1 commit intojpush:masterjpush/jpush-api-python-client:masterfrom
jxltom:patch-1jxltom/jpush-api-python-client:patch-1Copy head branch name to clipboard

Conversation

@jxltom
Copy link

@jxltom jxltom commented Apr 23, 2020

There are non ascii characters in

# 修复celery的错误,参考https://github.com/celery/celery/issues/3623
, 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.

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.