17
17
This may be due to an out of date pip.
18
18
19
19
Make sure you have pip >= 9.0.1.
20
- """ .format ('.' .join (str (n ) for n in min_version )),
20
+ """ .format ('.' .join (str (n ) for n in min_version ))
21
21
sys .exit (error )
22
22
23
23
from pathlib import Path
@@ -112,8 +112,9 @@ def _download_jquery_to(dest):
112
112
try :
113
113
buff = download_or_cache (url , sha )
114
114
except Exception :
115
- raise IOError (f"Failed to download jquery-ui. Please download "
116
- f"{ url } and extract it to { dest } ." )
115
+ raise IOError (
116
+ "Failed to download jquery-ui. Please download "
117
+ "{url} and extract it to {dest}." .format (url = url , dest = dest ))
117
118
with ZipFile (buff ) as zf :
118
119
zf .extractall (dest )
119
120
@@ -154,7 +155,7 @@ def run(self):
154
155
# If the user just queries for information, don't bother figuring out which
155
156
# packages to build or install.
156
157
if not (any ('--' + opt in sys .argv
157
- for opt in [ * Distribution .display_option_names , 'help' ])
158
+ for opt in Distribution .display_option_names + [ 'help' ])
158
159
or 'clean' in sys .argv ):
159
160
# Go through all of the packages and figure out which ones we are
160
161
# going to build/install.
@@ -169,10 +170,11 @@ def run(self):
169
170
try :
170
171
message = package .check ()
171
172
except setupext .Skipped as e :
172
- print_status (package .name , f "no [{ e } ]" )
173
+ print_status (package .name , "no [{e}]" . format ( e = e ) )
173
174
continue
174
175
if message is not None :
175
- print_status (package .name , f"yes [{ message } ]" )
176
+ print_status (package .name ,
177
+ "yes [{message}]" .format (message = message ))
176
178
good_packages .append (package )
177
179
178
180
print_raw ()
0 commit comments