summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2022-12-13 12:34:23 +0100
committerDaniel Kutik <daniel.kutik@lavawerk.com>2022-12-13 16:23:19 +0000
commit035f22abec2263a48770bffbe04e4cfdc443ff41 (patch)
treee416057cf3c7865438d8544cd538c9fe117f5ec2
parente0728a5ecdf49f26a0663284acd0fca1099bba15 (diff)
downloadgit-repo-035f22abec2263a48770bffbe04e4cfdc443ff41.tar.gz
pylint: remove unused imports
Removed unused imports accross multiple files. Change-Id: Ib5ae4cebf9660e7339b11e3fa592d99f8d51e8d8 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354700 Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com> Reviewed-by: Mike Frysinger <vapier@google.com>
-rw-r--r--git_superproject.py2
-rw-r--r--gitc_utils.py1
-rw-r--r--manifest_xml.py2
-rwxr-xr-xrun_tests1
-rw-r--r--subcmds/init.py6
-rw-r--r--subcmds/manifest.py1
-rw-r--r--subcmds/sync.py2
-rw-r--r--tests/test_git_superproject.py1
8 files changed, 3 insertions, 13 deletions
diff --git a/git_superproject.py b/git_superproject.py
index 7a4ca16b..b5c262b4 100644
--- a/git_superproject.py
+++ b/git_superproject.py
@@ -31,7 +31,7 @@ from typing import NamedTuple
31 31
32from git_command import git_require, GitCommand 32from git_command import git_require, GitCommand
33from git_config import RepoConfig 33from git_config import RepoConfig
34from git_refs import R_HEADS, GitRefs 34from git_refs import GitRefs
35 35
36_SUPERPROJECT_GIT_NAME = 'superproject.git' 36_SUPERPROJECT_GIT_NAME = 'superproject.git'
37_SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml' 37_SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml'
diff --git a/gitc_utils.py b/gitc_utils.py
index 486bbeb0..dfcfd2a4 100644
--- a/gitc_utils.py
+++ b/gitc_utils.py
@@ -14,7 +14,6 @@
14 14
15import os 15import os
16import multiprocessing 16import multiprocessing
17import platform
18import re 17import re
19import sys 18import sys
20import time 19import time
diff --git a/manifest_xml.py b/manifest_xml.py
index 129eb3f7..5b83f368 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -22,7 +22,7 @@ import xml.dom.minidom
22import urllib.parse 22import urllib.parse
23 23
24import gitc_utils 24import gitc_utils
25from git_config import GitConfig, IsId 25from git_config import GitConfig
26from git_refs import R_HEADS, HEAD 26from git_refs import R_HEADS, HEAD
27from git_superproject import Superproject 27from git_superproject import Superproject
28import platform_utils 28import platform_utils
diff --git a/run_tests b/run_tests
index 573dd446..5de51cf0 100755
--- a/run_tests
+++ b/run_tests
@@ -15,7 +15,6 @@
15 15
16"""Wrapper to run pytest with the right settings.""" 16"""Wrapper to run pytest with the right settings."""
17 17
18import errno
19import os 18import os
20import shutil 19import shutil
21import subprocess 20import subprocess
diff --git a/subcmds/init.py b/subcmds/init.py
index 0c979cd4..d732374d 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -13,16 +13,10 @@
13# limitations under the License. 13# limitations under the License.
14 14
15import os 15import os
16import platform
17import re
18import sys 16import sys
19import urllib.parse
20 17
21from color import Coloring 18from color import Coloring
22from command import InteractiveCommand, MirrorSafeCommand 19from command import InteractiveCommand, MirrorSafeCommand
23from error import ManifestParseError
24from project import SyncBuffer
25from git_config import GitConfig
26from git_command import git_require, MIN_GIT_VERSION_SOFT, MIN_GIT_VERSION_HARD 20from git_command import git_require, MIN_GIT_VERSION_SOFT, MIN_GIT_VERSION_HARD
27from wrapper import Wrapper 21from wrapper import Wrapper
28 22
diff --git a/subcmds/manifest.py b/subcmds/manifest.py
index 08905cb4..f4602a59 100644
--- a/subcmds/manifest.py
+++ b/subcmds/manifest.py
@@ -15,7 +15,6 @@
15import json 15import json
16import os 16import os
17import sys 17import sys
18import optparse
19 18
20from command import PagedCommand 19from command import PagedCommand
21 20
diff --git a/subcmds/sync.py b/subcmds/sync.py
index e4e7a971..8db429bf 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -55,7 +55,7 @@ import gitc_utils
55from project import Project 55from project import Project
56from project import RemoteSpec 56from project import RemoteSpec
57from command import Command, DEFAULT_LOCAL_JOBS, MirrorSafeCommand, WORKER_BATCH_SIZE 57from command import Command, DEFAULT_LOCAL_JOBS, MirrorSafeCommand, WORKER_BATCH_SIZE
58from error import RepoChangedException, GitError, ManifestParseError 58from error import RepoChangedException, GitError
59import platform_utils 59import platform_utils
60from project import SyncBuffer 60from project import SyncBuffer
61from progress import Progress 61from progress import Progress
diff --git a/tests/test_git_superproject.py b/tests/test_git_superproject.py
index 49295d83..0bdf1a4e 100644
--- a/tests/test_git_superproject.py
+++ b/tests/test_git_superproject.py
@@ -21,7 +21,6 @@ import tempfile
21import unittest 21import unittest
22from unittest import mock 22from unittest import mock
23 23
24from git_command import GitCommand
25import git_superproject 24import git_superproject
26import git_trace2_event_log 25import git_trace2_event_log
27import manifest_xml 26import manifest_xml