rename eventlogger to events

This commit is contained in:
holger krekel
2020-05-20 16:37:27 +02:00
parent f67c86cb39
commit 4855584de9
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ from .message import Message # noqa
from .contact import Contact # noqa from .contact import Contact # noqa
from .chat import Chat # noqa from .chat import Chat # noqa
from .hookspec import account_hookimpl, global_hookimpl # noqa from .hookspec import account_hookimpl, global_hookimpl # noqa
from . import eventlogger from . import events
from pkg_resources import get_distribution, DistributionNotFound from pkg_resources import get_distribution, DistributionNotFound
try: try:
@@ -39,7 +39,7 @@ def unregister_global_plugin(plugin):
gm.unregister(plugin) gm.unregister(plugin)
register_global_plugin(eventlogger) register_global_plugin(events)
def run_cmdline(argv=None, account_plugins=None): def run_cmdline(argv=None, account_plugins=None):
@@ -60,7 +60,7 @@ def run_cmdline(argv=None, account_plugins=None):
ac = Account(args.db) ac = Account(args.db)
if args.show_ffi: if args.show_ffi:
log = eventlogger.FFIEventLogger(ac, "bot") log = events.FFIEventLogger(ac, "bot")
ac.add_account_plugin(log) ac.add_account_plugin(log)
if not ac.is_configured(): if not ac.is_configured():

View File

@@ -15,7 +15,7 @@ from .message import Message
from .contact import Contact from .contact import Contact
from .tracker import ImexTracker, ConfigureTracker from .tracker import ImexTracker, ConfigureTracker
from . import hookspec from . import hookspec
from .eventlogger import FFIEventLogger, CallbackThread from .events import FFIEventLogger, CallbackThread
class MissingCredentials(ValueError): class MissingCredentials(ValueError):

View File

@@ -15,7 +15,7 @@ import requests
from . import Account, const from . import Account, const
from .tracker import ConfigureTracker from .tracker import ConfigureTracker
from .capi import lib from .capi import lib
from .eventlogger import FFIEventLogger, FFIEventTracker from .events import FFIEventLogger, FFIEventTracker
from _pytest.monkeypatch import MonkeyPatch from _pytest.monkeypatch import MonkeyPatch
from _pytest._code import Source from _pytest._code import Source