commit | d7538e53903c50dab95ac5ee56f56162ec1559a3 | [log] [tgz] |
---|---|---|
author | Cheng Tang <tangcheng324@gmail.com> | 周四 2月 21 13:54:29 2013 +0800 |
committer | Cheng Tang <tangcheng324@gmail.com> | 周四 2月 21 13:54:29 2013 +0800 |
tree | 7211cc4540181cf55e4a0d9a4d89b820779728c1 | |
parent | df8e994a8ff5096898f52896ce6e72eb43b2f1b1 [diff] |
修改导入json的bug
diff --git a/supwisdom/protocol/nettrans.py b/supwisdom/protocol/nettrans.py index 3150414..671e612 100644 --- a/supwisdom/protocol/nettrans.py +++ b/supwisdom/protocol/nettrans.py
@@ -3,7 +3,10 @@ 所有数据都是 unicode utf-8 编码 """ import traceback -import simplejson as json +try: + import json +except ImportError: + import simplejson as json """ 后台服务的字符编码