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 re import match, compile, sub
|
||||
from urllib import urlencode
|
||||
from decimal import Decimal
|
||||
from lxml import etree
|
||||
from datetime import date
|
||||
|
|
@ -100,11 +99,6 @@ class CmbBackend(BaseBackend, ICapBank):
|
|||
'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):
|
||||
data = {
|
||||
'codeEspace': 'NO',
|
||||
|
|
|
|||
|
|
@ -328,9 +328,8 @@ class BaseBackend(object):
|
|||
tmpproxys = os.environ['https_proxy']
|
||||
elif 'HTTPS_PROXY' in os.environ:
|
||||
tmpproxys = os.environ['HTTPS_PROXY']
|
||||
print tmpproxys
|
||||
|
||||
if tmpproxy is not None or tmpproxys is not None:
|
||||
if any((tmpproxy, tmpproxys)):
|
||||
kwargs['proxy'] = {}
|
||||
if tmpproxy is not None:
|
||||
kwargs['proxy']['http'] = tmpproxy
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ import hashlib
|
|||
import time
|
||||
import urllib
|
||||
import urllib2
|
||||
from urlparse import urlsplit
|
||||
import mimetypes
|
||||
from contextlib import closing
|
||||
from gzip import GzipFile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue