Changeset 65828 in vbox for trunk/src/VBox
- Timestamp:
- Feb 21, 2017 9:55:39 AM (8 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllInstructionsPython.py
r65825 r65828 199 199 200 200 # Invert and convert to bytearray and return it. 201 abValue = bytearray([int(sHex[offHex - 2 : offHex], 16) for offHex in xrange(len(sHex), 0, -2)]);201 abValue = bytearray([int(sHex[offHex - 2 : offHex], 16) for offHex in range(len(sHex), 0, -2)]); 202 202 203 203 return (fSignExtend, abValue); … … 704 704 """ 705 705 if self.fDebug: 706 print 'debug: %s' % (sMessage,); 706 print('debug: %s' % (sMessage,)); 707 707 708 708 709 def addInstruction(self, iLine = None): … … 1903 1904 cErrors = SimpleParser(sSrcFile, asLines, sDefaultMap).parse(); 1904 1905 except ParserException as oXcpt: 1905 print str(oXcpt);1906 print(str(oXcpt)); 1906 1907 raise; 1907 1908 except Exception as oXcpt: -
trunk/src/VBox/ValidationKit/common/webutils.py
r62484 r65828 168 168 oDst.close(); 169 169 oSrc.close(); 170 except Exception ,oXcpt:170 except Exception as oXcpt: 171 171 fnError('Error downloading "%s" to "%s": %s' % (sUrlFile, sDstFile, oXcpt)); 172 172 return False; … … 177 177 try: 178 178 utils.copyFileSimple(sSrcPath, sDstFile); 179 except Exception ,oXcpt:179 except Exception as oXcpt: 180 180 fnError('Error copying "%s" to "%s": %s' % (sSrcPath, sDstFile, oXcpt)); 181 181 return False;
Note:
See TracChangeset
for help on using the changeset viewer.