patch c0d8386222d332e03fabbcb60c93cd19bb77a14e Author: E. Bosch 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-11-22 21:11:38.141177355 +0100 +++ new-irgramd/telegram.py 2024-11-22 21:11:38.145177349 +0100 @@ -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-11-22 21:11:38.141177355 +0100 +++ new-irgramd/utils.py 2024-11-22 21:11:38.145177349 +0100 @@ -3,6 +3,10 @@ import textwrap import re +# Constants + +FILENAME_INVALID_CHARS = re.compile('[/{}<>()"\'\\|&]') + # Utilities def chunks(iterable, n, fillvalue=None):