commit 9c51f7745c508866f4e0f0e4cce36356e234009a Author: Jan Tluka jtluka@redhat.com Date: Tue Mar 3 12:49:37 2015 +0100
ConnectionHandler: import IPRSocket directly to fix isinstance check
Recent change in pyroute2 introduced partial proxy to postpone the import, on the downside this broke isinstance() check within LNST that did comparison of unresolved IPRSocket object. More details in https://github.com/svinota/pyroute2/issues/109
To do the check we can import the class directly from the lower pyroute2 module as suggested by Pete Saveliev.
Signed-off-by: Jan Tluka jtluka@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Common/ConnectionHandler.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lnst/Common/ConnectionHandler.py b/lnst/Common/ConnectionHandler.py index 36349dc..8beaafc 100644 --- a/lnst/Common/ConnectionHandler.py +++ b/lnst/Common/ConnectionHandler.py @@ -15,7 +15,7 @@ import select import cPickle import socket from _multiprocessing import Connection -from pyroute2 import IPRSocket +from pyroute2.netlink.rtnl import IPRSocket
def send_data(s, data): try:
lnst-developers@lists.fedorahosted.org