change @staticmethod to @classmethod

This commit is contained in:
PavelMuhortov 2021-06-17 07:32:58 +03:00
parent 1691bc8b26
commit 0e00c42827

View File

@ -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