File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,8 @@ def load(self):
51
51
52
52
for path in self ._config_paths :
53
53
configfile = config .readConfigDict (path )
54
- print (path )
55
54
for conf_name ,conf in configfile .items ():
56
- print (conf )
57
- class_type = conf .get ('class_type' ,None )
55
+ class_type = conf .pop ('class_type' ,None )
58
56
if class_type and self ._config_class .get (class_type ):
59
57
setattr (self ,conf_name ,self ._config_class [class_type ](** conf ))
60
58
continue
Original file line number Diff line number Diff line change 12
12
13
13
@dataclass
14
14
class _oracledb :
15
- class_type :str
16
15
dbname :str
17
16
dbuser :str
18
17
host :str
@@ -25,7 +24,6 @@ def __post_init__(self):
25
24
26
25
@dataclass
27
26
class _postgresdb :
28
- class_type :str
29
27
dbname :str
30
28
dbuser :str
31
29
host :str
You can’t perform that action at this time.
0 commit comments