From 25f628a0c2887a0423fd3109cb451031cff2f134 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Hombashi Date: Sun, 19 Nov 2017 19:14:43 +0900 Subject: [PATCH] Add an interface to constructor to set quoting flags --- tabledata/_core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabledata/_core.py b/tabledata/_core.py index 356c13d..c7422fa 100644 --- a/tabledata/_core.py +++ b/tabledata/_core.py @@ -91,9 +91,11 @@ def record_list(self): def __init__( self, table_name, header_list, record_list, is_strip_quote=False, - max_workers=None): + quoting_flags=None, max_workers=None): self.__dp_extractor = dp.DataPropertyExtractor() + if quoting_flags: + self.__dp_extractor.quoting_flags = quoting_flags self.__dp_extractor.strip_str_header = '"' if is_strip_quote: self.__dp_extractor.strip_str_value = '"'