diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-30 00:09:08 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-30 00:09:08 -0500 |
| commit | b84d8c1562ec362f30c6868ce5d52c515456bc7c (patch) | |
| tree | a8ba007392cea5d6842fe60cf5f4f4c812fec275 | |
| parent | Add rest of sections (without content) to readme (diff) | |
| download | config-file-b84d8c1562ec362f30c6868ce5d52c515456bc7c.zip | |
Update code to be inside code block
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -181,6 +181,7 @@ useful to return. ### Using `restore_original()` +```python # If we have, say, a default config file and a user config file, we can easily # restore default one. We can specify the file path to it. config.restore_original(original_file_path=ORIGINAL_CONFIG_PATH) @@ -189,6 +190,7 @@ config.restore_original(original_file_path=ORIGINAL_CONFIG_PATH) # current directory (because our configuration file we passed in was # named config.ini). config.restore_original() +``` ## Documentation |