Py3 dsdb lock

github at samba.org github at samba.org
Thu Apr 12 08:26:09 UTC 2018


New comment by noelpower on Samba Github repository

https://github.com/samba-team/samba/pull/161#issuecomment-380720855
Comment:
thanks for the pointer to the guide (trying to wrap my head around it)
hadn't come across this one


On 10/04/18 19:53, Alexander Bokovoy wrote:
>
> 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]))
>          f.write("\n")
>
> I'd also recommend following a Conservative Porting Guide that was
> developed when porting many Python applications, including majority of
> Samba code: http://portingguide.readthedocs.io/en/latest/index.html
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/samba-team/samba/pull/161#issuecomment-380209368>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGIDVNeCkcGITnRYqG_eN5nqEERFrZk7ks5tnP-ugaJpZM4TOpHv>.
>




More information about the samba-technical mailing list