]> granicus.if.org Git - graphviz/commitdiff
remove unused imports in Python files
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 16:52:56 +0000 (09:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 May 2021 00:35:16 +0000 (17:35 -0700)
ci/tests.py
rtest/generate_graph.py
rtest/rtest.py
rtest/test_regression.py
tclpkg/gv/demo/modgraph.py
tclpkg/gv/examples/simple.py
tests/reference/test_reference.py
tests/regression_tests/large/test_large_graphs.py
tests/regression_tests/shapes/shapes.py

index d8151b88718276bc0cab7370c10a1756988aef2a..4dcec26bb4c3a22ba04a893e296e2762946cbb00 100644 (file)
@@ -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", [
index e00ab5fbdaf162571907b38cd26fa3fe9070a33c..fe9d21e6926ea204f17a33740a28ab95a6eeecf0 100755 (executable)
@@ -29,7 +29,6 @@ Some ideas for TODO:
 """
 
 import argparse
-from enum import Enum
 import os
 from pathlib import Path
 import platform
index 11c022ea41d256d144522412c778166a2f5d1bee..0ca49330975f48caf9776f75b1587af67ef7352f 100755 (executable)
@@ -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
index 7bf29615545e7eb59c254daf8b1a0ff2850692fc..b7826a7643b62afbd974cf385e7bb022ced44680 100644 (file)
@@ -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
index b0590d9c38fcaebeb0b69488938a163237b70d05..fe61f8248ae82256b7ec5b9d6523421c0e63e462 100755 (executable)
@@ -5,7 +5,6 @@
 # author: Michael Hohn <mhhohn@lbl.gov>
 #  based on: modgraph.tcl by John Ellson <ellson@research.att.com>
 
-import sys
 import gv
 
 modules = open("/proc/modules", "r").readlines()
index df498db674f2f59e613df8751c131ee6b4e5aadf..f2e4f909f06318ae5addfabb511dbfb2fe3f3b8d 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/python
-import sys
 import gv
 
 # create a new empty graph
index abd3ce716842707959bddddcb884abe6cb522486..d77d52c778324790252fbeb9e9c79423fd861947 100644 (file)
@@ -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', (
index ec50fee5f6a950092ddc132e76d4bc5d4fe622e1..9bd85a2fb46af8beda55a39386b5e148d3ce72ea 100644 (file)
@@ -2,7 +2,6 @@ import pytest
 \r
 import subprocess\r
 import os\r
-import sys\r
 import platform\r
 \r
 \r
index 67436016fdca2445c518d0e1b3aecd5d4c2dfb87..28405d4afe80f54bed1179a0d8d84731e97087ff 100644 (file)
@@ -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