[virt-tools-list] [PATCH virt-manager] cli: Fix __init_class__

Cole Robinson crobinso at redhat.com
Wed Jan 9 15:20:30 UTC 2019


On 01/09/2019 04:47 AM, Marc Hartmayer wrote:
> On Wed, Jan 09, 2019 at 10:24 AM +0100, Marc Hartmayer <mhartmay at linux.ibm.com> wrote:
>> For Python versions < 3.6 it's not possible for the metaclass to call
>> a method in the defined class that uses super() before it is done with
>> its __new__ and __init__. Therefore let's workaround this by using
>> hard coded class names instead of super() in __init_class__. See
>> https://stackoverflow.com/a/28605694 for more details.
>>
>> In addition, add missing __init_class__ calls to the __init_class__
>> implementations of ParserVsock and _ParserChar.
> 
> Must be:
> 
> In addition, add missing __init_class__ call to the __init_class__
> implementation of _ParserChar.
> 

Thanks, pushed with the tweaked commit message

- Cole




More information about the virt-tools-list mailing list