[PATCH] scripts: don't import shutil in meson-warnings.py

Laine Stump via Devel posted 1 patch 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20260119054817.648650-1-laine@redhat.com
scripts/meson-warnings.py | 1 -
1 file changed, 1 deletion(-)
[PATCH] scripts: don't import shutil in meson-warnings.py
Posted by Laine Stump via Devel 1 week, 6 days ago
From: Laine Stump <laine@redhat.com>

It's never used, which makes flake8 complain.

Fixes: 50ad6026adc227f5d364fd088c7c1b770e37eddb
Signed-off-by: Laine Stump <laine@redhat.com>
---

Pushed to fix the build

 scripts/meson-warnings.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/meson-warnings.py b/scripts/meson-warnings.py
index d6e9539603..76949bc7e3 100644
--- a/scripts/meson-warnings.py
+++ b/scripts/meson-warnings.py
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-import shutil
 import sys
 
 with open(sys.argv[1], "w") as out:
-- 
2.52.0
Re: [PATCH] scripts: don't import shutil in meson-warnings.py
Posted by Daniel P. Berrangé via Devel 1 week, 6 days ago
On Mon, Jan 19, 2026 at 12:47:50AM -0500, Laine Stump via Devel wrote:
> From: Laine Stump <laine@redhat.com>
> 
> It's never used, which makes flake8 complain.

...whereupon I learn that I failed to install flake8 in my
development environment, and being a Friday afternoon, I
also forgot to check the gitlab pipeline result before I
pushed :-(

> 
> Fixes: 50ad6026adc227f5d364fd088c7c1b770e37eddb
> Signed-off-by: Laine Stump <laine@redhat.com>
> ---
> 
> Pushed to fix the build
> 
>  scripts/meson-warnings.py | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/scripts/meson-warnings.py b/scripts/meson-warnings.py
> index d6e9539603..76949bc7e3 100644
> --- a/scripts/meson-warnings.py
> +++ b/scripts/meson-warnings.py
> @@ -1,6 +1,5 @@
>  #!/usr/bin/env python3
>  
> -import shutil
>  import sys
>  
>  with open(sys.argv[1], "w") as out:
> -- 
> 2.52.0
> 

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|