VirtualBox

Changeset 84657 in vbox


Ignore:
Timestamp:
Jun 3, 2020 11:24:34 AM (4 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl.py: Check for buffer instances only with Python >= 2.7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84656 r84657  
    22222222                                                    abBuf = abBuf.tobytes();
    22232223                                                    sBuf  = abBuf.decode("utf-8");
    2224                                             if isinstance(abBuf, buffer):
    2225                                                 sBuf = str(abBuf);
     2224                                                if isinstance(abBuf, buffer):
     2225                                                    sBuf = str(abBuf);
    22262226                                            for sLine in sBuf.splitlines():
    22272227                                                reporter.log4('%s: %s' % (sFdNm, sLine));
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