X Tutup
Skip to content

Commit 9b08fbe

Browse files
authored
chore: remove unused imports in our python scripts (electron#25406)
Seen at https://lgtm.com/projects/g/electron/electron/?mode=list&id=py%2Funused-import and confirmed with manual inspection.
1 parent 70e3aa0 commit 9b08fbe

File tree

13 files changed

+5
-27
lines changed

13 files changed

+5
-27
lines changed

build/profile_toolchain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from vs_toolchain import \
1212
SetEnvironmentAndGetRuntimeDllDirs, \
1313
SetEnvironmentAndGetSDKDir, \
14-
GetVisualStudioVersion, \
1514
NormalizePath
1615

1716
sys.path.append("%s/win_toolchain" % find_depot_tools.add_depot_tools_to_path())

build/run-in-dir.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sys
22
import os
3-
import subprocess
43

54
def main(argv):
65
cwd = argv[1]

script/apply_all_patches.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import argparse
44
import json
55
import os
6-
import sys
76

87
from lib import git
98
from lib.patches import patch_from_dir

script/dbus_mock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22

3-
import atexit
43
import os
54
import subprocess
65
import sys

script/export_all_patches.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import argparse
44
import json
5-
import os
6-
import sys
75

86
from lib import git
97

script/git-export-patches

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/usr/bin/env python2
22

33
import argparse
4-
import os
5-
import re
6-
import subprocess
74
import sys
85

96
from lib import git

script/git-import-patches

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python2
22

33
import argparse
4-
import os
54
import sys
65

76
from lib import git

script/lib/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/usr/bin/env python
22

33
from __future__ import print_function
4-
import errno
54
import os
6-
import platform
75
import sys
86

97
# URL to the mips64el sysroot image.

script/lib/util.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
from __future__ import print_function
44
import atexit
55
import contextlib
6-
import datetime
76
import errno
87
import json
98
import os
10-
import platform
11-
import re
129
import shutil
1310
import ssl
1411
import stat
@@ -23,8 +20,7 @@
2320
from urllib2 import urlopen
2421
import zipfile
2522

26-
from lib.config import is_verbose_mode, PLATFORM
27-
from lib.env_util import get_vs_env
23+
from lib.config import is_verbose_mode
2824

2925
ELECTRON_DIR = os.path.abspath(
3026
os.path.dirname(os.path.dirname(os.path.dirname(__file__)))

script/release/uploaders/upload-symbols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def is_fs_case_sensitive():
1414
sys.path.append(
1515
os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../.."))
1616

17-
from lib.config import PLATFORM, s3_config, enable_verbose_mode
18-
from lib.util import get_electron_branding, execute, rm_rf, safe_mkdir, s3put, \
17+
from lib.config import PLATFORM, s3_config
18+
from lib.util import get_electron_branding, execute, s3put, \
1919
get_out_dir, ELECTRON_DIR
2020

2121
RELEASE_DIR = get_out_dir()

0 commit comments

Comments
 (0)
X Tutup