mlog: disable usage of global for log_pager

pull/10846/head
Xavier Claessens 2 years ago committed by Xavier Claessens
parent b5710ac4f4
commit bed5b31079
  1. 4
      mesonbuild/mlog.py

@ -412,7 +412,7 @@ def start_pager() -> None:
# "X" : do not clear the screen when leaving the pager
# "F" : skip the pager if content fit into the screen
pager_cmd = ['less', '-RXF']
global log_pager
global log_pager # pylint: disable=global-statement
assert log_pager is None
try:
log_pager = subprocess.Popen(pager_cmd, stdin=subprocess.PIPE,
@ -424,7 +424,7 @@ def start_pager() -> None:
raise MesonException(f'Failed to start pager: {str(e)}')
def stop_pager() -> None:
global log_pager
global log_pager # pylint: disable=global-statement
if log_pager:
try:
log_pager.stdin.flush()

Loading…
Cancel
Save