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(
178
178
shell : bool = False ,
179
179
cwd : Optional [StrOrBytesPath ] = None ,
180
180
env : Optional [_ENV ] = None ,
181
- universal_newlines : Optional [ bool ] = None ,
181
+ universal_newlines : bool = False ,
182
182
startupinfo : Optional [Any ] = None ,
183
183
creationflags : int = 0 ,
184
184
restore_signals : bool = True ,
@@ -262,15 +262,15 @@ def progress_cb(output, timestamp):
262
262
umask = umask ,
263
263
)
264
264
265
- all_output = []
265
+ all_output : list [ str ] = []
266
266
code = None
267
267
line = None
268
268
while code is None :
269
269
code = proc .poll ()
270
270
271
271
# output = console_to_str(proc.stdout.readline())
272
272
# all_output.append(output)
273
- if callback and callable (callback ):
273
+ if callback and callable (callback ) and proc . stderr is not None :
274
274
line = console_to_str (proc .stderr .read (128 ))
275
275
if line :
276
276
callback (output = line , timestamp = datetime .datetime .now ())
You can’t perform that action at this time.
0 commit comments