summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-25 13:50:16 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-25 13:50:32 (GMT)
commit9a3d91dfc791ce54565e04834b6d9937fe74a602 (patch)
tree70de2f5dfefc37635d21fa3840b15d6744917bfe
parenteb9b9c077a99350addf1b092ec7d45bacfddad14 (diff)
downloadlibnl-9a3d91dfc791ce54565e04834b6d9937fe74a602.zip
libnl-9a3d91dfc791ce54565e04834b6d9937fe74a602.tar.gz
libnl-9a3d91dfc791ce54565e04834b6d9937fe74a602.tar.bz2
python: fix flake8 warnings F401
./doc/doxygen-link.py:4:1: F401 'fileinput' imported but unused ./doc/resolve-asciidoc-refs.py:5:1: F401 'fileinput' imported but unused ./python/doc/conf.py:14:1: F401 'sys' imported but unused ./python/doc/conf.py:14:1: F401 'os' imported but unused ./python/netlink/util.py:13:1: F401 '.core as netlink' imported but unused ./python/netlink/util.py:16:1: F401 'types' imported but unused
-rwxr-xr-xdoc/doxygen-link.py1
-rwxr-xr-xdoc/resolve-asciidoc-refs.py1
-rw-r--r--python/doc/conf.py2
-rw-r--r--python/netlink/util.py2
4 files changed, 0 insertions, 6 deletions
diff --git a/doc/doxygen-link.py b/doc/doxygen-link.py
index 8f3cbcc..2dcd5f0 100755
--- a/doc/doxygen-link.py
+++ b/doc/doxygen-link.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function
-import fileinput
import re
import sys
diff --git a/doc/resolve-asciidoc-refs.py b/doc/resolve-asciidoc-refs.py
index e7d79fe..0e8bebc 100755
--- a/doc/resolve-asciidoc-refs.py
+++ b/doc/resolve-asciidoc-refs.py
@@ -2,7 +2,6 @@
from __future__ import print_function
-import fileinput
import re
import sys
diff --git a/python/doc/conf.py b/python/doc/conf.py
index 97f931a..dfa53ab 100644
--- a/python/doc/conf.py
+++ b/python/doc/conf.py
@@ -11,8 +11,6 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
-
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
diff --git a/python/netlink/util.py b/python/netlink/util.py
index 8f1513e..983af9c 100644
--- a/python/netlink/util.py
+++ b/python/netlink/util.py
@@ -10,10 +10,8 @@
from __future__ import absolute_import
-from . import core as netlink
from . import capi as capi
from string import Formatter
-import types
__version__ = "1.0"