Changeset 84421 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 20, 2020 4:50:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/reporter.py
r82968 r84421 1212 1212 def write(self, sText): 1213 1213 """file.write""" 1214 if isinstance(sText, array.array): 1215 try: 1216 sText = sText.tostring(); 1217 except: 1218 pass; 1214 if not utils.isString(sText): 1215 if isinstance(sText, array.array): 1216 try: 1217 sText = sText.tostring(); 1218 except: 1219 pass; 1220 if hasattr(sText, 'decode'): 1221 try: 1222 sText = sText.decode('utf-8', 'ignore'); 1223 except: 1224 pass; 1219 1225 g_oLock.acquire(); 1220 1226 try: … … 1271 1277 try: sText = sText.tostring(); 1272 1278 except: pass; 1273 if not utils.isString(sText) andhasattr(sText, 'decode'):1279 if hasattr(sText, 'decode'): 1274 1280 try: sText = sText.decode('utf-8', 'ignore'); 1275 1281 except: pass;
Note:
See TracChangeset
for help on using the changeset viewer.