Skip to content

Commit

Permalink
tools: remove unnecessary imports and assignments
Browse files Browse the repository at this point in the history
PR-URL: nodejs#7483
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
thefourtheye committed Jul 8, 2016
1 parent 3ae4377 commit 89ede72
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion test/message/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import test
import os
from os.path import join, dirname, exists, basename, isdir
from os.path import join, exists, basename, isdir
import re

FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
Expand Down
3 changes: 0 additions & 3 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@

import test
import os
import shutil
from os import mkdir
from glob import glob
from os.path import join, dirname, exists
import re

Expand Down
6 changes: 1 addition & 5 deletions test/timers/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@

import test
import os
import shutil
from shutil import rmtree
from os import mkdir
from glob import glob
from os.path import join, dirname, exists
from os.path import join, exists
import re
import shlex

Expand Down
2 changes: 1 addition & 1 deletion tools/configure.d/nodedownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def retrievefile(url, targetfile):
try:
sys.stdout.write(' <%s>\nConnecting...\r' % url)
sys.stdout.flush()
msg = ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
print '' # clear the line
return targetfile
except:
Expand Down
4 changes: 0 additions & 4 deletions tools/icu/shrink-icu-src.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/usr/bin/env python
import optparse
import os
import pprint
import re
import shlex
import subprocess
import sys
import shutil
import string

parser = optparse.OptionParser()

Expand Down
2 changes: 0 additions & 2 deletions tools/specialize_node_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
#

import re
import subprocess
import sys
import errno

if len(sys.argv) != 5:
print "usage: specialize_node_d.py outfile src/node.d flavor arch"
Expand Down
1 change: 0 additions & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import logging
import optparse
import os
import platform
import re
import signal
import subprocess
Expand Down

0 comments on commit 89ede72

Please sign in to comment.