summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-11-06 19:47:14 +0000
committerNoel Power <npower@samba.org>2018-12-10 10:38:22 +0100
commit0cd885c1ec71c4f9cbed96328cd82de27cdc091f (patch)
tree6914de9293150c677e68a1cdd02683b82827c617 /python
parent55a381716677adbd4f526769b77d9840b87a4e99 (diff)
downloadsamba-0cd885c1ec71c4f9cbed96328cd82de27cdc091f.tar.gz
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 <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/compat.py2
1 files changed, 1 insertions, 1 deletions
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: