VirtualBox

Changeset 107905 in vbox for trunk


Ignore:
Timestamp:
Jan 23, 2025 10:02:59 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167134
Message:

ValKit/txsshell.py: fix pylint issue with ModuleNotFoundError use-before-definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/TestExecServ/txsshell/txsshell.py

    r107898 r107905  
    4343import time;
    4444
    45 # Make sure that the ModuleNotFoundError exception is found by Python 2.x.
    46 try:
    47     ModuleNotFoundError
    48 except NameError:
     45if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 6): # since 3.6
    4946    ModuleNotFoundError = ImportError # pylint: disable=redefined-builtin
    5047
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