# HG changeset patch # User Marcin Kuzminski # Date 1341595816 -7200 # Node ID 79db9abad65753c4256de4cdeae538726357bc63 # Parent 9a99b574bb485e2b3abda2393b1d8977e113ccc1 I failed at import :] - use bytes() instead of b'' diff -r 9a99b574bb48 -r 79db9abad657 rhodecode/lib/subprocessio.py --- a/rhodecode/lib/subprocessio.py Fri Jul 06 19:05:50 2012 +0200 +++ b/rhodecode/lib/subprocessio.py Fri Jul 06 19:30:16 2012 +0200 @@ -22,7 +22,6 @@ along with git_http_backend.py Project. If not, see . ''' -from __future__ import unicode_literals import os import subprocess import threading @@ -40,7 +39,7 @@ super(StreamFeeder, self).__init__() self.daemon = True filelike = False - self.bytes = b'' + self.bytes = bytes() if type(source) in (type(''), bytes, bytearray): # string-like self.bytes = bytes(source) else: # can be either file pointer or file-like