# HG changeset patch # User Marcin Kuzminski # Date 2012-07-06 19:30:16 # Node ID 79db9abad65753c4256de4cdeae538726357bc63 # Parent 9a99b574bb485e2b3abda2393b1d8977e113ccc1 I failed at import :] - use bytes() instead of b'' diff --git a/rhodecode/lib/subprocessio.py b/rhodecode/lib/subprocessio.py --- a/rhodecode/lib/subprocessio.py +++ b/rhodecode/lib/subprocessio.py @@ -22,7 +22,6 @@ You should have received a copy of the G 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 @@ class StreamFeeder(threading.Thread): 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