Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/j-deng/social-core into …
Browse files Browse the repository at this point in the history
…j-deng-patch-1
  • Loading branch information
omab committed Aug 30, 2018
2 parents 6c40e33 + f0e5676 commit fdb84c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social_core/backends/weixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Weixin OAuth2 backend
"""
import urllib
from six.moves.urllib_parse import urlencode
from requests import HTTPError

from .oauth import BaseOAuth2
Expand Down Expand Up @@ -136,7 +136,7 @@ def auth_url(self):
params = self.auth_params(state)
params.update(self.get_scope_argument())
params.update(self.auth_extra_arguments())
params = urllib.urlencode(sorted(params.items()))
params = urlencode(sorted(params.items()))
return '{}#wechat_redirect'.format(
self.AUTHORIZATION_URL + '?' + params
)
Expand Down

0 comments on commit fdb84c3

Please sign in to comment.