mirror of
https://github.com/samba-team/samba.git
synced 2025-12-18 08:23:51 +03:00
python compat: remove ConfigParser
Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
3c026ba492
commit
4a252f6e0f
@@ -71,11 +71,6 @@ if PY3:
|
||||
# compat functions
|
||||
from functools import cmp_to_key as cmp_to_key_fn
|
||||
|
||||
# alias
|
||||
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:
|
||||
raise NotImplementedError("Samba versions >= 4.11 do not support Python 2.x")
|
||||
|
||||
Reference in New Issue
Block a user