File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ def parse_sources(args, config):
223
223
Locate the sources, and download them from the appropriate dist-git
224
224
lookaside cache.
225
225
"""
226
+ # pylint: disable=too-many-locals
226
227
parsed_url , distgit_config = get_distgit_config (config , args .forked_from )
227
228
namespace = parsed_url .path .strip ('/' ).split ('/' )
228
229
# drop the last {name}.git part
@@ -245,7 +246,7 @@ def parse_sources(args, config):
245
246
return
246
247
247
248
logging .info ("Reading sources specification file: %s" , sources_file )
248
- with open (sources_file , 'r' ) as sfd :
249
+ with open (sources_file , 'r' , encoding = "utf8" ) as sfd :
249
250
while True :
250
251
line = sfd .readline ()
251
252
if not line :
@@ -274,7 +275,7 @@ def parse_sources(args, config):
274
275
filename = os .path .basename (source_spec [1 ])
275
276
kwargs ["filename" ] = filename .strip ('()' )
276
277
else :
277
- msg = "Weird sources line: {0}" . format ( line )
278
+ msg = f "Weird sources line: { line } "
278
279
raise RuntimeError (msg )
279
280
280
281
url_file = '/' .join ([
You can’t perform that action at this time.
0 commit comments