From: Kefu Chai Date: Wed, 3 Jun 2020 08:52:17 +0000 (+0800) Subject: conf/ceph.py: do not use kwargs for CephConf's constructor X-Git-Tag: v2.1.0~17^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=595bdf0268ef75502275395d7c44769a35b622fa;p=ceph-deploy.git 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 --- 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('_', ' ')