From: Matthew Fernandez Date: Sat, 24 Apr 2021 16:52:56 +0000 (-0700) Subject: remove unused imports in Python files X-Git-Tag: 2.47.2~37^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eefea8392525ac9f9e182a5695db97ef59dd15e0;p=graphviz remove unused imports in Python files --- diff --git a/ci/tests.py b/ci/tests.py index d8151b887..4dcec26bb 100644 --- a/ci/tests.py +++ b/ci/tests.py @@ -7,7 +7,6 @@ test cases that are only relevant to run in CI import platform import pytest import shutil -import subprocess import os @pytest.mark.parametrize("binary", [ diff --git a/rtest/generate_graph.py b/rtest/generate_graph.py index e00ab5fbd..fe9d21e69 100755 --- a/rtest/generate_graph.py +++ b/rtest/generate_graph.py @@ -29,7 +29,6 @@ Some ideas for TODO: """ import argparse -from enum import Enum import os from pathlib import Path import platform diff --git a/rtest/rtest.py b/rtest/rtest.py index 11c022ea4..0ca493309 100755 --- a/rtest/rtest.py +++ b/rtest/rtest.py @@ -9,14 +9,12 @@ import os import shutil -import tempfile import shutil import subprocess import sys import platform import argparse import atexit -import pathlib TESTFILE = os.path.join(os.path.dirname(__file__), "tests.txt") # Test specifications diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 7bf296155..b7826a764 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -9,7 +9,6 @@ import re import sys import stat import tempfile -from typing import List, Optional, Tuple sys.path.append(os.path.dirname(__file__)) from gvtest import run_c diff --git a/tclpkg/gv/demo/modgraph.py b/tclpkg/gv/demo/modgraph.py index b0590d9c3..fe61f8248 100755 --- a/tclpkg/gv/demo/modgraph.py +++ b/tclpkg/gv/demo/modgraph.py @@ -5,7 +5,6 @@ # author: Michael Hohn # based on: modgraph.tcl by John Ellson -import sys import gv modules = open("/proc/modules", "r").readlines() diff --git a/tclpkg/gv/examples/simple.py b/tclpkg/gv/examples/simple.py index df498db67..f2e4f909f 100755 --- a/tclpkg/gv/examples/simple.py +++ b/tclpkg/gv/examples/simple.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import sys import gv # create a new empty graph diff --git a/tests/reference/test_reference.py b/tests/reference/test_reference.py index abd3ce716..d77d52c77 100644 --- a/tests/reference/test_reference.py +++ b/tests/reference/test_reference.py @@ -2,7 +2,6 @@ from pathlib import Path import pytest import subprocess import tempfile -from typing import Optional @pytest.mark.xfail @pytest.mark.parametrize('src,format,reference', ( diff --git a/tests/regression_tests/large/test_large_graphs.py b/tests/regression_tests/large/test_large_graphs.py index ec50fee5f..9bd85a2fb 100644 --- a/tests/regression_tests/large/test_large_graphs.py +++ b/tests/regression_tests/large/test_large_graphs.py @@ -2,7 +2,6 @@ import pytest import subprocess import os -import sys import platform diff --git a/tests/regression_tests/shapes/shapes.py b/tests/regression_tests/shapes/shapes.py index 67436016f..28405d4af 100644 --- a/tests/regression_tests/shapes/shapes.py +++ b/tests/regression_tests/shapes/shapes.py @@ -1,5 +1,5 @@ from subprocess import Popen, PIPE -import os.path, sys +import sys from pathlib import Path # Import helper function to compare graphs from tests/regressions_tests