From: Noel Power Date: Mon, 15 Oct 2018 15:04:25 +0000 (+0100) Subject: python/samba/gp_parse: PY3 fdeploy_sids needs to use key method for sort X-Git-Tag: tdb-1.3.17~1260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412002629eb849638d929668f96d5e2dab50f1cc;p=thirdparty%2Fsamba.git python/samba/gp_parse: PY3 fdeploy_sids needs to use key method for sort Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/gp_parse/gp_ini.py b/python/samba/gp_parse/gp_ini.py index 6c3d9391d63..196175e1651 100644 --- a/python/samba/gp_parse/gp_ini.py +++ b/python/samba/gp_parse/gp_ini.py @@ -199,7 +199,7 @@ class GPFDeploy1IniParser(GPIniParser): def custom_entities(self, root, global_entities): entities = [] fdeploy_sids = root.findall('.//Section[@fdeploy_SID]') - fdeploy_sids.sort() + fdeploy_sids.sort(key = lambda x: x.tag) for sid in fdeploy_sids: old_attrib = sid.attrib['fdeploy_SID']