From 06f814b31e60189a38c3d300b64df12ce2e41026 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 5 Apr 2019 09:25:15 +1300 Subject: [PATCH] pytests/dns: use 2.6 compatible syntax BUG: https://bugzilla.samba.org/show_bug.cgi?id=13886 Signed-off-by: Douglas Bagnall --- python/samba/tests/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/tests/dns.py b/python/samba/tests/dns.py index 515fd92a55e..1681b2580b2 100644 --- a/python/samba/tests/dns.py +++ b/python/samba/tests/dns.py @@ -1181,7 +1181,7 @@ class TestZones(DNSTest): 0x91: "MASTER_SERVERS_DA", 0x92: "NS_SERVERS_DA", 0x100: "NODE_DBFLAGS"} - return {zone_prop_ids[p.id].lower(): p.data for p in props} + return dict((zone_prop_ids[p.id].lower(), p.data) for p in props) def set_aging(self, enable=False): self.create_zone(self.zone, aging_enabled=enable) -- 2.17.1