Skip to content

Commit fcbc17b

Browse files
committed
Fixed flake8 missing docstrings
1 parent d6d3e07 commit fcbc17b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

versions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,27 @@ def get_minor_versions_between(start_version_str, end_version_str):
231231

232232

233233
def _get_scipy_pypi():
234+
"""
235+
Retrieve the SciPy PyPI JSON file
236+
"""
234237
url = "https://pypi.org/project/scipy/"
235238
req = request.Request(url, data=None, headers=HEADERS)
236239
return request.urlopen(req).read().decode("utf-8")
237240

238241

239242
def get_latest_scipy_version():
243+
"""
244+
Retrieve the latest SciPy Version
245+
"""
240246
html = _get_scipy_pypi()
241247
match = re.search(r"scipy\s+(\d+\.\d+\.\d+)", html, re.DOTALL)
242248
return match.groups()[0]
243249

244250

245251
def get_latest_scipy_python_version():
252+
"""
253+
Retrieve the latest Python version that is supported by SciPy
254+
"""
246255
html = _get_scipy_pypi()
247256
python_versions = list(
248257
set(re.findall(r"Python\s+\:\:\s+(\d+\.\d+)", html, re.DOTALL))

0 commit comments

Comments
 (0)