remove useless debug message, imports and functions

This commit is contained in:
Romain Bignon 2014-03-13 21:22:54 +01:00
commit 8292eadaee
3 changed files with 1 additions and 9 deletions

View file

@ -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',

View file

@ -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

View file

@ -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