telegram: Fix: move FILENAME_INVALID_CHARS to the file that uses it ;)
patch c0d8386222d332e03fabbcb60c93cd19bb77a14e
Author: E. Bosch <presidev@AT@gmail.com>
Date: Wed Feb 9 22:58:31 CET 2022
* telegram: Fix: move FILENAME_INVALID_CHARS to the file that uses it ;)
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-10-23 06:39:01.666693110 +0200
+++ new-irgramd/telegram.py 2024-10-23 06:39:01.666693110 +0200
@@ -12,10 +12,6 @@
from irc import IRCUser
from utils import sanitize_filename, remove_slash, remove_http_s
-# Constants
-
-FILENAME_INVALID_CHARS = re.compile('[/{}<>()"\'\\|&]')
-
# Configuration
# GET API_ID and API_HASH from https://my.telegram.org/apps
diff -rN -u old-irgramd/utils.py new-irgramd/utils.py
--- old-irgramd/utils.py 2024-10-23 06:39:01.666693110 +0200
+++ new-irgramd/utils.py 2024-10-23 06:39:01.670693104 +0200
@@ -3,6 +3,10 @@
import textwrap
import re
+# Constants
+
+FILENAME_INVALID_CHARS = re.compile('[/{}<>()"\'\\|&]')
+
# Utilities
def chunks(iterable, n, fillvalue=None):