Mercurial > kallithea
changeset 2565:79db9abad657 beta
I failed at import :]
- use bytes() instead of b''
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 06 Jul 2012 19:30:16 +0200 |
parents | 9a99b574bb48 |
children | d097d4bb0437 |
files | rhodecode/lib/subprocessio.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <http://www.gnu.org/licenses/>. ''' -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