VirtualBox

Changeset 70573 in vbox for trunk


Ignore:
Timestamp:
Jan 13, 2018 4:18:15 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120260
Message:

testdriver/reporter.py: Python 3 adjustments.

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r70572 r70573  
    746746
    747747        # Make sure it's a string which encoding we grok.
    748         if sys.version_info[0] >= 3 and hasattr(sRspBody, 'decode'):
     748        if hasattr(sRspBody, 'decode'):
    749749            sRspBody = sRspBody.decode('utf-8', 'ignore');
    750750
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r70521 r70573  
    10871087                    sResponse = None;
    10881088                os.close(iPipeR);
     1089
     1090                if hasattr(sResponse, 'decode'):
     1091                    sResponse = sResponse.decode('utf-8', 'ignore');
    10891092
    10901093                if sResponse is None  or  sResponse.strip() != 'READY':
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