mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
Remove Python 2 leftovers.
Fixes: 1ca0323e7c
("Require Python 3 and remove support for Python 2.")
Reported at: https://bugzilla.redhat.com/show_bug.cgi?id=1949875
Signed-off-by: Rosemarie O'Riorden <roriorde@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
ad256c3140
commit
bd90524550
@@ -18,22 +18,14 @@ rpcserver is an XML RPC server that allows RPC client to initiate tests
|
||||
|
||||
import sys
|
||||
|
||||
import exceptions
|
||||
|
||||
import xmlrpc.client
|
||||
|
||||
import tcp
|
||||
|
||||
from twisted.internet import reactor
|
||||
from twisted.internet.error import CannotListenError
|
||||
from twisted.web import server
|
||||
from twisted.web import xmlrpc
|
||||
|
||||
import udp
|
||||
|
||||
import util
|
||||
|
||||
import vswitch
|
||||
from . import tcp, udp, util, vswitch
|
||||
|
||||
|
||||
class TestArena(xmlrpc.XMLRPC):
|
||||
@@ -210,7 +202,7 @@ class TestArena(xmlrpc.XMLRPC):
|
||||
(_, port) = self.__get_handle_resources(handle)
|
||||
port.loseConnection()
|
||||
self.__delete_handle(handle)
|
||||
except exceptions.KeyError:
|
||||
except KeyError:
|
||||
return -1
|
||||
return 0
|
||||
|
||||
@@ -222,7 +214,7 @@ class TestArena(xmlrpc.XMLRPC):
|
||||
(_, connector) = self.__get_handle_resources(handle)
|
||||
connector.disconnect()
|
||||
self.__delete_handle(handle)
|
||||
except exceptions.KeyError:
|
||||
except KeyError:
|
||||
return -1
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user