summaryrefslogtreecommitdiffstats
path: root/src/VBox/ValidationKit/common/utils.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 22:55:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 22:55:46 +0000
commit96647a898d62d699808316238dfb933d960413f2 (patch)
tree0138491ada40b7b3fcb80d4b219fa7922ae8f512 /src/VBox/ValidationKit/common/utils.py
parentAdding debian version 7.0.14-dfsg-4. (diff)
downloadvirtualbox-96647a898d62d699808316238dfb933d960413f2.tar.xz
virtualbox-96647a898d62d699808316238dfb933d960413f2.zip
Merging upstream version 7.0.16-dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xsrc/VBox/ValidationKit/common/utils.py12
1 files changed, 6 insertions, 6 deletions
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;