From 19548d88d42b67d643f4ae4ec88961139c066767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Sat, 16 Sep 2017 11:55:40 +0200 Subject: [PATCH] object inheritance in not necessary in python3 --- imbox/__init__.py | 2 +- imbox/imap.py | 2 +- imbox/parser.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imbox/__init__.py b/imbox/__init__.py index a8ddd04..bba1476 100644 --- a/imbox/__init__.py +++ b/imbox/__init__.py @@ -6,7 +6,7 @@ import logging logger = logging.getLogger(__name__) -class Imbox(object): +class Imbox: def __init__(self, hostname, username=None, password=None, ssl=True, port=None, ssl_context=None, policy=None): diff --git a/imbox/imap.py b/imbox/imap.py index d4496d8..b99e2f4 100644 --- a/imbox/imap.py +++ b/imbox/imap.py @@ -6,7 +6,7 @@ import ssl as pythonssllib logger = logging.getLogger(__name__) -class ImapTransport(object): +class ImapTransport: def __init__(self, hostname, port=None, ssl=True, ssl_context=None): self.hostname = hostname diff --git a/imbox/parser.py b/imbox/parser.py index 491db59..374ffdf 100644 --- a/imbox/parser.py +++ b/imbox/parser.py @@ -12,7 +12,7 @@ import logging logger = logging.getLogger(__name__) -class Struct(object): +class Struct: def __init__(self, **entries): self.__dict__.update(entries)