mlog: remove incorrect uses of global keyword

global is only needed to allow replacement of global values, they're
always in scope to read.
This commit is contained in:
Dylan Baker 2019-12-12 12:49:22 -08:00 committed by Xavier Claessens
parent 3778a34979
commit eb30c493f6
1 changed files with 0 additions and 2 deletions

View File

@ -160,7 +160,6 @@ def process_markup(args: Sequence[Union[AnsiDecorator, str]], keep: bool) -> Lis
return arr
def force_print(*args: str, **kwargs: Any) -> None:
global log_disable_stdout
if log_disable_stdout:
return
iostr = io.StringIO()
@ -197,7 +196,6 @@ def cmd_ci_include(file: str) -> None:
def log(*args: Union[str, AnsiDecorator], is_error: bool = False,
**kwargs: Any) -> None:
global log_errors_only
arr = process_markup(args, False)
if log_file is not None:
print(*arr, file=log_file, **kwargs)