def _get_team_details(self, game):
links = [i for i in game('<STR_LIT>').items()]<EOL>away = links[<NUM_LIT:0>]<EOL>home = links[-<NUM_LIT:1>]<EOL>scores = re.findall(r'<STR_LIT>', str(game))<EOL>away_score = None<EOL>home_score = None<EOL>if len(scores) == <NUM_LIT:2>:<EOL><INDENT>away_score = self._get_score(scores[<NUM_LIT:0>])<EOL>home_score = self._get_score(scores[<NUM_LIT:1>])<EOL><DEDENT>away_name, away_abbr = self._get_name(away)<EOL>home_name, home_abbr = self._get_name(home)<EOL>return (away_name, away_abbr, away_score, home_name, home_abbr,<EOL>home_score)<EOL>
Find the names and abbreviations for both teams in a game.

Using the HTML contents in a boxscore, find the name and abbreviation
for both teams.

Parameters
----------
game : PyQuery object
    A PyQuery object of a single boxscore containing information about
    both teams.

Returns
-------
tuple
    Returns a tuple containing the names and abbreviations of both
    teams in the following order: Away Name, Away Abbreviation, Away
    Score, Home Name, Home Abbreviation, Home Score.