From 6aacd27ab26e6831ad6f9cfe0b1f555617321a25 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 5 Dec 2016 07:18:53 +1300 Subject: [PATCH] Add YAML serialization of options This uses ruamel.yaml. The library seems well-supported, and can do in-place modification of config files that retains user comments and file structure. --- mitmproxy/optmanager.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index 61421ba75..2ce3c48bb 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -124,10 +124,6 @@ class OptManager(metaclass=_DefaultsMeta): def keys(self): return set(self._opts.keys()) - @classmethod - def default(klass, opt): - return copy.deepcopy(klass._defaults[opt]) - def reset(self): """ Restore defaults for all options.