def getTerminalCharset():
 try:
  return getTerminalCharset.value
 except AttributeError:
  getTerminalCharset.value = _getTerminalCharset()
  return getTerminalCharset.value

def getTerminalCharset ( ) : try : return getTerminalCharset . value except AttributeError : getTerminalCharset . value = _getTerminalCharset ( ) return getTerminalCharset . value
guess terminal charset using differents tests: 1 .