Use simplejson first, and centralize import
simplejson is supposed to be faster: http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
This commit is contained in:
parent
7c0bcfe499
commit
b8d1a52732
7 changed files with 36 additions and 30 deletions
|
|
@ -24,12 +24,9 @@ import datetime
|
|||
import random
|
||||
import urllib
|
||||
from htmlentitydefs import codepoint2name
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword, BrowserUnavailable
|
||||
from weboob.tools.json import json
|
||||
|
||||
from weboob.capabilities.chat import ChatException, ChatMessage
|
||||
from weboob.capabilities.messages import CantSendMessage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue