comparison rhodecode/lib/subprocessio.py @ 2729:e9e7c40b4f1a beta

added deque with maxlen for py2.5 compat
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 Aug 2012 12:09:49 +0200
parents 1f4d4b8d72f5
children 7949bc80b3b1
comparison
equal deleted inserted replaced
2728:6341084b7a2f 2729:e9e7c40b4f1a
23 If not, see <http://www.gnu.org/licenses/>. 23 If not, see <http://www.gnu.org/licenses/>.
24 ''' 24 '''
25 import os 25 import os
26 import subprocess 26 import subprocess
27 import threading 27 import threading
28 from collections import deque 28 from rhodecode.lib.compat import deque
29 29
30 30
31 class StreamFeeder(threading.Thread): 31 class StreamFeeder(threading.Thread):
32 """ 32 """
33 Normal writing into pipe-like is blocking once the buffer is filled. 33 Normal writing into pipe-like is blocking once the buffer is filled.