VirtualBox

Changeset 70572 in vbox


Ignore:
Timestamp:
Jan 13, 2018 1:11:42 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120259
Message:

testdriver/reporter.py: Python 3 adjustments.

File:
1 edited

Legend:

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

    r70571 r70572  
    745745            except: pass;
    746746
     747        # Make sure it's a string which encoding we grok.
     748        if sys.version_info[0] >= 3 and hasattr(sRspBody, 'decode'):
     749            sRspBody = sRspBody.decode('utf-8', 'ignore');
     750
    747751        # Check the content type.
    748752        sContentType = oResponse.getheader('Content-Type');
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