af2cc1bb0ad61acd7951b10058f247522fd2cf47,tests/functional/test_basic.py,,test_stdout_encoding,#,360

Before Change


                // In Python 2 on Mac OS X and Linux "sys.stdout.encoding" is set to None.
                // On Windows when running in non-interactive terminal it is None.
                enc = "None"
        elif sys.stdout.isatty():
            enc = str(sys.stdout.encoding)
        else:
            // For non-interactive stderr use locale encoding - ANSI codepage.

After Change


                // In Python 2 on Mac OS X and Linux "sys.stdout.encoding" is set to None.
                // On Windows when running in non-interactive terminal it is None.
                enc = "None"
        elif sys.stdout.isatty() or is_py37:
            enc = str(sys.stdout.encoding)
        else:
            // For non-interactive stderr use locale encoding - ANSI codepage.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: af2cc1bb0ad61acd7951b10058f247522fd2cf47
Time: 2018-08-18
Author: bjones@ece.msstate.edu
File Name: tests/functional/test_basic.py
Class Name:
Method Name: test_stdout_encoding


Project Name: pyinstaller/pyinstaller
Commit Name: af2cc1bb0ad61acd7951b10058f247522fd2cf47
Time: 2018-08-18
Author: bjones@ece.msstate.edu
File Name: tests/functional/test_basic.py
Class Name:
Method Name: test_stderr_encoding


Project Name: luispedro/mahotas
Commit Name: e065bde25429b720f6a634c357c77dfe0f5e9335
Time: 2015-06-08
Author: luis@luispedro.org
File Name: bin/mahotas-features.py
Class Name:
Method Name: print_error