a few streamlinings

This commit is contained in:
holger krekel
2020-03-29 14:49:28 +02:00
parent 1b858393c5
commit 323d996d5f
3 changed files with 5 additions and 4 deletions

View File

@@ -3,8 +3,11 @@ import sys
from . import capi, const, hookspec
from .capi import ffi
from .account import Account # noqa
from . import eventlogger
from .message import Message # noqa
from .contact import Contact # noqa
from .chat import Chat # noqa
from .hookspec import account_hookimpl, global_hookimpl # noqa
from . import eventlogger
from pkg_resources import get_distribution, DistributionNotFound
try:

View File

@@ -214,7 +214,6 @@ class Account(object):
:returns: :class:`deltachat.contact.Contact`
"""
self.check_is_configured()
return Contact(self, const.DC_CONTACT_ID_SELF)
def create_contact(self, email, name=None):