summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-04-05 09:25:15 +1300
committerKarolin Seeger <kseeger@samba.org>2019-05-17 07:18:27 +0000
commitbba9f065003b0688836688a5a40dfc587c6f72fc (patch)
treeb6db4f8141e841ba53d7fb4f1aefd7036edff26f /python
parent03a91bf0a15b853ab31091185656b90d086c5687 (diff)
downloadsamba-bba9f065003b0688836688a5a40dfc587c6f72fc.tar.gz
pytests/dns: use 2.6 compatible syntax
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13886 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/dns.py2
1 files changed, 1 insertions, 1 deletions
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)