VirtualBox

Ignore:
Timestamp:
Mar 7, 2024 10:22:33 AM (9 months ago)
Author:
vboxsync
Message:

ValidationKit: Suppress pylint warnings which appear with Python 3.12, bugref:10617.

File:
1 edited

Legend:

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

    r100760 r103724  
    323323
    324324    elif sOs == 'win':
    325         class OSVersionInfoEx(ctypes.Structure):
     325        class OSVersionInfoEx(ctypes.Structure): # pylint: disable=used-before-assignment
    326326            """ OSVERSIONEX """
    327327            kaFields = [
     
    446446        # pylint: disable=no-member,c-extension-no-member
    447447        fAccess = 0;
    448         fDisposition = win32file.OPEN_EXISTING;
     448        fDisposition = win32file.OPEN_EXISTING; # pylint: disable=used-before-assignment
    449449        if 'r' in sMode or '+' in sMode:
    450450            fAccess |= win32file.GENERIC_READ;
     
    480480        if 'b' in sMode or 't' in sMode:
    481481            fOpen |= os.O_TEXT;                                         # pylint: disable=no-member
    482         fdFile = msvcrt.open_osfhandle(hDetachedFile, fOpen);
     482        fdFile = msvcrt.open_osfhandle(hDetachedFile, fOpen);           # pylint: disable=used-before-assignment
    483483
    484484        # Tell python to use this handle.
     
    10381038            hProcess = win32api.OpenProcess(win32con.SYNCHRONIZE,           # pylint: disable=no-member,c-extension-no-member
    10391039                                            False, uPid);
    1040         except pywintypes.error as oXcpt:                                   # pylint: disable=no-member
    1041             if oXcpt.winerror == winerror.ERROR_ACCESS_DENIED:
     1040        except pywintypes.error as oXcpt:                                   # pylint: disable=no-member,used-before-assignment
     1041            if oXcpt.winerror == winerror.ERROR_ACCESS_DENIED:              # pylint: disable=used-before-assignment
    10421042                fRc = True;
    10431043        except:
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