From 9ecb80ba26649e47c1f357c1a6f48c028ce7689b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Apr 2025 23:30:32 -0400 Subject: [PATCH] pager: drop unused global vars We use global when we need to write to a variable, not read it. This function only reads, so drop the keyword. Change-Id: Iee91998fba67fd3e8ebaf2f4a79f95032f70b1c0 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/464501 Reviewed-by: Scott Lee Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger --- pager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pager.py b/pager.py index 9a4da192..d295535c 100644 --- a/pager.py +++ b/pager.py @@ -40,7 +40,7 @@ def RunPager(globalConfig): def TerminatePager(): - global pager_process, old_stdout, old_stderr + global pager_process if pager_process: sys.stdout.flush() sys.stderr.flush()