aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-12-12 12:49:22 -0800
committerXavier Claessens <xclaesse@gmail.com>2019-12-13 09:57:05 -0500
commiteb30c493f609ebdad5a41ad26fcf9845258729e1 (patch)
tree864b645d8a361fa757e15993e6d17f0b43b0af8d
parent3778a34979c1f705eda044960cc1f89233409f88 (diff)
downloadmeson-eb30c493f609ebdad5a41ad26fcf9845258729e1.zip
meson-eb30c493f609ebdad5a41ad26fcf9845258729e1.tar.gz
meson-eb30c493f609ebdad5a41ad26fcf9845258729e1.tar.bz2
mlog: remove incorrect uses of global keyword
global is only needed to allow replacement of global values, they're always in scope to read.
-rw-r--r--mesonbuild/mlog.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index c779a58..613752d 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -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)