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
This commit is contained in:
parent
14079d0f21
commit
5c02e1f0ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user