Skip to content

Commit bd15283

Browse files
Merge pull request #17 from BrunoSilvaAndrade/develop
docs(README): Changing README.md' script references from ConfigParser…
2 parents b36b4f5 + d438f90 commit bd15283

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,11 @@ This config file as a json would be something like:
107107
The instance of Config Class:
108108

109109
```python
110-
from pyconfigparser import Configparser, ConfigError
110+
from pyconfigparser import configparser, ConfigError
111111
import logging
112112

113113
try:
114-
config = Configparser.get_config(
115-
SCHEMA_CONFIG) # <- Here I'm using that SCHEMA_CONFIG we had declared, and the dir file default value is being used
114+
config = configparser.get_config(SCHEMA_CONFIG) # <- Here I'm using that SCHEMA_CONFIG we had declared, and the dir file default value is being used
116115
except ConfigError as e:
117116
print(e)
118117
exit()
@@ -150,17 +149,17 @@ Since you've already created the first Config's instance this instance will be c
150149
so after this first creation you can just invoke Config.get_config()
151150

152151
```python
153-
from pyconfigparser import Configparser
152+
from pyconfigparser import configparser
154153

155-
config = Configparser.get_config() # At this point you already have the configuration properties in your config object
154+
config = configparser.get_config() # At this point you already have the configuration properties in your config object
156155
```
157156

158157
You can also disable the action to cache the instance config
159158

160159
```python
161-
from pyconfigparser import Configparser
160+
from pyconfigparser import configparser
162161

163-
Configparser.hold_an_instance = False
162+
configparser.hold_an_instance = False
164163
```
165164

166165

0 commit comments

Comments
 (0)