Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Start renaming the top level stuff for #98
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jan 27, 2016
1 parent 73a0297 commit cc99ca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elections/ap.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ftp(self):
self._ftp_hits += 1
return self._ftp

def get_electionday(self, election_date, **kwargs):
def get_election(self, election_date, **kwargs):
"""
Takes a date in any common format (YYYY-MM-DD is preferred)
and returns a list of APResult objects for states holding
Expand All @@ -87,7 +87,7 @@ def get_electionday(self, election_date, **kwargs):
"The election date you've submitted could not be parsed. \
Try submitting it in YYYY-MM-DD format."
)
return ElectionDay(self, dt.strftime("%Y%m%d"), **kwargs)
return Election(self, dt.strftime("%Y%m%d"), **kwargs)

#
# Private methods
Expand Down Expand Up @@ -228,7 +228,7 @@ def _split_list(self, iterable, n, fillvalue=None):
# Result collections
#

class ElectionDay(object):
class Election(object):
"""
Base class that defines the methods to retrieve AP CSV
data and shared properties and methods for State and
Expand Down

0 comments on commit cc99ca4

Please sign in to comment.