Skip to content

Commit 91d267e

Browse files
committed
bugfix
1 parent 3ca2a98 commit 91d267e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

randomAccessReader/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, filepath, has_header=True, endline_character='\n', values_del
8080
self._headers = None
8181
self._delimiter = values_delimiter
8282
self._quotechar = quotechar
83-
self._has_header = has_header
83+
self.has_header = has_header
8484
if has_header:
8585
reader = RandomAccessReader(filepath, endline_character)
8686
self._headers = self._get_line_values(reader.get_lines(0)[0])
@@ -104,7 +104,6 @@ def _get_line_values(self, line):
104104
raise ValueError("Corrupt csv - header and row have different lengths")
105105
return values
106106

107-
108107
def get_line_dicts(self, line_number, amount=1):
109108
"""
110109
gets the requested line as a dictionary (header values are the keys)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Versions should comply with PEP440. For a discussion on single-sourcing
1616
# the version across setup.py and the project code, see
1717
# https://packaging.python.org/en/latest/single_source_version.html
18-
version='0.2.1',
18+
version='0.2.2',
1919

2020
description='A python random access file reader',
2121
long_description=long_description,

0 commit comments

Comments
 (0)