Skip to content

Commit

Permalink
Add an interface to constructor to set quoting flags
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Nov 19, 2017
1 parent 4365c3e commit 25f628a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tabledata/_core.py
Expand Up @@ -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 = '"'
Expand Down

0 comments on commit 25f628a

Please sign in to comment.