sportsref/nfl/teams.py
def sos(self, year):
        """Returns the SOS (Strength of Schedule) for a team in a year, based
        on SRS.

        :year: The year for the season in question.
        :returns: A float of SOS.
        """
        try:
            sos_text = self._year_info_pq(year, 'SOS').text()
        except ValueError:
            return None
        m = re.search(r'SOS\s*:\s*(\S+)', sos_text)
        if m:
            return float(m.group(1))
        else:
            return None
def sos(self, year):
        """Returns the SOS (Strength of Schedule) for a team in a year, based
        on SRS.

        :year: The year for the season in question.
        :returns: A float of SOS.
        """
        try:
            sos_text = self._year_info_pq(year, 'SOS').text()
        except ValueError:
            return None
        m = re.search(r'SOS\s*:\s*(\S+)', sos_text)
        if m:
            return float(m.group(1))
        else:
            return None
def sos ( self , year ) : try : sos_text = self . _year_info_pq ( year , 'SOS' ) . text ( ) except ValueError : return None m = re . search ( r'SOS\s*:\s*(\S+)' , sos_text ) if m : return float ( m . group ( 1 ) ) else : return None
Returns the SOS (Strength of Schedule) for a team in a year, based
        on SRS.

        :year: The year for the season in question.
        :returns: A float of SOS.
Returns the SOS ( Strength of Schedule ) for a team in a year based on SRS .