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() --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index cf81e5d..f59a2ed 100644 --- a/README.md +++ b/README.md @@ -102,24 +102,25 @@ config.has('calendar.start_week_on_sunday') ``` ### Save when you're done -The contents are only written back out when you call `save()`. +The contents are only written back out when you call `save()`. `set()` and `delete()` both +modify the contents of the file and ```python config.save() >>> True ``` -### Reset the file back to its original +### Restore the file back to its original The current configuration file would be deleted and replaced by a copy of the original. -By default, since our passed in config file was at path `~/.config/test/config.ini`, `reset()` -will look for `~/.config/test/config.original.ini`. +By default, since our passed in config file was at path `~/.config/test/config.ini`, +`restore_original()` will look for `~/.config/test/config.original.ini`. ```python -config.reset() +config.restore_original() >>> True # But you can also specify the original config file explicitly. -config.reset(original_file_path="~/some_other_directory/this_is_actually_the_original.ini") +config.restore_original(original_file_path="~/some_other_directory/this_is_actually_the_original.ini") >>> True ``` -- cgit v1.2.3