VirtualBox

Changeset 87673 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Feb 10, 2021 10:14:50 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142715
Message:

Main: bugref:9224: Testcase: fixed pylint issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageRawDrive1.py

    r87672 r87673  
    980980                except: pass;
    981981                asLines = aBuf.splitlines();
    982                 oRegExp = re.compile("^\s*([^:]+)\s*:\s*(.+)\s*$");
    983 
    984                 class ParseState:
     982                oRegExp = re.compile(r'^\s*([^:]+)\s*:\s*(.+)\s*$');
     983
     984                # pylint: disable=no-init
     985                class ParseState(object):
    985986                    Nothing   = 0;
    986987                    Drive     = 1;
     
    10201021                            sPart = sPart.replace('$(' + str(idxPartition + 1) + ')',
    10211022                                                  str(asHddData['Partitions']['PartitionNumbers'][idxPartition]));
    1022                             if (sLine.strip() == sPart):
     1023                            if sLine.strip() == sPart:
    10231024                                idxPartition += 1;
    10241025                        continue;
     
    10451046            return reporter.error("VMDK descriptor has invalid format");
    10461047
    1047         class DescriptorParseState:
     1048        # pylint: disable=no-init
     1049        class DescriptorParseState(object):
    10481050            Header   = 1,
    10491051            Extent   = 2,
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