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

Marc Hartmayer mhartmay at linux.ibm.com
Wed Jan 9 09:47:33 UTC 2019


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.

[…snip]

Kind regards / Beste Grüße
   Marc Hartmayer

IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Matthias Hartmann
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294





More information about the virt-tools-list mailing list