Skip to content

Commit

Permalink
Used json.load instead of loads (no need to read out file).
Browse files Browse the repository at this point in the history
  • Loading branch information
wpovell committed May 21, 2013
1 parent b4c88ba commit d639d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitfiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def get_calendar(username):
"""retrieves the github commit calendar data for a username"""
BASEURL='https://github.com/'
url = BASEURL + 'users/' + username + '/contributions_calendar_data'
page = urllib2.urlopen(url).read()
return json.loads(page)
page = urllib2.urlopen(url)
return json.load(page)

def max_commits(input):
"""finds the highest number of commits in one day"""
Expand Down

0 comments on commit d639d75

Please sign in to comment.