VirtualBox

Ignore:
Timestamp:
Jan 21, 2018 4:18:58 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit: Python 3 and pylint 1.8.1 adjustments/fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r70611 r70660  
    14501450
    14511451            # If not being used, we can safely uninitialize COM.
    1452             if cIfs == 0 and cObjs == 0 and cVBoxMgrs == 0 and len(aoObjsLeftBehind) == 0:
     1452            if cIfs == 0 and cObjs == 0 and cVBoxMgrs == 0 and not aoObjsLeftBehind:
    14531453                reporter.log('_teardownVBoxApi:   Calling CoUninitialize...');
    14541454                try:    pythoncom.CoUninitialize();             # pylint: disable=no-member
     
    15011501                    else:
    15021502                        fPrinted = False;
    1503                         if isinstance(oReferrer, dict) or isinstance(oReferrer, list) or isinstance(oReferrer, tuple):
     1503                        if isinstance(oReferrer, (dict, list, tuple)):
    15041504                            try:
    15051505                                aoSubReferreres = gc.get_referrers(oReferrer);
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