@staticmethod
def _output_encoding(stderr=False):
    encoding = locale.getpreferredencoding()
    if (encoding in ('mac-roman',)):
        encoding = 'utf-8'
    return encoding
@staticmethod
def _output_encoding(stderr=False):
    encoding = locale.getpreferredencoding()
    if (encoding in ('mac-roman',)):
        encoding = 'utf-8'
    return encoding