Skip to content

Commit 49166e4

Browse files
committed
[hotfix] PEP8
1 parent 575fd24 commit 49166e4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

fink_utils/tg_bot/utils.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def escape(text):
4343
-------
4444
result : str
4545
"""
46-
return re.sub(r'[_*[\]()~>#\+\-=|{}.!]', lambda x: '\\' + x.group(), text)
46+
return re.sub(r"[_*[\]()~>#\+\-=|{}.!]", lambda x: "\\" + x.group(), text)
4747

4848

4949
def status_check(res, header, sleep=8, timeout=25):
@@ -101,7 +101,14 @@ def send_simple_text_tg(text, channel_id, timeout=25):
101101
status_check(res, header=channel_id)
102102

103103

104-
def msg_handler_tg(tg_data, channel_id, init_msg=None, timeout=25, sleep_seconds=10, parse_mode="markdown"):
104+
def msg_handler_tg(
105+
tg_data,
106+
channel_id,
107+
init_msg=None,
108+
timeout=25,
109+
sleep_seconds=10,
110+
parse_mode="markdown",
111+
):
105112
"""Send `tg_data` to a telegram channel
106113
107114
Notes

0 commit comments

Comments
 (0)