From: Noel Power Date: Tue, 6 Nov 2018 19:47:14 +0000 (+0000) Subject: python/samba: fix default params for PY3 ConfigParser X-Git-Tag: tdb-1.3.17~451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd885c1ec71c4f9cbed96328cd82de27cdc091f;p=thirdparty%2Fsamba.git python/samba: fix default params for PY3 ConfigParser The default params for the python3 version of the compat ConfigParser are not correct. Code like foo = ConfigParser() fails because of this. Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/compat.py b/python/samba/compat.py index fdb2902a11f..d7603d3964e 100644 --- a/python/samba/compat.py +++ b/python/samba/compat.py @@ -84,7 +84,7 @@ if PY3: # alias import io StringIO = io.StringIO - def ConfigParser(defaults=None, dict_type=None, allow_no_value=None): + def ConfigParser(defaults=None, dict_type=dict, allow_no_value=False): from configparser import ConfigParser return ConfigParser(defaults, dict_type, allow_no_value, interpolation=None) else: