Py3 dsdb lock

github at github at
Tue Apr 10 18:53:32 UTC 2018

New comment by abbra on Samba Github repository
six is essential but 'future' can be omitted. In this case you can replace future.iteritems by a native key iteration which will work in both py2 and py3:
-        for key, val in global_settings.iteritems():
+        for key in global_settings:
             f.write("\t%s = %s\n" % (key, global_settings[key]))
I'd also recommend following a Conservative Porting Guide that was developed when porting many Python applications, including majority of Samba code:

More information about the samba-technical mailing list