[gpgme] python3.4 codegen of gpg/gpgme.py is corrupted

Alon Bar-Lev alon.barlev at gmail.com
Wed Mar 29 11:38:59 CEST 2017


On 29 March 2017 at 12:36, Justus Winter <justus at g10code.com> wrote:
> Alon Bar-Lev <alon.barlev at gmail.com> writes:
>
>> Hi,
>>
>> When building using python2.7 gpg/gpgme.py is generated ok.
>>
>> When building using python3.4 it is corrupted, examples:
>> ---
>> def gpgme_err_make(source: 'gpgme_err_source_t', code:
>> 'gpgme_err_code_t') -> "gpgme_error_t":
>>     """gpgme_err_make(source, code) -> gpgme_error_t"""
>>     return _gpgme.gpgme_err_make(source, code)
>>
>> def gpgme_error(code: 'gpgme_err_code_t') -> "gpgme_error_t":
>>     """gpgme_error(code) -> gpgme_error_t"""
>>     return _gpgme.gpgme_error(code)
>>
>> def gpgme_err_code(err: 'gpgme_error_t') -> "gpgme_err_code_t":
>>     """gpgme_err_code(err) -> gpgme_err_code_t"""
>>     return _gpgme.gpgme_err_code(err)
>> ---
>>
>> Please advise.
>
> What makes you say the code is corrupted?  I assume that your MUA
> introduced linebreaks, but otherwise this looks ok.
>

I do not think:
"""
def gpgme_err_code(err: 'gpgme_error_t') -> "gpgme_err_code_t"
"""
Is valid python, also python does not think so... :)

Alon



More information about the Gnupg-devel mailing list