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
12"""Fetch wheels from wheels.scipy.org for a pandas version."""
23import argparse
34import 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
3841def main (args = None ):
You can’t perform that action at this time.
0 commit comments