From 39cc3d5a0a717199783c292373e181e410608344 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 26 Jan 2020 17:17:38 -0600 Subject: Rename reset() to restore_original() --- config_file/config_file.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config_file') diff --git a/config_file/config_file.py b/config_file/config_file.py index 5827d08..bc05d97 100644 --- a/config_file/config_file.py +++ b/config_file/config_file.py @@ -96,11 +96,11 @@ class ConfigFile: """ return self.parser.has(section_key) - def reset(self, original_file_path=None): + def restore_original(self, original_file_path=None): """ - Resets the config file by deleting it and copying the original back - in its place. The contents of this config file are then set to the - newly reset config file. + Restores the original the config file by deleting it and copying the original + back in its place. The internal contents of this config file object are then set + to the newly reset config file. :param original_file_path: The path to the original config file to reset it to. If this is not provided and, say, your configuration file is config.json, the -- cgit v1.2.3