VirtualBox

Changeset 71233 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Mar 6, 2018 10:47:15 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121143
Message:

utils.py: shut up seemingly confused pylint.

File:
1 edited

Legend:

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

    r71158 r71233  
    7474    """
    7575    sStreamEncoding = sys.stdout.encoding;
    76     if sStreamEncoding is None: sStreamEncoding = 'US-ASCII'; # files, pipes and such on 2.x
     76    if sStreamEncoding is None:         # Files, pipes and such on 2.x.  (pylint is confused here)
     77        sStreamEncoding = 'US-ASCII';   # pylint: disable=redefined-variable-type
    7778    if sStreamEncoding == 'UTF-8' or not isinstance(sString, unicode):
    7879        print(sString);
     
    8586    """
    8687    sStreamEncoding = sys.stderr.encoding;
    87     if sStreamEncoding is None: sStreamEncoding = 'US-ASCII'; # files, pipes and such on 2.x
     88    if sStreamEncoding is None:         # Files, pipes and such on 2.x. (pylint is confused here)
     89        sStreamEncoding = 'US-ASCII';   # pylint: disable=redefined-variable-type
    8890    if sStreamEncoding == 'UTF-8' or not isinstance(sString, unicode):
    8991        print(sString, file = sys.stderr);
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