VirtualBox

Changeset 102957 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 18, 2024 5:31:53 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161185
Message:

Main/Python bindings: Moved the Python deprecation warning from VBoxShell into the actual Python bindings module where it belongs. This way all Python API clients get notified (as long as they show stdout somehow).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r102948 r102957  
    36553655        del sPath, asLocations
    36563656
    3657     # Deprecation warning for older Python stuff (< Python 3.x).
    3658     if sys.version_info.major < 3:
    3659         print("\nWarning: Running VirtualBox with Python %d.%d is marked as being deprecated.\n" \
    3660               "Please upgrade your Python installation to avoid breakage.\n" \
    3661               % (sys.version_info.major, sys.version_info.minor))
    3662 
    36633657    #
    36643658    # Set up the shell interpreter context and start working.
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