HomeSoftware Heritage

api: kind of fix for the SWHRemoteAPI's contructor

Description

api: kind of fix for the SWHRemoteAPI's contructor

  • ensure we do accept kwargs so any super().init(kwargs) from an unexpected MRO path in an indecent maze of multi-inheritance will not crash
  • do not call super().init(); it is either useless (most probably, super() is object in this context) or silently ignore passed kwargs that super() (when it's not object) may have been able to understand...

Long story short, kwargs handling in multi-inheritance init methods is
a mess.

Details

Provenance
douarddaAuthored on Mar 4 2019, 6:24 PM
douarddaPushed on Mar 19 2019, 10:13 AM
Differential Revision
D1260: api: kind of fix for the SWHRemoteAPI's contructor
Parents
rDCORE5299aa7514cb: api: factorize SWHRemoteAPI.(get|post)_stream methods
Branches
Unknown
Tags
Unknown
Build Status
Buildable 4705
Build 6267: test-and-build