Show More
@@ -22,7 +22,6 b' You should have received a copy of the G' | |||||
22 | along with git_http_backend.py Project. |
|
22 | along with git_http_backend.py Project. | |
23 | If not, see <http://www.gnu.org/licenses/>. |
|
23 | If not, see <http://www.gnu.org/licenses/>. | |
24 | ''' |
|
24 | ''' | |
25 | from __future__ import unicode_literals |
|
|||
26 | import os |
|
25 | import os | |
27 | import subprocess |
|
26 | import subprocess | |
28 | import threading |
|
27 | import threading | |
@@ -40,7 +39,7 b' class StreamFeeder(threading.Thread):' | |||||
40 | super(StreamFeeder, self).__init__() |
|
39 | super(StreamFeeder, self).__init__() | |
41 | self.daemon = True |
|
40 | self.daemon = True | |
42 | filelike = False |
|
41 | filelike = False | |
43 |
self.bytes = b |
|
42 | self.bytes = bytes() | |
44 | if type(source) in (type(''), bytes, bytearray): # string-like |
|
43 | if type(source) in (type(''), bytes, bytearray): # string-like | |
45 | self.bytes = bytes(source) |
|
44 | self.bytes = bytes(source) | |
46 | else: # can be either file pointer or file-like |
|
45 | else: # can be either file pointer or file-like |
General Comments 0
You need to be logged in to leave comments.
Login now