e065bde25429b720f6a634c357c77dfe0f5e9335,bin/mahotas-features.py,,print_error,#,15

Before Change



def print_error(text):
    "Prints error message"
    if sys.stderr.isatty():
        sys.stderr.write("{}ERROR: {}{}\n".format(RED, text, END))
    else:
        sys.stderr.write("ERROR: {}\n".format(text))

After Change


    color : bool, optional
        Whether to print in colour.
    """
    if color and sys.stderr.isatty():
        sys.stderr.write("{}ERROR: {}{}\n".format(RED, text, END))
    else:
        sys.stderr.write("ERROR: {}\n".format(text))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


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