> On 13 Oct 2022, at 16:00, Andrew Cooper <andrew.coop...@citrix.com> wrote:
> 
> On 13/10/2022 14:05, Anthony Perard wrote:
>> diff --git a/tools/golang/xenlight/gengotypes.py 
>> b/tools/golang/xenlight/gengotypes.py
>> index ac1cf060dd..ff4c2ad216 100644
>> --- a/tools/golang/xenlight/gengotypes.py
>> +++ b/tools/golang/xenlight/gengotypes.py
>> @@ -723,7 +723,13 @@ def xenlight_golang_fmt_name(name, exported = True):
>>     return words[0] + ''.join(x.title() for x in words[1:])
>> 
>> if __name__ == '__main__':
>> +    if len(sys.argv) != 4:
>> +        print("Usage: gengotypes.py <idl> <types.gen.go> <helpers.gen.go>", 
>> file=sys.stderr)
> 
> This breaks with Py2.7.  Needs a
> 
> from __future__ import print_function
> 
> inserting at the top.

Out of curiosity, did you notice this by inspection, or  because you 
specifically tested Python 2.7, or because a system you were using is still 
actually using Python 2.7?

 -George


Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to