We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e491d18 commit 5b6ed30Copy full SHA for 5b6ed30
digikey/configfile.py
@@ -15,10 +15,10 @@ def __init__(self):
15
def save(self):
16
pass
17
18
- def get(self, what: str):
+ def get(self, key: str):
19
20
21
- def set(self, what: str, to):
+ def set(self, key: str, val: str):
22
23
24
@@ -37,10 +37,10 @@ def save(self):
37
with open(self.file_name, 'w') as f:
38
json.dump(self.config, f)
39
40
41
- if what in self.config:
42
- return self.config[what]
+ if key in self.config:
+ return self.config[key]
43
return None
44
45
46
- self.config[what] = to
+ self.config[key] = val
0 commit comments