예제 #1
0
 def write(self, s):
     if isinstance(s, str):
         _outputcapture.CaptureStderr(s)
     elif isinstance(s, unicode):
         _outputcapture.CaptureStderr(s.encode('utf8'))
예제 #2
0
 def write(self, s):
     if isinstance(s, str):
         _outputcapture.CaptureStderr(s)
     elif isinstance(s, six.text_type):
         _outputcapture.CaptureStderr(s.encode("utf8"))