VirtualBox

Changeset 65828 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 21, 2017 9:55:39 AM (8 years ago)
Author:
vboxsync
Message:

python 3 fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllInstructionsPython.py

    r65825 r65828  
    199199
    200200        # 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)]);
    202202
    203203        return (fSignExtend, abValue);
     
    704704        """
    705705        if self.fDebug:
    706             print 'debug: %s' % (sMessage,);
     706            print('debug: %s' % (sMessage,));
     707
    707708
    708709    def addInstruction(self, iLine = None):
     
    19031904        cErrors = SimpleParser(sSrcFile, asLines, sDefaultMap).parse();
    19041905    except ParserException as oXcpt:
    1905         print str(oXcpt);
     1906        print(str(oXcpt));
    19061907        raise;
    19071908    except Exception as oXcpt:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette