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 committed 2018-03-27 22:26:05 +01:00
1 parent 5b3d2c1c19
commit 6eaa93f8da
2 files changed
+45 -2

No files matched your search

+3 -2
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