diff options
Diffstat (limited to 'yaksh/file_utils.py')
-rw-r--r-- | yaksh/file_utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py index 7aef249..c53c2dc 100644 --- a/yaksh/file_utils.py +++ b/yaksh/file_utils.py @@ -66,15 +66,3 @@ def is_csv(document): return False, None return True, dialect - -def headers_present(dict_reader, headers): - fields = dict_reader.fieldnames - header_fields = set() - for field in fields: - if field.strip() in headers.keys(): - headers[field.strip()] = field - header_fields.add(field.strip()) - if header_fields != set(headers.keys()): - return False - return True - |