remove useless debug message, imports and functions
This commit is contained in:
parent
9cd521bfde
commit
8292eadaee
3 changed files with 1 additions and 9 deletions
|
|
@ -26,7 +26,6 @@ from weboob.tools.browser import BrowserIncorrectPassword, BrokenPageError
|
||||||
from weboob.tools.browser2 import BaseBrowser
|
from weboob.tools.browser2 import BaseBrowser
|
||||||
|
|
||||||
from re import match, compile, sub
|
from re import match, compile, sub
|
||||||
from urllib import urlencode
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
@ -100,11 +99,6 @@ class CmbBackend(BaseBackend, ICapBank):
|
||||||
'AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405'
|
'AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405'
|
||||||
}
|
}
|
||||||
|
|
||||||
def sslCallBack(self, cert):
|
|
||||||
pemcert = DER_cert_to_PEM_cert(cert)
|
|
||||||
certhash = sha256(pemcert).hexdigest()
|
|
||||||
return certhash == self.CERTHASH
|
|
||||||
|
|
||||||
def login(self):
|
def login(self):
|
||||||
data = {
|
data = {
|
||||||
'codeEspace': 'NO',
|
'codeEspace': 'NO',
|
||||||
|
|
|
||||||
|
|
@ -328,9 +328,8 @@ class BaseBackend(object):
|
||||||
tmpproxys = os.environ['https_proxy']
|
tmpproxys = os.environ['https_proxy']
|
||||||
elif 'HTTPS_PROXY' in os.environ:
|
elif 'HTTPS_PROXY' in os.environ:
|
||||||
tmpproxys = os.environ['HTTPS_PROXY']
|
tmpproxys = os.environ['HTTPS_PROXY']
|
||||||
print tmpproxys
|
|
||||||
|
|
||||||
if tmpproxy is not None or tmpproxys is not None:
|
if any((tmpproxy, tmpproxys)):
|
||||||
kwargs['proxy'] = {}
|
kwargs['proxy'] = {}
|
||||||
if tmpproxy is not None:
|
if tmpproxy is not None:
|
||||||
kwargs['proxy']['http'] = tmpproxy
|
kwargs['proxy']['http'] = tmpproxy
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ import hashlib
|
||||||
import time
|
import time
|
||||||
import urllib
|
import urllib
|
||||||
import urllib2
|
import urllib2
|
||||||
from urlparse import urlsplit
|
|
||||||
import mimetypes
|
import mimetypes
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
from gzip import GzipFile
|
from gzip import GzipFile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue