VirtualBox

Changeset 61828 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jun 22, 2016 6:50:19 PM (8 years ago)
Author:
vboxsync
Message:

vbox.py,Config.kmk: linted for pylint v1.5.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r61787 r61828  
    226226                oAttr = getattr(oNativeComErrorClass, sAttr);
    227227                setattr(ComError, sAttr, oAttr);
    228                 if type(oAttr) is int:
     228                if isinstance(oAttr, int):
    229229                    ComError.dDecimalToConst[oAttr] = sAttr;
    230230
     
    652652        reporter.log2('onShowWindow/%s' % (self.sName));
    653653        return None;
    654 
    655654    # pylint: enable=C0111,R0913,W0613
    656655
     
    838837            return True;
    839838
    840         # Try dev build first since that's where I'll be using it first..
    841         if True:
     839        # Try dev build first since that's where I'll be using it first...
     840        if True is True:
    842841            try:
    843842                self.oBuild = Build(self, None);
     
    910909        #
    911910        sCandidate = None;
    912         for i in range(len(asCandidates)):
     911        for i, _ in enumerate(asCandidates):
    913912            sCandidate = asCandidates[i];
    914913            if os.path.isfile(os.path.join(sCandidate, 'VBoxValidationKit.iso')):
     
    15541553                raise base.InvalidOption('The "--vrdp-base-port" takes an argument');
    15551554            try:    self.uVrdpBasePort = int(asArgs[iArg]);
    1556             except: raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not a valid integer', asArgs[iArg]);
     1555            except: raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not a valid integer' % (asArgs[iArg],));
    15571556            if self.uVrdpBasePort <= 0 or self.uVrdpBasePort >= 65530:
    1558                 raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not in the valid range (1..65530)', asArgs[iArg]);
     1557                raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not in the valid range (1..65530)'
     1558                                         % (asArgs[iArg],));
    15591559        elif asArgs[iArg] == '--vbox-default-bridged-nic':
    15601560            iArg += 1;
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