Browse Source

HUE-556. LifoQueue thrift_util.py doesn't work on Centos5's python 2.4

bc Wong 14 năm trước cách đây
mục cha
commit
630e395110
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      desktop/core/src/desktop/lib/thrift_util.py

+ 1 - 0
desktop/core/src/desktop/lib/thrift_util.py

@@ -53,6 +53,7 @@ class LifoQueue(Queue.Queue):
 
     def _init(self, maxsize):
         self.queue = []
+        self.maxsize = maxsize
 
     def _qsize(self, len=len):
         return len(self.queue)