change @staticmethod to @classmethod
This commit is contained in:
parent
1691bc8b26
commit
0e00c42827
|
@ -87,8 +87,8 @@ class Mail:
|
||||||
finally:
|
finally:
|
||||||
return report
|
return report
|
||||||
|
|
||||||
@staticmethod
|
@classmethod
|
||||||
def _getText(string: str):
|
def _getText(cls, string: str):
|
||||||
"""
|
"""
|
||||||
If text is a file - read text from this file
|
If text is a file - read text from this file
|
||||||
:param string: string of text or file path
|
:param string: string of text or file path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user