Skip to content

Commit fa99dad

Browse files
thefourtheyeevanlucas
authored andcommitted
tools: remove unnecessary imports and assignments
PR-URL: #7483 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 80ca063 commit fa99dad

File tree

7 files changed

+3
-17
lines changed

7 files changed

+3
-17
lines changed

test/message/testcfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import test
2929
import os
30-
from os.path import join, dirname, exists, basename, isdir
30+
from os.path import join, exists, basename, isdir
3131
import re
3232

3333
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")

test/testpy/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727

2828
import test
2929
import os
30-
import shutil
31-
from os import mkdir
32-
from glob import glob
3330
from os.path import join, dirname, exists
3431
import re
3532

test/timers/testcfg.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@
2727

2828
import test
2929
import os
30-
import shutil
31-
from shutil import rmtree
32-
from os import mkdir
33-
from glob import glob
34-
from os.path import join, dirname, exists
30+
from os.path import join, exists
3531
import re
3632
import shlex
3733

tools/configure.d/nodedownload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def retrievefile(url, targetfile):
3535
try:
3636
sys.stdout.write(' <%s>\nConnecting...\r' % url)
3737
sys.stdout.flush()
38-
msg = ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
38+
ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
3939
print '' # clear the line
4040
return targetfile
4141
except:

tools/icu/shrink-icu-src.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#!/usr/bin/env python
22
import optparse
33
import os
4-
import pprint
54
import re
6-
import shlex
7-
import subprocess
85
import sys
96
import shutil
10-
import string
117

128
parser = optparse.OptionParser()
139

tools/specialize_node_d.py

-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
#
88

99
import re
10-
import subprocess
1110
import sys
12-
import errno
1311

1412
if len(sys.argv) != 5:
1513
print "usage: specialize_node_d.py outfile src/node.d flavor arch"

tools/test.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import logging
3333
import optparse
3434
import os
35-
import platform
3635
import re
3736
import signal
3837
import subprocess

0 commit comments

Comments
 (0)