diff options
-rw-r--r-- | docs/features/settings.rst | 2 | ||||
-rwxr-xr-x | examples/remove_settable.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/features/settings.rst b/docs/features/settings.rst index 6a8996e1..23c7686d 100644 --- a/docs/features/settings.rst +++ b/docs/features/settings.rst @@ -165,4 +165,4 @@ the :ref:`features/settings:debug` setting. To do so, remove it from the def __init__(self): super().__init__() - self.settables.pop('debug') + self.remove_settable('debug') diff --git a/examples/remove_settable.py b/examples/remove_settable.py index 13a75e11..6a2e4062 100755 --- a/examples/remove_settable.py +++ b/examples/remove_settable.py @@ -10,7 +10,7 @@ class MyApp(cmd2.Cmd): def __init__(self): super().__init__() - self.settables.pop('debug') + self.remove_settable('debug') if __name__ == '__main__': |