Skip to content

Commit

Permalink
Add info class
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed Nov 8, 2016
1 parent 163e41d commit 1ab502c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions mlbgame/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

import mlbgame.data
import mlbgame.object

import lxml.etree as etree

Expand Down Expand Up @@ -35,3 +36,9 @@ def team_info():
info[x] = team.attrib[x]
output.append(info)
return output

class Info(mlbgame.object.Object):
"""Holds information about the league or teams"""
# basically a copy of the object class with a different name for clarification
pass

2 changes: 1 addition & 1 deletion mlbgame/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ def __str__(self):

class TeamStats(mlbgame.object.Object):
"""Holds total pitching or batting stats for a team"""
# basically a copy of the Stats class with a different name for clarification
# basically a copy of the object class with a different name for clarification
pass

0 comments on commit 1ab502c

Please sign in to comment.