File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -133,18 +133,18 @@ def _get_eol_list(self) -> List[str]:
133
133
_eol = "https://www.freebsd.org/security/unsupported.html"
134
134
req = requests .get (_eol )
135
135
status = req .status_code == requests .codes .ok
136
- eol_releases = []
136
+ eol_releases : List [ str ] = []
137
137
if not status :
138
138
req .raise_for_status ()
139
139
140
140
for eol in req .content .decode ("iso-8859-1" ).split ():
141
- eol = eol .strip ("href=" ).strip ("/" ).split (">" )
141
+ eol_lines = eol .strip ("href=" ).strip ("/" ).split (">" )
142
142
# We want a dynamic EOL
143
143
try :
144
- if "-RELEASE" in eol [1 ]:
145
- eol = eol [1 ].strip ('</td' )
146
- if eol not in eol_releases :
147
- eol_releases .append (eol )
144
+ if "-RELEASE" in eol_lines [1 ]:
145
+ eol_candidate = eol_lines [1 ].strip ('</td' )
146
+ if eol_candidate not in eol_releases :
147
+ eol_releases .append (eol_candidate )
148
148
except IndexError :
149
149
pass
150
150
You can’t perform that action at this time.
0 commit comments