VirtualBox

Changeset 82640 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 22, 2019 10:02:38 PM (5 years ago)
Author:
vboxsync
Message:

common/utils.py: Fix toUnicode method for 2.x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r82635 r82640  
    7878    else:
    7979        if not isinstance(sString, unicode):
    80             return unicode(sString, encoding, errors);
     80            return unicode(sString, encoding if encoding else 'utf-8', errors);
    8181    return sString;
    8282
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