File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
1
2
"""Fetch wheels from wheels.scipy.org for a pandas version."""
2
3
import argparse
3
4
import pathlib
@@ -23,7 +24,7 @@ def fetch(version):
23
24
dest .mkdir (exist_ok = True )
24
25
25
26
files = [x for x in root .xpath ("//a/text()" )
26
- if x .startswith (f 'pandas-{ version } ' )
27
+ if x .startswith ('pandas-{}' . format ( version ) )
27
28
and not dest .joinpath (x ).exists ()]
28
29
29
30
N = len (files )
@@ -32,7 +33,9 @@ def fetch(version):
32
33
out = str (dest .joinpath (filename ))
33
34
link = urllib .request .urljoin (base , filename )
34
35
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
+ ))
36
39
37
40
38
41
def main (args = None ):
You can’t perform that action at this time.
0 commit comments