VirtualBox

Ignore:
Timestamp:
Aug 10, 2021 12:49:53 PM (3 years ago)
Author:
vboxsync
Message:

ValKit: More Python 3.9 API changes needed (array.array.tostring() -> .tobytes()) bugref:10079

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py

    r82968 r90595  
    6464        if isinstance(sText, array.array):
    6565            try:
    66                 return str(sText.tostring()); # tostring() returns bytes with python3.
     66                if sys.version_info < (3, 9, 0):
     67                    # Removed since Python 3.9.
     68                    return str(sText.tostring()); # pylint: disable=no-member
     69                else:
     70                    return str(sText.tobytes());
    6771            except:
    6872                pass;
     
    301305
    302306        return fRc;
    303 
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