Browse Source

tools: remove unnecessary imports and assignments

PR-URL: https://github.com/nodejs/node/pull/7483
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v6.x
Sakthipriyan Vairamani 9 years ago
committed by Evan Lucas
parent
commit
fa99dadda4
  1. 2
      test/message/testcfg.py
  2. 3
      test/testpy/__init__.py
  3. 6
      test/timers/testcfg.py
  4. 2
      tools/configure.d/nodedownload.py
  5. 4
      tools/icu/shrink-icu-src.py
  6. 2
      tools/specialize_node_d.py
  7. 1
      tools/test.py

2
test/message/testcfg.py

@ -27,7 +27,7 @@
import test import test
import os import os
from os.path import join, dirname, exists, basename, isdir from os.path import join, exists, basename, isdir
import re import re
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")

3
test/testpy/__init__.py

@ -27,9 +27,6 @@
import test import test
import os import os
import shutil
from os import mkdir
from glob import glob
from os.path import join, dirname, exists from os.path import join, dirname, exists
import re import re

6
test/timers/testcfg.py

@ -27,11 +27,7 @@
import test import test
import os import os
import shutil from os.path import join, exists
from shutil import rmtree
from os import mkdir
from glob import glob
from os.path import join, dirname, exists
import re import re
import shlex import shlex

2
tools/configure.d/nodedownload.py

@ -35,7 +35,7 @@ def retrievefile(url, targetfile):
try: try:
sys.stdout.write(' <%s>\nConnecting...\r' % url) sys.stdout.write(' <%s>\nConnecting...\r' % url)
sys.stdout.flush() sys.stdout.flush()
msg = ConfigOpener().retrieve(url, targetfile, reporthook=reporthook) ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
print '' # clear the line print '' # clear the line
return targetfile return targetfile
except: except:

4
tools/icu/shrink-icu-src.py

@ -1,13 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
import optparse import optparse
import os import os
import pprint
import re import re
import shlex
import subprocess
import sys import sys
import shutil import shutil
import string
parser = optparse.OptionParser() parser = optparse.OptionParser()

2
tools/specialize_node_d.py

@ -7,9 +7,7 @@
# #
import re import re
import subprocess
import sys import sys
import errno
if len(sys.argv) != 5: if len(sys.argv) != 5:
print "usage: specialize_node_d.py outfile src/node.d flavor arch" print "usage: specialize_node_d.py outfile src/node.d flavor arch"

1
tools/test.py

@ -32,7 +32,6 @@ import imp
import logging import logging
import optparse import optparse
import os import os
import platform
import re import re
import signal import signal
import subprocess import subprocess

Loading…
Cancel
Save