rimossi cloudscraper, simplejson e torrentool, aggiornato sambatools
This commit is contained in:
@@ -37,7 +37,6 @@ if not xbmc_vfs:
|
||||
except:
|
||||
samba = None
|
||||
# Python 2.4 Not compatible with samba module, you have to check
|
||||
|
||||
# Windows is "mbcs" linux, osx, android is "utf8"
|
||||
if os.name == "nt":
|
||||
fs_encoding = ""
|
||||
|
||||
+1
-21
@@ -8,27 +8,7 @@ import traceback
|
||||
from platformcode import logger
|
||||
from inspect import stack
|
||||
|
||||
try:
|
||||
import json
|
||||
except:
|
||||
logger.error("json included in the interpreter **NOT** available")
|
||||
|
||||
try:
|
||||
import simplejson as json
|
||||
except:
|
||||
logger.error("simplejson included in the interpreter **NOT** available")
|
||||
try:
|
||||
from lib import simplejson as json
|
||||
except:
|
||||
logger.error("simplejson in lib directory **NOT** available")
|
||||
logger.error("A valid JSON parser was not found")
|
||||
json = None
|
||||
else:
|
||||
logger.info("Using simplejson in the lib directory")
|
||||
else:
|
||||
logger.error("Using simplejson included in the interpreter")
|
||||
# ~ else:
|
||||
# ~ logger.info("Usando json incluido en el interprete")
|
||||
import json
|
||||
|
||||
import sys
|
||||
PY3 = False
|
||||
|
||||
Reference in New Issue
Block a user