[PATCH] ms_schema: fix python2.6 incompatibility
Andrew Bartlett
abartlet at samba.org
Thu Mar 15 17:49:48 UTC 2018
On Thu, 2018-03-15 at 18:44 +0100, Bjoern Baumbach via samba-technical
wrote:
> Hi!
>
> There is a incompatibility with Python 2.6 in ms_schema.py.
> Please find a patch attached.
>
> The original code work with Python 2.7:
>
> > > > set(['dn', 'changetype', 'objectcategory'])
>
> set(['dn', 'changetype', 'objectcategory'])
> > > > {'dn', 'changetype', 'objectcategory'}
>
> set(['dn', 'changetype', 'objectcategory'])
>
> but not 2.6:
>
> > > > set(['dn', 'changetype', 'objectcategory'])
>
> set(['dn', 'changetype', 'objectcategory'])
> > > > {'dn', 'changetype', 'objectcategory'}
>
> File "<stdin>", line 1
> {'dn', 'changetype', 'objectcategory'}
> ^
> SyntaxError: invalid syntax
>
> I assume we need a bug report for 4.8?
Yes, please file a bug.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical
mailing list