VirtualBox

Ignore:
Timestamp:
Nov 24, 2022 11:46:15 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit: Fixed lots of warnings, based on pylint 2.12.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py

    r96407 r97673  
    145145        self._fDbgSqlTrace      = False;
    146146        self._fDbgSqlExplain    = False;
    147         self._dDbgParams        = dict();
     147        self._dDbgParams        = {};
    148148        for sKey, sValue in oSrvGlue.getParameters().items():
    149149            if sKey in self.kasDbgParams:
     
    322322        # Load the template.
    323323        #
    324         with open(os.path.join(self._oSrvGlue.pathTmWebUI(), self._sTemplate)) as oFile:
     324        with open(os.path.join(self._oSrvGlue.pathTmWebUI(), self._sTemplate)) as oFile: # pylint: disable=unspecified-encoding
    325325            sTmpl = oFile.read();
    326326
     
    592592            aoListOfTestCases.append(oListEntryTestCase)
    593593
    594         if aoListOfTestCases == []:
     594        if not aoListOfTestCases:
    595595            if asDefaults is None:
    596596                raise WuiException('%s is missing parameters: "%s"' % (self._sAction, sName))
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