Skip to content

Commit 94c16d5

Browse files
committed
btrfs-progs: remove unused imports from python code
CodeQL reports a few unused imports, all seem to be unused since the inital code. Signed-off-by: David Sterba <[email protected]>
1 parent b571e81 commit 94c16d5

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

Documentation/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pathlib
1818
from docutils import nodes
1919
from docutils.utils import unescape
20-
from docutils.parsers.rst import Directive, directives
20+
from docutils.parsers.rst import Directive
2121
from sphinx.util.nodes import split_explicit_title, set_source_info
2222

2323
# -- Project information -----------------------------------------------------

libbtrfsutil/python/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import sys
2424
from setuptools import setup, Extension
2525
from setuptools.command.build_ext import build_ext
26-
import subprocess
2726

2827

2928
def get_version():

libbtrfsutil/python/tests/test_filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import time
2020

2121
import btrfsutil
22-
from tests import BtrfsTestCase, HAVE_PATH_LIKE
22+
from tests import BtrfsTestCase
2323

2424

2525
def touch(path):

libbtrfsutil/python/tests/test_subvolume.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# You should have received a copy of the GNU Lesser General Public License
1616
# along with libbtrfsutil. If not, see <http://www.gnu.org/licenses/>.
1717

18-
import fcntl
1918
import errno
2019
import multiprocessing
2120
import os

show-blocks

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1717
# Boston, MA 021110-1307, USA.
1818
#
19-
import sys, os, signal, time, commands, tempfile, random
19+
import sys, os, random
2020

2121
# numpy seems to override random() with something else. Instantiate our
2222
# own here
@@ -25,7 +25,6 @@ randgen.seed(50)
2525

2626
from optparse import OptionParser
2727
from matplotlib import rcParams
28-
from matplotlib.font_manager import fontManager, FontProperties
2928
import numpy
3029

3130
rcParams['numerix'] = 'numpy'

0 commit comments

Comments
 (0)