There was an error while loading. Please reload this page.
2 parents 1c83c7e + f53a890 commit 0b7c0d2Copy full SHA for 0b7c0d2
pyconfigparser.py
@@ -5,6 +5,7 @@
5
import yaml
6
import os
7
import re
8
+from collections.abc import Mapping
9
10
__all__ = [
11
"ConfigError",
@@ -106,7 +107,7 @@ def _extract_env_variable_key(variable):
106
107
}
108
109
-class Config:
110
+class Config(Mapping):
111
112
def __getitem__(self, item):
113
return self.__dict__[item]
@@ -117,12 +118,6 @@ def __iter__(self):
117
118
def __len__(self):
119
return len(self.__dict__)
120
- def keys(self):
121
- return self.__dict__.keys()
122
-
123
- def values(self):
124
- return self.__dict__.values()
125
126
127
class ConfigParser:
128
def __init__(self):
0 commit comments