summaryrefslogtreecommitdiff
path: root/yaksh/file_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/file_utils.py')
-rw-r--r--yaksh/file_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py
index 361b29c..0d80b8f 100644
--- a/yaksh/file_utils.py
+++ b/yaksh/file_utils.py
@@ -68,12 +68,12 @@ def is_csv(document):
def headers_present(dict_reader, headers):
fields = dict_reader.fieldnames
- clist = set()
+ header_fields = set()
for field in fields:
if field.strip() in headers.keys():
headers[field.strip()] = field
- clist.add(field.strip())
- if clist != headers.keys():
+ header_fields.add(field.strip())
+ if header_fields != set(headers.keys()):
return False
return True