[glib: 1/2] gdbus-codegen: Ignore some flake8 warnings




commit b2079656972b5e7098f0d28bbba3a39fa4a62d16
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Dec 15 09:43:35 2020 +0000

    gdbus-codegen: Ignore some flake8 warnings
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gio/gdbus-2.0/codegen/codegen_main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py
index dc0177f0f..238d7dd12 100644
--- a/gio/gdbus-2.0/codegen/codegen_main.py
+++ b/gio/gdbus-2.0/codegen/codegen_main.py
@@ -343,7 +343,7 @@ def codegen_main():
             parts = args.glib_min_required.split(".", 3)
             glib_min_required = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
             # Ignore micro component, but still validate it:
-            _ = int(parts[2] if len(parts) > 2 else 0)
+            _ = int(parts[2] if len(parts) > 2 else 0)  # noqa: F841
         except (ValueError, IndexError):
             print_error(
                 "Unrecognized --glib-min-required string ‘{}’".format(
@@ -365,7 +365,7 @@ def codegen_main():
             parts = args.glib_max_allowed.split(".", 3)
             glib_max_allowed = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
             # Ignore micro component, but still validate it:
-            _ = int(parts[2] if len(parts) > 2 else 0)
+            _ = int(parts[2] if len(parts) > 2 else 0)  # noqa: F841
         except (ValueError, IndexError):
             print_error(
                 "Unrecognized --glib-max-allowed string ‘{}’".format(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]