def _mbcs_to_unicode(instr):
 if ((instr is None) or isinstance(instr, six.text_type)):
  return instr
 else:
  return six.text_type(instr, u'mbcs')

def _mbcs_to_unicode ( instr ) : if ( ( instr is None ) or isinstance ( instr , six . text_type ) ) : return instr else : return six . text_type ( instr , u'mbcs' )
converts from current users character encoding to unicode .