From 0e00c4282730ad0c32248ec55c9817a62816d198 Mon Sep 17 00:00:00 2001 From: PavelMuhortov Date: Thu, 17 Jun 2021 07:32:58 +0300 Subject: [PATCH] change @staticmethod to @classmethod --- sendmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sendmail.py b/sendmail.py index df5837b..ea5946a 100644 --- a/sendmail.py +++ b/sendmail.py @@ -87,8 +87,8 @@ class Mail: finally: return report - @staticmethod - def _getText(string: str): + @classmethod + def _getText(cls, string: str): """ If text is a file - read text from this file :param string: string of text or file path