fix httplib2 su matrix

This commit is contained in:
marco
2020-02-06 21:27:48 +01:00
parent 7f378f4a1c
commit a680775c79
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ SAFE_METHODS = ("GET", "HEAD", "OPTIONS", "TRACE")
REDIRECT_CODES = frozenset((300, 301, 302, 303, 307, 308)) REDIRECT_CODES = frozenset((300, 301, 302, 303, 307, 308))
import certs from . import certs
CA_CERTS = certs.where() CA_CERTS = certs.where()
# PROTOCOL_TLS is python 3.5.3+. PROTOCOL_SSLv23 is deprecated. # PROTOCOL_TLS is python 3.5.3+. PROTOCOL_SSLv23 is deprecated.
+5 -2
View File
@@ -5,8 +5,11 @@ import xbmcaddon
import json import json
from platformcode import config, logger from platformcode import config, logger
import requests import requests
from requests.exceptions import HTTPError import sys
from lib import httplib2 if sys.version_info[0] >= 3:
from lib.httplib2 import py3 as httplib2
else:
from lib.httplib2 import py2 as httplib2
import socket import socket
addon = xbmcaddon.Addon() addon = xbmcaddon.Addon()