mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user