File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/DIRAC/Core/DISET/private Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
import threading
13
13
14
14
import six
15
- from six import StringIO
15
+ from six import StringIO , BytesIO
16
16
17
17
from DIRAC .Core .Utilities .ReturnValues import S_OK , S_ERROR
18
18
from DIRAC .FrameworkSystem .Client .Logger import gLogger
@@ -145,11 +145,11 @@ def errorInTransmission(self):
145
145
def networkToString (self , maxFileSize = 0 ):
146
146
"""Receive the input from a DISET client and return it as a string"""
147
147
148
- stringIO = StringIO ()
149
- result = self .networkToDataSink (stringIO , maxFileSize = maxFileSize )
148
+ bytesIO = BytesIO ()
149
+ result = self .networkToDataSink (bytesIO , maxFileSize = maxFileSize )
150
150
if not result ["OK" ]:
151
151
return result
152
- return S_OK (stringIO .getvalue ())
152
+ return S_OK (bytesIO .getvalue ())
153
153
154
154
def networkToFD (self , iFD , maxFileSize = 0 ):
155
155
dataSink = os .fdopen (iFD , "wb" )
You can’t perform that action at this time.
0 commit comments