diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-26 17:17:38 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-26 17:17:38 -0600 |
| commit | 39cc3d5a0a717199783c292373e181e410608344 (patch) | |
| tree | fa05b16c5e3de70d01695837b96545c8ae527315 /config_file | |
| parent | Merge branch 'master' of github.com:eugenetriguba/config_file (diff) | |
| download | config-file-39cc3d5a0a717199783c292373e181e410608344.zip | |
Rename reset() to restore_original()
Diffstat (limited to 'config_file')
| -rw-r--r-- | config_file/config_file.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |