Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: remove unnecessary imports and assignments #7483

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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