VirtualBox

Ignore:
Timestamp:
Feb 28, 2018 3:38:15 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121053
Message:

utils.py,vcs_import.py: Added printOut and printErr to utils for dealing console encoding issues in python2; use it in vcs_import.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/vcs_import.py

    r71156 r71157  
    131131                sMessage = sMessage[:VcsRevisionData.kcchMax_sMessage - 4] + ' ...';
    132132            if not self.oConfig.fQuiet:
    133                 if isinstance(sMessage, unicode) and hasattr(sMessage, 'encode'):
    134                     sMessage = sMessage.encode(sys.getdefaultencoding(), 'ignore')
    135                 print(u'sDate=%s iRev=%u sAuthor=%s sMsg[%s]=%s' % (sDate, iRevision, sAuthor, type(sMessage).__name__, sMessage));
     133                utils.printOut(u'sDate=%s iRev=%u sAuthor=%s sMsg[%s]=%s'
     134                               % (sDate, iRevision, sAuthor, type(sMessage).__name__, sMessage));
    136135            oData = VcsRevisionData().initFromValues(self.oConfig.sRepository, iRevision, sDate, sAuthor, sMessage);
    137136            oLogic.addVcsRevision(oData);
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