VirtualBox

Ignore:
Timestamp:
Jun 11, 2019 11:58:28 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131247
Message:

ValKit: New pylint version - cleanup in progress.

Location:
trunk/src/VBox/ValidationKit/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/netutils.py

    r76553 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55"""
  • trunk/src/VBox/ValidationKit/common/utils.py

    r78472 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55"""
     
    320320    else:
    321321        try:
    322             from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=F0401
     322            from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=import-error
    323323        except:
    324324            # On windows, we can use the 'N' flag introduced in Visual C++ 7.0 or 7.1 with python 2.x.
     
    399399        if uPythonVer < ((3 << 16) | 4):
    400400            try:
    401                 from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=F0401
     401                from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=import-error
    402402            except:
    403403                pass;
     
    411411    """
    412412    try:
    413         sRet = os.readlink(sPath); # pylint: disable=E1101
     413        sRet = os.readlink(sPath); # pylint: disable=no-member
    414414    except:
    415415        return sXcptRet;
     
    583583        cbFreeSpace = oCTypeFreeSpace.value;
    584584    else:
    585         oStats = os.statvfs(sPath); # pylint: disable=E1101
     585        oStats = os.statvfs(sPath); # pylint: disable=no-member
    586586        cbFreeSpace = long(oStats.f_frsize) * oStats.f_bfree;
    587587
     
    685685    fIsRoot = True;
    686686    try:
    687         fIsRoot = os.getuid() == 0; # pylint: disable=E1101
     687        fIsRoot = os.getuid() == 0; # pylint: disable=no-member
    688688    except:
    689689        pass;
     
    797797    else:
    798798        try:
    799             os.kill(uPid, signal.SIGUSR1); # pylint: disable=E1101
     799            os.kill(uPid, signal.SIGUSR1); # pylint: disable=no-member
    800800            fRc = True;
    801801        except:
     
    840840    else:
    841841        try:
    842             os.kill(uPid, signal.SIGKILL); # pylint: disable=E1101
     842            os.kill(uPid, signal.SIGKILL); # pylint: disable=no-member
    843843            fRc = True;
    844844        except:
     
    898898    if sys.platform == 'win32':
    899899        try:
    900             from win32com.client import GetObject; # pylint: disable=F0401
     900            from win32com.client import GetObject; # pylint: disable=import-error
    901901            oWmi = GetObject('winmgmts:');
    902902            aoProcesses = oWmi.InstancesOf('Win32_Process');
     
    10921092
    10931093
    1094 def processListAll(): # pylint: disable=R0914
     1094def processListAll():
    10951095    """
    10961096    Return a list of ProcessInfo objects for all the processes in the system
     
    11011101    sOs = getHostOs();
    11021102    if sOs == 'win':
    1103         from win32com.client import GetObject; # pylint: disable=F0401
     1103        from win32com.client import GetObject; # pylint: disable=import-error
    11041104        oWmi = GetObject('winmgmts:');
    11051105        aoProcesses = oWmi.InstancesOf('Win32_Process');
     
    21382138#
    21392139
    2140 # pylint: disable=C0111
     2140# pylint: disable=missing-docstring
    21412141# pylint: disable=undefined-variable
    21422142class BuildCategoryDataTestCase(unittest.TestCase):
  • trunk/src/VBox/ValidationKit/common/webutils.py

    r76553 r79087  
    190190#
    191191
    192 # pylint: disable=C0111
     192# pylint: disable=missing-docstring
    193193class CommonUtilsTestCase(unittest.TestCase):
    194194    def testHasSchema(self):
Note: See TracChangeset for help on using the changeset viewer.

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