Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131247
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py
r76553 r79087 33 33 import re; 34 34 import os; 35 import string; # pylint: disable= W040235 import string; # pylint: disable=deprecated-module 36 36 import sys; 37 37 import uuid; … … 53 53 # Python 3 hacks: 54 54 if sys.version_info[0] >= 3: 55 long = int; # pylint: disable= W0622,C010355 long = int; # pylint: disable=redefined-builtin,invalid-name 56 56 57 57 … … 60 60 Exception class for TestBoxController. 61 61 """ 62 pass; 63 64 65 class TestBoxController(object): # pylint: disable= R090362 pass; # pylint: disable=unnecessary-pass 63 64 65 class TestBoxController(object): # pylint: disable=too-few-public-methods 66 66 """ 67 67 TestBox Controller class. … … 190 190 """ 191 191 sValue = self._getStringParam(sName, [ 'True', 'true', '1', 'False', 'false', '0'], sDefValue = str(fDefValue)); 192 return sValue == 'True' or sValue == 'true' or sValue == '1';192 return sValue in ('True', 'true', '1',); 193 193 194 194 def _getIntParam(self, sName, iMin = None, iMax = None): … … 346 346 return fSizeOk; 347 347 348 def _actionSignOn(self): # pylint: disable= R0914348 def _actionSignOn(self): # pylint: disable=too-many-locals 349 349 """ Implement sign-on """ 350 350 … … 401 401 cPctScratchDiff = 100; 402 402 403 # pylint: disable= R0916403 # pylint: disable=too-many-boolean-expressions 404 404 if self._sTestBoxAddr != oTestBox.ip \ 405 405 or sOs != oTestBox.sOs \ … … 738 738 739 739 abBuf = oSrcFile.read(cbToRead); 740 oDstFile.write(abBuf); # pylint: disable= E1103740 oDstFile.write(abBuf); # pylint: disable=maybe-no-member 741 741 del abBuf; 742 742 743 oDstFile.close(); # pylint: disable= E1103743 oDstFile.close(); # pylint: disable=maybe-no-member 744 744 745 745 # Done.
Note:
See TracChangeset
for help on using the changeset viewer.