def _parse_contract(self, player_info):
contract = {}<EOL>salary_table = player_info('<STR_LIT>')<EOL>for row in salary_table('<STR_LIT>').items():<EOL><INDENT>if '<STR_LIT>' in str(row):<EOL><INDENT>continue<EOL><DEDENT>year = row('<STR_LIT>').text()<EOL>if year.strip() == '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>age = row('<STR_LIT>').text()<EOL>team = self._parse_team_name(str(row('<STR_LIT>')))<EOL>salary = row('<STR_LIT>').text()<EOL>contract[year] = {<EOL>'<STR_LIT>': age,<EOL>'<STR_LIT>': team,<EOL>'<STR_LIT>': salary<EOL>}<EOL><DEDENT>setattr(self, '<STR_LIT>', contract)<EOL>
Parse the player's contract.

Depending on the player's contract status, a contract table is located
at the bottom of the stats page and includes player wages by season. If
found, create a dictionary housing the wages by season.

Parameters
----------
player_info : PyQuery object
    A PyQuery object containing the HTML from the player's stats page.