Skip to content

Commit 69459b3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent efc0d40 commit 69459b3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

web_programming/covid_stats_via_xpath.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ def covid_stats(
4646
return CovidData("N/A", "N/A", "N/A")
4747
data = html.fromstring(response.content).xpath(xpath_str)
4848
if len(data) != 3:
49-
print(
50-
"Unexpected data format. The page structure may have "
51-
"changed."
52-
)
49+
print("Unexpected data format. The page structure may have changed.")
5350
return CovidData("N/A", "N/A", "N/A")
5451
return CovidData(*data)
5552

@@ -60,4 +57,4 @@ def covid_stats(
6057
"Total deaths due to COVID-19 in the world: {}\n"
6158
"Total COVID-19 patients recovered in the world: {}"
6259
)
63-
print(fmt.format(*covid_stats()))
60+
print(fmt.format(*covid_stats()))

0 commit comments

Comments
 (0)