Use new-style classes

This commit is contained in:
Laurent Bachelier 2013-04-03 18:57:29 +02:00
commit c157557501
3 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ def removeSpecial(s):
DOWNLOAD_DIRECTORY=".files"
class Downloadboob:
class Downloadboob(object):
def __init__(self, backend_name, download_directory, links_directory):
self.download_directory = download_directory

View file

@ -74,7 +74,7 @@ class HTTPSVerifiedConnection(httplib.HTTPSConnection):
raise ssl.SSLError(1, "Call back verification failed")
class HellHTTPS:
class HellHTTPS(object):
"This class is the library used by the weboob's CMB module"
def __init__(self, host, port=None, proxy=None, proxy_port=None,

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
class TokenExtractor:
class TokenExtractor(object):
""" Extracts texts token from an HTML document """
def __init__(self):
self.iterated_elements = []