File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def run(
178178 shell : bool = False ,
179179 cwd : Optional [StrOrBytesPath ] = None ,
180180 env : Optional [_ENV ] = None ,
181- universal_newlines : Optional [ bool ] = None ,
181+ universal_newlines : bool = False ,
182182 startupinfo : Optional [Any ] = None ,
183183 creationflags : int = 0 ,
184184 restore_signals : bool = True ,
@@ -262,15 +262,15 @@ def progress_cb(output, timestamp):
262262 umask = umask ,
263263 )
264264
265- all_output = []
265+ all_output : list [ str ] = []
266266 code = None
267267 line = None
268268 while code is None :
269269 code = proc .poll ()
270270
271271 # output = console_to_str(proc.stdout.readline())
272272 # all_output.append(output)
273- if callback and callable (callback ):
273+ if callback and callable (callback ) and proc . stderr is not None :
274274 line = console_to_str (proc .stderr .read (128 ))
275275 if line :
276276 callback (output = line , timestamp = datetime .datetime .now ())
You can’t perform that action at this time.
0 commit comments