From a7a1c31d4b8bd19e76316a4ed5006ddd873b1564 Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Sun, 27 Sep 2020 21:13:31 -0500 Subject: [PATCH] Replace invalid variable name in Boxscore modules Newer versions of pycodestyle flag inadequate variable names, such as single letters, which should be replaced with more descriptive names. Signed-Off-By: Robert Clark --- sportsreference/mlb/boxscore.py | 2 +- sportsreference/nba/boxscore.py | 2 +- sportsreference/nfl/boxscore.py | 2 +- sportsreference/nhl/boxscore.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sportsreference/mlb/boxscore.py b/sportsreference/mlb/boxscore.py index a3b2f280..51de11b5 100644 --- a/sportsreference/mlb/boxscore.py +++ b/sportsreference/mlb/boxscore.py @@ -1913,7 +1913,7 @@ def _extract_game_info(self, games): home_score = details boxscore_url = game('td[class="right gamelink"] a') boxscore_uri = self._get_boxscore_uri(boxscore_url) - losers = [l for l in game('tr[class="loser"]').items()] + losers = [loser for loser in game('tr[class="loser"]').items()] winner = self._get_team_results(game('tr[class="winner"]')) loser = self._get_team_results(game('tr[class="loser"]')) # Occurs when the boxscore format is invalid and the game should be diff --git a/sportsreference/nba/boxscore.py b/sportsreference/nba/boxscore.py index 0abf000e..e85e5b75 100644 --- a/sportsreference/nba/boxscore.py +++ b/sportsreference/nba/boxscore.py @@ -1819,7 +1819,7 @@ def _extract_game_info(self, games): home_score = details boxscore_url = game('td[class="right gamelink"] a') boxscore_uri = self._get_boxscore_uri(boxscore_url) - losers = [l for l in game('tr[class="loser"]').items()] + losers = [loser for loser in game('tr[class="loser"]').items()] winner = self._get_team_results(game('tr[class="winner"]')) loser = self._get_team_results(game('tr[class="loser"]')) # Occurs when the boxscore format is invalid and the game should be diff --git a/sportsreference/nfl/boxscore.py b/sportsreference/nfl/boxscore.py index b26d7ad6..d245a5d6 100644 --- a/sportsreference/nfl/boxscore.py +++ b/sportsreference/nfl/boxscore.py @@ -1595,7 +1595,7 @@ def _extract_game_info(self, games): home_score = details boxscore_url = game('td[class="right gamelink"] a') boxscore_uri = self._get_boxscore_uri(boxscore_url) - losers = [l for l in game('tr[class="loser"]').items()] + losers = [loser for loser in game('tr[class="loser"]').items()] winner = self._get_team_results(game('tr[class="winner"]')) loser = self._get_team_results(game('tr[class="loser"]')) # Occurs when the boxscore format is invalid and the game should be diff --git a/sportsreference/nhl/boxscore.py b/sportsreference/nhl/boxscore.py index e4fb2e16..6a47f416 100644 --- a/sportsreference/nhl/boxscore.py +++ b/sportsreference/nhl/boxscore.py @@ -1393,7 +1393,7 @@ def _extract_game_info(self, games): home_score = details boxscore_url = game('td[class="right gamelink"] a') boxscore_uri = self._get_boxscore_uri(boxscore_url) - losers = [l for l in game('tr[class="loser"]').items()] + losers = [loser for loser in game('tr[class="loser"]').items()] winner = self._get_team_results(game('tr[class="winner"]')) loser = self._get_team_results(game('tr[class="loser"]')) # Occurs when the boxscore format is invalid and the game should be