From c7ffdcde4de8b62965d3b9b5e5201e6c3af9b31d Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 5 Jun 2016 22:44:53 +0200 Subject: [PATCH] Renamed function argument to reveal its meaning and to not override the built-in `input` function. --- gitfiti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitfiti.py b/gitfiti.py index 7f7e50c8a..66a4fbf4a 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -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]