Skip to content

Commit

Permalink
Fix: 修正crypto import xmltodict位置
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonext committed Jun 20, 2015
1 parent 9d1bb8e commit 1046e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wechat_sdk/crypto/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import base64
import time

import six
import xmltodict

from wechat_sdk.exceptions import ParseError
from wechat_sdk.crypto.base import BaseCrypto
Expand Down Expand Up @@ -82,7 +84,6 @@ def _decrypt_message(self, msg, msg_signature, timestamp, nonce):
:return: 解密后的原文
"""
if isinstance(msg, six.string_types):
import xmltodict
try:
msg = xmltodict.parse(to_text(msg))['xml']
except Exception as e:
Expand Down

0 comments on commit 1046e52

Please sign in to comment.