Skip to content

Commit 3da49cb

Browse files
TomAugspurgerjreback
authored andcommitted
CI: Fixed linting on download_wheels (#21042)
1 parent 363426f commit 3da49cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/download_wheels.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""Fetch wheels from wheels.scipy.org for a pandas version."""
23
import argparse
34
import pathlib
@@ -23,7 +24,7 @@ def fetch(version):
2324
dest.mkdir(exist_ok=True)
2425

2526
files = [x for x in root.xpath("//a/text()")
26-
if x.startswith(f'pandas-{version}')
27+
if x.startswith('pandas-{}'.format(version))
2728
and not dest.joinpath(x).exists()]
2829

2930
N = len(files)
@@ -32,7 +33,9 @@ def fetch(version):
3233
out = str(dest.joinpath(filename))
3334
link = urllib.request.urljoin(base, filename)
3435
urllib.request.urlretrieve(link, out)
35-
print(f"Downloaded {link} to {out} [{i}/{N}]")
36+
print("Downloaded {link} to {out} [{i}/{N}]".format(
37+
link=link, out=out, i=i, N=N
38+
))
3639

3740

3841
def main(args=None):

0 commit comments

Comments
 (0)