From b89dba22cd6aad09955b78fc2df7cb0e76f46c0b Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Tue, 2 Jul 2024 12:35:09 +0200 Subject: [PATCH] codegen: resolve pylint import issues Remove unused imports and reorder other imports so that the standard ones are coming first. Signed-off-by: Yegor Yefremov --- gio/gdbus-2.0/codegen/codegen_md.py | 1 - gio/gdbus-2.0/codegen/codegen_rst.py | 1 - gio/gdbus-2.0/codegen/utils.py | 3 ++- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gio/gdbus-2.0/codegen/codegen_md.py b/gio/gdbus-2.0/codegen/codegen_md.py index c509ce05b..39dae7a97 100644 --- a/gio/gdbus-2.0/codegen/codegen_md.py +++ b/gio/gdbus-2.0/codegen/codegen_md.py @@ -6,7 +6,6 @@ import os import re -from . import utils import textwrap # Disable line length warnings as wrapping the templates would be hard diff --git a/gio/gdbus-2.0/codegen/codegen_rst.py b/gio/gdbus-2.0/codegen/codegen_rst.py index 6a023f69f..d198bc86e 100644 --- a/gio/gdbus-2.0/codegen/codegen_rst.py +++ b/gio/gdbus-2.0/codegen/codegen_rst.py @@ -5,7 +5,6 @@ import os import re -from . import utils import textwrap # Disable line length warnings as wrapping the templates would be hard diff --git a/gio/gdbus-2.0/codegen/utils.py b/gio/gdbus-2.0/codegen/utils.py index 6399945f2..2863557b8 100644 --- a/gio/gdbus-2.0/codegen/utils.py +++ b/gio/gdbus-2.0/codegen/utils.py @@ -21,10 +21,11 @@ # # Author: David Zeuthen -import packaging.version import os import sys +import packaging.version + # pylint: disable=too-few-public-methods class Color: