def detect_text_csv_dialect(text, display_name, header_text=None): return ( sniffer.sniff(string(text)), sniffer.has_header(string(header_text or text)) if display_name == 'auto' else display_name, )
def test_string(self): self.assertStringsIdentical(str('abc'), plu.string('abc')) self.assertStringsIdentical(str('abc'), plu.string(b'abc'))
def __init__(self, prompt): self.prompt = string(prompt)
def __str__(self): self.cache.prompt_count += 1 self.set_p_str() self.cache.last_prompt = self.p_str_nocolor.split('\n')[-1] return string(self.p_str)
def __str__(self): self.set_p_str() return string(self.p_str)