aboutsummaryrefslogtreecommitdiffstats
path: root/slack/util.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-29 16:57:53 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:52 +0100
commitacaf2e81719ba160aac3bc7c3c78fc4db3d13f65 (patch)
treea23c4c04ac63987312ce2ff9bb6fc1351c887dfe /slack/util.py
parentcdf3cfe4a2ed8a340ac1a8404e7cd7e604fe3857 (diff)
downloadwee-slack-acaf2e81719ba160aac3bc7c3c78fc4db3d13f65.tar.gz
Use class for shared, so we don't have to change usage when combining
Diffstat (limited to 'slack/util.py')
-rw-r--r--slack/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/util.py b/slack/util.py
index acbe5cf..4f9e5dd 100644
--- a/slack/util.py
+++ b/slack/util.py
@@ -1,8 +1,8 @@
from typing import Any, Callable
-from . import globals as G
+from .shared import shared
def get_callback_name(callback: Callable[..., Any]) -> str:
- G.weechat_callbacks[callback.__name__] = callback
+ shared.weechat_callbacks[callback.__name__] = callback
return callback.__name__