From 3f874d1ba218a82ac354af748be73bbbf6e0d985 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 21 Dec 2020 22:31:42 -0600 Subject: Remove depreciated stringify() method --- config_file/parsers/abstract_parser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config_file/parsers/abstract_parser.py') diff --git a/config_file/parsers/abstract_parser.py b/config_file/parsers/abstract_parser.py index 460b238..40983b2 100644 --- a/config_file/parsers/abstract_parser.py +++ b/config_file/parsers/abstract_parser.py @@ -99,8 +99,9 @@ class AbstractParser(ABC): raise NotImplementedError @abstractmethod - def stringify(self) -> str: - """Stringify the working file. + def __str__(self) -> str: + """ + Stringify the working file. Since the ConfigFile does not write out to disk after every operation, this method is what is -- cgit v1.2.3