mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gdbus-codegen: Ignore some flake8 warnings
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
7d96944c98
commit
b207965697
@ -343,7 +343,7 @@ def codegen_main():
|
|||||||
parts = args.glib_min_required.split(".", 3)
|
parts = args.glib_min_required.split(".", 3)
|
||||||
glib_min_required = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
|
glib_min_required = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
|
||||||
# Ignore micro component, but still validate it:
|
# 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):
|
except (ValueError, IndexError):
|
||||||
print_error(
|
print_error(
|
||||||
"Unrecognized --glib-min-required string ‘{}’".format(
|
"Unrecognized --glib-min-required string ‘{}’".format(
|
||||||
@ -365,7 +365,7 @@ def codegen_main():
|
|||||||
parts = args.glib_max_allowed.split(".", 3)
|
parts = args.glib_max_allowed.split(".", 3)
|
||||||
glib_max_allowed = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
|
glib_max_allowed = (int(parts[0]), int(parts[1] if len(parts) > 1 else 0))
|
||||||
# Ignore micro component, but still validate it:
|
# 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):
|
except (ValueError, IndexError):
|
||||||
print_error(
|
print_error(
|
||||||
"Unrecognized --glib-max-allowed string ‘{}’".format(
|
"Unrecognized --glib-max-allowed string ‘{}’".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user