Change in vdsm[master]: asyncore: adding __impl attribute
piotr.kliczewski at gmail.com
piotr.kliczewski at gmail.com
Sat Mar 21 19:37:28 UTC 2015
Piotr Kliczewski has uploaded a new change for review.
Change subject: asyncore: adding __impl attribute
......................................................................
asyncore: adding __impl attribute
Change-Id: I16f4a9f98a1d8ca490db3e29d6becedb4ac52ea8
Signed-off-by: pkliczewski <piotr.kliczewski at gmail.com>
---
M lib/yajsonrpc/betterAsyncore.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/00/39000/1
diff --git a/lib/yajsonrpc/betterAsyncore.py b/lib/yajsonrpc/betterAsyncore.py
index 7101768..1ce4fbc 100644
--- a/lib/yajsonrpc/betterAsyncore.py
+++ b/lib/yajsonrpc/betterAsyncore.py
@@ -26,6 +26,9 @@
class Dispatcher(asyncore.dispatcher):
def __init__(self, impl=None, sock=None, map=None):
+ # This has to be done before the super initialization because
+ # dispatcher implements __getattr__.
+ self.__impl = None
asyncore.dispatcher.__init__(self, sock=sock, map=map)
if impl is not None:
self.switch_implementation(impl)
--
To view, visit https://gerrit.ovirt.org/39000
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I16f4a9f98a1d8ca490db3e29d6becedb4ac52ea8
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski at gmail.com>
More information about the vdsm-patches
mailing list