aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/qtattributionsscannertorst.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-23 11:14:30 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-23 12:26:43 +0100
commit8eb16d198d189b2ca4e7e400ba45626471e0e982 (patch)
tree4b4d74f14e5b66bd8319485d79d4f8fd972fe0b7 /sources/pyside6/doc/qtattributionsscannertorst.py
parent732be9c2d39ff85b16720821eb29a4ef8e87ab85 (diff)
Documentation: Fix flake8 warnings in documentation scripts
Pick-to: 6.6 Change-Id: I5323989df5e489f28eb69593597329ff86b2b614 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/doc/qtattributionsscannertorst.py')
-rw-r--r--sources/pyside6/doc/qtattributionsscannertorst.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/pyside6/doc/qtattributionsscannertorst.py b/sources/pyside6/doc/qtattributionsscannertorst.py
index aae4bccf8..677371c45 100644
--- a/sources/pyside6/doc/qtattributionsscannertorst.py
+++ b/sources/pyside6/doc/qtattributionsscannertorst.py
@@ -8,7 +8,6 @@ Tool to run qtattributionsscanner and convert its output to rst
import os
import json
import subprocess
-import sys
import warnings
from argparse import ArgumentParser, RawTextHelpFormatter
from pathlib import Path
@@ -22,8 +21,8 @@ libexec_dir = None
def indent(lines, indent):
result = ''
- for l in lines:
- result = f"{result}{indent}{l}\n"
+ for line in lines:
+ result = f"{result}{indent}{line}\n"
return result
@@ -96,7 +95,7 @@ def runScanner(directory, targetFileName, libexec_dir):
url = entry['Homepage']
version = entry['Version']
if url and version:
- content = f"{content}{rstUrl('Project Homepage', url)}, upstream version: {version}\n\n"
+ content = f"{content}{rstUrl('Project Homepage', url)}, upstream version: {version}\n\n" # noqa E:501
copyright = entry['Copyright']
if copyright:
content += rstLiteralBlockFromText(copyright)