[PATCH] python3 issues

Andrew Bartlett abartlet at samba.org
Fri Feb 23 18:43:25 UTC 2018


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

-- 
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