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.

Location:
trunk/src/VBox/ValidationKit/testboxscript
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/testboxcommand.py

    r70548 r70660  
    244244            self.doReboot();
    245245        sys.exit(TBS_EXITCODE_NEED_UPGRADE);
     246        return False;                   # shuts up pylint (it will probably complain later when it learns DECL_NO_RETURN).
    246247
    247248    def _cmdUpgrade(self, oResponse, oConnection):
  • trunk/src/VBox/ValidationKit/testboxscript/testboxconnection.py

    r70566 r70660  
    3737    from urllib.parse import urlencode as urllib_urlencode; # pylint: disable=import-error,no-name-in-module
    3838else:
    39     import httplib;                                         # pylint: disable=import-error
    40     import urlparse;                                        # pylint: disable=import-error
    41     from urllib import urlencode as urllib_urlencode;       # pylint: disable=import-error
     39    import httplib;                                         # pylint: disable=import-error,no-name-in-module
     40    import urlparse;                                        # pylint: disable=import-error,no-name-in-module
     41    from urllib import urlencode as urllib_urlencode;       # pylint: disable=import-error,no-name-in-module
    4242
    4343# Validation Kit imports.
  • trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py

    r70548 r70660  
    3535import multiprocessing
    3636import os
    37 from optparse import OptionParser
     37from optparse import OptionParser       # pylint: disable=deprecated-module
    3838import platform
    3939import random
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