1
0
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:
David Mulder
2020-08-20 15:51:47 -06:00
committed by Andrew Bartlett
parent 3c026ba492
commit 4a252f6e0f
3 changed files with 10 additions and 12 deletions

View File

@@ -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")