aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-30 00:09:08 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-30 00:09:08 -0500
commitb84d8c1562ec362f30c6868ce5d52c515456bc7c (patch)
treea8ba007392cea5d6842fe60cf5f4f4c812fec275
parentAdd rest of sections (without content) to readme (diff)
downloadconfig-file-b84d8c1562ec362f30c6868ce5d52c515456bc7c.zip
Update code to be inside code block
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 45c0dd7..04d4090 100644
--- a/README.md
+++ b/README.md
@@ -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