From 5c02e1f0ca965514a5f1bada0ed2e4a90de7c7d5 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 20 Dec 2016 09:35:20 -0500 Subject: [PATCH] Fix python3 issues with devstack use six.b() as write() params have changed: https://docs.python.org/2/library/stdtypes.html#file.write https://docs.python.org/3/library/os.html#os.write Change-Id: I276809f26a7a6fe6cc05203dc44fe30128e6090c --- neutron/agent/ovsdb/native/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/agent/ovsdb/native/connection.py b/neutron/agent/ovsdb/native/connection.py index cd9494b5ba6..9e319f71d4e 100644 --- a/neutron/agent/ovsdb/native/connection.py +++ b/neutron/agent/ovsdb/native/connection.py @@ -18,6 +18,7 @@ import traceback from ovs.db import idl from ovs import poller +import six from six.moves import queue as Queue import tenacity @@ -44,7 +45,7 @@ class TransactionQueue(Queue.Queue, object): def put(self, *args, **kwargs): super(TransactionQueue, self).put(*args, **kwargs) - self.alertout.write('X') + self.alertout.write(six.b('X')) self.alertout.flush() @property