VirtualBox

Changeset 65828 in vbox for trunk/src/VBox


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

python 3 fixes.

Location:
trunk/src/VBox
Files:
2 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:
  • trunk/src/VBox/ValidationKit/common/webutils.py

    r62484 r65828  
    168168            oDst.close();
    169169            oSrc.close();
    170         except Exception, oXcpt:
     170        except Exception as oXcpt:
    171171            fnError('Error downloading "%s" to "%s": %s' % (sUrlFile, sDstFile, oXcpt));
    172172            return False;
     
    177177        try:
    178178            utils.copyFileSimple(sSrcPath, sDstFile);
    179         except Exception, oXcpt:
     179        except Exception as oXcpt:
    180180            fnError('Error copying "%s" to "%s": %s' % (sSrcPath, sDstFile, oXcpt));
    181181            return False;
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