@@ -80,7 +80,7 @@ def _download(path, url, probably_big, verbose, exception):
80
80
option = "-s"
81
81
run (["curl" , option ,
82
82
"-y" , "30" , "-Y" , "10" , # timeout if speed is < 10 bytes/sec for > 30 seconds
83
- "--connect-timeout" , "30" , # timeout if cannot connect within 30 seconds
83
+ "--connect-timeout" , "30" , # timeout if cannot connect within 30 seconds
84
84
"--retry" , "3" , "-Sf" , "-o" , path , url ],
85
85
verbose = verbose ,
86
86
exception = exception )
@@ -332,7 +332,6 @@ def __init__(self):
332
332
self .use_vendored_sources = ''
333
333
self .verbose = False
334
334
335
-
336
335
def download_stage0 (self ):
337
336
"""Fetch the build system for Rust, written in Rust
338
337
@@ -825,7 +824,7 @@ def check_vendored_status(self):
825
824
if not os .path .exists (vendor_dir ):
826
825
print ('error: vendoring required, but vendor directory does not exist.' )
827
826
print (' Run `cargo vendor` without sudo to initialize the '
828
- 'vendor directory.' )
827
+ 'vendor directory.' )
829
828
raise Exception ("{} not found" .format (vendor_dir ))
830
829
831
830
if self .use_vendored_sources :
@@ -839,7 +838,7 @@ def check_vendored_status(self):
839
838
"\n "
840
839
"[source.vendored-sources]\n "
841
840
"directory = '{}/vendor'\n "
842
- .format (self .rust_root ))
841
+ .format (self .rust_root ))
843
842
else :
844
843
if os .path .exists ('.cargo' ):
845
844
shutil .rmtree ('.cargo' )
0 commit comments