Renamed function argument to reveal its meaning and to not override the built-in input function.

This commit is contained in:
Jochen Kupperschmidt
2016-06-05 22:44:53 +02:00
parent c2870bb4ec
commit c7ffdcde4d

View File

@ -205,11 +205,11 @@ def get_calendar(username, base_url='https://github.com/'):
return page.readlines()
def max_commits(input):
def max_commits(calendar):
"""finds the highest number of commits in one day"""
output = set()
for line in input:
for line in calendar:
for day in line.split():
if 'data-count=' in day:
commit = day.split('=')[1]