From 04aecf1372d30eb709d8de65152535ab66dcb74a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 00:55:45 +0200 Subject: Adding upstream version 7.0.16-dfsg. Signed-off-by: Daniel Baumann --- src/VBox/ValidationKit/common/pathutils.py | 0 src/VBox/ValidationKit/common/utils.py | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 src/VBox/ValidationKit/common/pathutils.py (limited to 'src/VBox/ValidationKit/common') diff --git a/src/VBox/ValidationKit/common/pathutils.py b/src/VBox/ValidationKit/common/pathutils.py old mode 100644 new mode 100755 diff --git a/src/VBox/ValidationKit/common/utils.py b/src/VBox/ValidationKit/common/utils.py index e8a50604..d392c9ee 100755 --- a/src/VBox/ValidationKit/common/utils.py +++ b/src/VBox/ValidationKit/common/utils.py @@ -39,7 +39,7 @@ terms and conditions of either the GPL or the CDDL or both. SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0 """ -__version__ = "$Revision: 155244 $" +__version__ = "$Revision: 162363 $" # Standard Python imports. @@ -301,7 +301,7 @@ def getHostOsVersion(): sVersion += ' / OS X ' + sOsxVersion + ' (' + getMacVersionName(sOsxVersion) + ')' elif sOs == 'win': - class OSVersionInfoEx(ctypes.Structure): + class OSVersionInfoEx(ctypes.Structure): # pylint: disable=used-before-assignment """ OSVERSIONEX """ kaFields = [ ('dwOSVersionInfoSize', ctypes.c_ulong), @@ -424,7 +424,7 @@ def openNoDenyDeleteNoInherit(sFile, sMode = 'r'): # Need to use CreateFile directly to open the file so we can feed it FILE_SHARE_DELETE. # pylint: disable=no-member,c-extension-no-member fAccess = 0; - fDisposition = win32file.OPEN_EXISTING; + fDisposition = win32file.OPEN_EXISTING; # pylint: disable=used-before-assignment if 'r' in sMode or '+' in sMode: fAccess |= win32file.GENERIC_READ; if 'a' in sMode: @@ -458,7 +458,7 @@ def openNoDenyDeleteNoInherit(sFile, sMode = 'r'): fOpen |= os.O_APPEND; if 'b' in sMode or 't' in sMode: fOpen |= os.O_TEXT; # pylint: disable=no-member - fdFile = msvcrt.open_osfhandle(hDetachedFile, fOpen); + fdFile = msvcrt.open_osfhandle(hDetachedFile, fOpen); # pylint: disable=used-before-assignment # Tell python to use this handle. oFile = os.fdopen(fdFile, sMode); @@ -1016,8 +1016,8 @@ def processExists(uPid): try: hProcess = win32api.OpenProcess(win32con.SYNCHRONIZE, # pylint: disable=no-member,c-extension-no-member False, uPid); - except pywintypes.error as oXcpt: # pylint: disable=no-member - if oXcpt.winerror == winerror.ERROR_ACCESS_DENIED: + except pywintypes.error as oXcpt: # pylint: disable=no-member,used-before-assignment + if oXcpt.winerror == winerror.ERROR_ACCESS_DENIED: # pylint: disable=used-before-assignment fRc = True; except: pass; -- cgit v1.2.3