From 4855584de9f42055554acc6c877640a85f5bc584 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 20 May 2020 16:37:27 +0200 Subject: [PATCH] rename eventlogger to events --- python/src/deltachat/__init__.py | 6 +++--- python/src/deltachat/account.py | 2 +- python/src/deltachat/{eventlogger.py => events.py} | 0 python/src/deltachat/testplugin.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename python/src/deltachat/{eventlogger.py => events.py} (100%) 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