[PATCH] python3 issues

Noel Power nopower at suse.com
Mon Feb 26 14:44:52 UTC 2018


On 23/02/18 18:43, Andrew Bartlett wrote:
> On Fri, 2018-02-23 at 16:20 +0000, Noel Power via samba-technical
> wrote:
>> Hi,
>>
>> Please find some patches for some c-lib modules recently converted. In
>> both cases string parameters are expected in python2 and python3 where I
>> believe in python3 these api(s) need to accept 'bytes'. Please consider
>> pushing these
> Can you fix up the error message to be more clear in this case?  Could
> you add a #define that says "string" or "bytes" depending on the PY3
> ifdef?
>
> Thanks,
>
> Andrew Bartlett
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s4-librpc-GUID-should-take-a-string-in-python2-and-b.patch
Type: text/x-patch
Size: 1603 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180226/37565610/0002-s4-librpc-GUID-should-take-a-string-in-python2-and-b.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-dsdb-python3-api-should-take-bytes.patch
Type: text/x-patch
Size: 1772 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180226/37565610/0001-s4-dsdb-python3-api-should-take-bytes.bin>


More information about the samba-technical mailing list