From dbffcd4eb4b0fb67dd3c04d4af425e3268990f3a Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 13 Oct 2023 17:35:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=BD=D0=B5=D1=81=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=84=D1=83?= =?UTF-8?q?=D0=BD=D0=BA=D1=86=D0=B8=D0=B8=20ClearReadLine=20#8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_sys/config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bot_sys/config.py b/bot_sys/config.py index 6226f04..8421116 100644 --- a/bot_sys/config.py +++ b/bot_sys/config.py @@ -24,11 +24,8 @@ root_ids_file_name = 'config_root_ids' # Дополнительные функции def ClearReadLine(a_Line): - cleaned_line = "" - for char in a_Line: - if char.isprintable(): - cleaned_line += char - return cleaned_line + line = a_Line.strip() + return line def GetFirstLineFromFile(a_FileName): f = open(a_FileName, 'r')