diff --git a/python/src/deltachat/__init__.py b/python/src/deltachat/__init__.py index 1f88100f2..db637d017 100644 --- a/python/src/deltachat/__init__.py +++ b/python/src/deltachat/__init__.py @@ -7,7 +7,7 @@ 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 . import events from pkg_resources import get_distribution, DistributionNotFound try: @@ -39,7 +39,7 @@ def unregister_global_plugin(plugin): gm.unregister(plugin) -register_global_plugin(eventlogger) +register_global_plugin(events) def run_cmdline(argv=None, account_plugins=None): @@ -60,7 +60,7 @@ def run_cmdline(argv=None, account_plugins=None): ac = Account(args.db) if args.show_ffi: - log = eventlogger.FFIEventLogger(ac, "bot") + log = events.FFIEventLogger(ac, "bot") ac.add_account_plugin(log) if not ac.is_configured(): diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 086955157..049fe61aa 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -15,7 +15,7 @@ from .message import Message from .contact import Contact from .tracker import ImexTracker, ConfigureTracker from . import hookspec -from .eventlogger import FFIEventLogger, CallbackThread +from .events import FFIEventLogger, CallbackThread class MissingCredentials(ValueError): diff --git a/python/src/deltachat/eventlogger.py b/python/src/deltachat/events.py similarity index 100% rename from python/src/deltachat/eventlogger.py rename to python/src/deltachat/events.py diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 7208e8280..d38788361 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -15,7 +15,7 @@ import requests from . import Account, const from .tracker import ConfigureTracker from .capi import lib -from .eventlogger import FFIEventLogger, FFIEventTracker +from .events import FFIEventLogger, FFIEventTracker from _pytest.monkeypatch import MonkeyPatch from _pytest._code import Source