aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-02 15:03:13 -0700
committerXavier Claessens <xclaesse@gmail.com>2022-09-22 18:17:43 -0400
commit3ef332e89a7050d0c03801099a0649e00c187278 (patch)
tree51f0c1995d8c95d4dcb57c7cb805be12a779a322 /mesonbuild/scripts
parent1917b9253e70ae3469b97673f479d54d37b3b881 (diff)
downloadmeson-3ef332e89a7050d0c03801099a0649e00c187278.zip
meson-3ef332e89a7050d0c03801099a0649e00c187278.tar.gz
meson-3ef332e89a7050d0c03801099a0649e00c187278.tar.bz2
pylint: enable global-variable-not-assigned
The `global` statement is only needed to assign to global variables, not read or mutate them. So calling `global.mutate()` is fine, but not `var = foo`, which would otherwise shadow `var`.
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r--mesonbuild/scripts/symbolextractor.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/mesonbuild/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py
index 8f61ad4..8992e94 100644
--- a/mesonbuild/scripts/symbolextractor.py
+++ b/mesonbuild/scripts/symbolextractor.py
@@ -53,7 +53,6 @@ def write_if_changed(text: str, outfilename: str) -> None:
f.write(text)
def print_tool_warning(tools: T.List[str], msg: str, stderr: T.Optional[str] = None) -> None:
- global TOOL_WARNING_FILE
if os.path.exists(TOOL_WARNING_FILE):
return
m = f'{tools!r} {msg}. {RELINKING_WARNING}'