VirtualBox

Ignore:
Timestamp:
Feb 20, 2023 3:05:40 PM (22 months ago)
Author:
vboxsync
Message:

ValKit: Pylint 2.16.2 adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/base.py

    r98103 r98655  
    247247        elif isinstance(oValue, list) and oValue and isinstance(oValue[0], ModelDataBase):
    248248            oValue = copy.copy(oValue);
    249             for i, _ in enumerate(oValue):
    250                 assert isinstance(oValue[i], ModelDataBase);
    251                 oValue[i] = copy.copy(oValue[i]);
     249            for i, oSubValue in enumerate(oValue):
     250                assert isinstance(oSubValue, ModelDataBase);
     251                oValue[i] = copy.copy(oSubValue);
    252252                oValue[i].convertFromParamNull();
    253253
     
    283283        elif isinstance(oValue, list) and oValue and isinstance(oValue[0], ModelDataBase):
    284284            oValue = copy.copy(oValue);
    285             for i, _ in enumerate(oValue):
    286                 assert isinstance(oValue[i], ModelDataBase);
    287                 oValue[i] = copy.copy(oValue[i]);
     285            for i, oSubValue in enumerate(oValue):
     286                assert isinstance(oSubValue, ModelDataBase);
     287                oValue[i] = copy.copy(oSubValue);
    288288                oValue[i].convertToParamNull();
    289289
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