VirtualBox

Changeset 70571 in vbox


Ignore:
Timestamp:
Jan 13, 2018 12:04:15 AM (7 years ago)
Author:
vboxsync
Message:

testdriver/reporter.py: Python 3 adjustments.

File:
1 edited

Legend:

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

    r70570 r70571  
    712712    def _writeOutput(self, sText):
    713713        """ Does the actual writing and flushing. """
    714         print(sText.encode('ascii', 'replace'), file = self.oOutput);
     714        if sys.version_info[0] >= 3:
     715            print(sText, file = self.oOutput);
     716        else:
     717            print(sText.encode('ascii', 'replace'), file = self.oOutput);
    715718        if self.fFlushEachLine: self.oOutput.flush();
    716719        return None;
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