[PATCH] ms_schema: fix python2.6 incompatibility
Bjoern Baumbach
bb at sernet.de
Thu Mar 15 17:44:23 UTC 2018
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?
Best regards,
Björn
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ms_schema-fix-python2.6-incompatibility.patch
Type: text/x-patch
Size: 987 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180315/31857465/0001-ms_schema-fix-python2.6-incompatibility.bin>
More information about the samba-technical
mailing list