From 595bdf0268ef75502275395d7c44769a35b622fa Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 3 Jun 2020 16:52:17 +0800 Subject: [PATCH] conf/ceph.py: do not use kwargs for CephConf's constructor these is no callers which pass parameter to this constructor, so keep it simple. Signed-off-by: Kefu Chai --- ceph_deploy/conf/ceph.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ceph_deploy/conf/ceph.py b/ceph_deploy/conf/ceph.py index 5042404..3d5f826 100644 --- a/ceph_deploy/conf/ceph.py +++ b/ceph_deploy/conf/ceph.py @@ -17,10 +17,9 @@ class _TrimIndentFile(object): return iter(self.readline, '') class CephConf(configparser.RawConfigParser): - def __init__(self, *args, **kwargs): - kwargs.setdefault('strict', False) + def __init__(self): # super() cannot be used with an old-style class - configparser.RawConfigParser.__init__(self, *args, **kwargs) + configparser.RawConfigParser.__init__(self, strict=False) def optionxform(self, s): s = s.replace('_', ' ') -- 2.47.3