mirror of
https://github.com/nodejs/node.git
synced 2026-10-10 18:59:49 -04:00
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>
This commit is contained in:
1 parent
3ae4377a47
commit
89ede72fca
7 files changed
+3
-17
No files matched your search
@@ -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:(.*)")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -32,7 +32,6 @@ import imp
|
||||
import logging
|
||||
import optparse
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import signal
|
||||
import subprocess
|
||||
|
||||
Reference in new issue
Block a user