Fix python sockets after latest changes.

The issue was triggered by CCoreTranslationMixin being parent of
CZNCSock, and DisableReadLine wasn't found as attribute anymore.

Thanks to obiw4n for report.
This commit is contained in:
Alexey Sokolov
2018-03-27 22:22:56 +01:00
parent 5b3d2c1c19
commit 6eaa93f8da
2 changed files with 45 additions and 2 deletions

View File

@@ -676,8 +676,9 @@ def make_inherit(cl, parent, attr):
for x in parent.__dict__:
if not x.startswith('_') and x not in cl.__dict__:
setattr(cl, x, make_caller(parent, x, attr))
if '_s' in parent.__dict__:
parent = parent._s
if parent.__bases__:
# Multiple inheritance is not supported (yet?)
parent = parent.__bases__[0]
else:
break