Skip to content
Snippets Groups Projects
Commit 5df65254 authored by Robin Schubert's avatar Robin Schubert
Browse files

fix two typos

parent 59369755
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ class _MynitConfig: ...@@ -105,7 +105,7 @@ class _MynitConfig:
print("Wrote configuration to file") print("Wrote configuration to file")
def register(self, name, verbose_name, schema): def register(self, name, verbose_name, schema):
"""Rgister a configuration schema.""" """Register a configuration schema."""
self._schemas[name] = (verbose_name, schema) self._schemas[name] = (verbose_name, schema)
def _has_setting(self, schema, setting): def _has_setting(self, schema, setting):
...@@ -130,7 +130,7 @@ class _MynitConfig: ...@@ -130,7 +130,7 @@ class _MynitConfig:
if not self._has_setting(schema, setting): if not self._has_setting(schema, setting):
raise KeyError("Setting %s in schema %s is unknown." % (setting, schema)) raise KeyError("Setting %s in schema %s is unknown." % (setting, schema))
self._configu.setdefault(schema, {})[setting] = value self._config.setdefault(schema, {})[setting] = value
self._save() self._save()
def __getitem__(self, schema): def __getitem__(self, schema):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment