Skip to content

Commit

Permalink
Rename a method
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Dec 31, 2016
1 parent 98f18ae commit 5824c44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pytablereader/tabledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def is_empty(self):

return any([self.is_empty_header(), self.is_empty_record()])

def as_dict(self):
def asdict(self):
"""
:return: Table data as a |dict| instance.
:rtype: dict
Expand Down Expand Up @@ -213,3 +213,9 @@ def __to_record_list(self, record_list):
self.__to_record(record)
for record in record_list
]

def as_dict(self):
return self.asdict()

# alias to asdict method.
# this method will be deleted in the future.

0 comments on commit 5824c44

Please sign in to comment.