aboutsummaryrefslogtreecommitdiffstats
path: root/slack/log.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-24 21:59:31 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:52 +0100
commitee9d976ff8d8910c091d1554dfa62ab28ad67509 (patch)
tree79cae5e252be07e11fd2d735b9c7fb37f91830d4 /slack/log.py
parente3bc88120e071eac8fabb5b02d7b509488d563e2 (diff)
downloadwee-slack-ee9d976ff8d8910c091d1554dfa62ab28ad67509.tar.gz
Rename globals to G
Diffstat (limited to 'slack/log.py')
-rw-r--r--slack/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/log.py b/slack/log.py
index f65a095..d7b6843 100644
--- a/slack/log.py
+++ b/slack/log.py
@@ -1,6 +1,6 @@
from enum import IntEnum
-import globals
+import globals as G
import weechat
@@ -15,7 +15,7 @@ class LogLevel(IntEnum):
# TODO: Figure out what to do with print_error vs log
def print_error(message: str):
- weechat.prnt("", f"{weechat.prefix('error')}{globals.SCRIPT_NAME}: {message}")
+ weechat.prnt("", f"{weechat.prefix('error')}{G.SCRIPT_NAME}: {message}")
def log(level: LogLevel, message: str):