From 8066f548d0207922f674282cde26f31409752c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Wed, 16 Sep 2020 18:02:17 +0200 Subject: [PATCH] src: fix qa issues --- src/maintainers | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/maintainers b/src/maintainers index f041c7d..3c563c1 100755 --- a/src/maintainers +++ b/src/maintainers @@ -1,5 +1,6 @@ #!/usr/bin/env python + """ Original author: XGQT Licensed under the ISC License @@ -13,12 +14,13 @@ How to use: - run this script """ + import os import os.path import xml.etree.ElementTree as ET -metadatas = [ +METADATAS = [ os.path.join(dp, f) for dp, _, filenames in os.walk(".") for f in filenames if os.path.splitext(f)[1] == '.xml' @@ -26,7 +28,7 @@ metadatas = [ if __name__ == '__main__': - for metadata in metadatas: + for metadata in METADATAS: try: _, cat, pkg, _ = metadata.split("/") print("Package: %s/%s" % (cat, pkg))