aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2020-07-22 17:34:59 -0700
committerZac Medico <zmedico@gentoo.org>2020-07-22 19:59:00 -0700
commitbe20b37180f709ab0e451e4e07b6e82ac3a87b56 (patch)
tree7a2ce667c62a402d554b1e96f68b21ba1992735d /lib/_emerge
parent_EbuildFetcherProcess: emit eerror for fetch failure in _proc_join_done (diff)
downloadportage-be20b37180f709ab0e451e4e07b6e82ac3a87b56.tar.gz
portage-be20b37180f709ab0e451e4e07b6e82ac3a87b56.tar.bz2
portage-be20b37180f709ab0e451e4e07b6e82ac3a87b56.zip
Fix 'unused-import' for stdlib imports.
This is part of a cleanup to enable pylint. This is only stdlib modules; there are hundreds of unused imports of other modules but its less clear how safe those are to remove due to side effects. Signed-off-by: Alec Warner <antarus@gentoo.org> Change-Id: If9bee83bbbe1620b34a0f8d153637909af2b8512 Closes: https://github.com/gentoo/portage/pull/585 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/AbstractPollTask.py1
-rw-r--r--lib/_emerge/BlockerCache.py1
-rw-r--r--lib/_emerge/BlockerDB.py1
-rw-r--r--lib/_emerge/DependencyArg.py1
-rw-r--r--lib/_emerge/FakeVartree.py1
-rw-r--r--lib/_emerge/FifoIpcDaemon.py1
-rw-r--r--lib/_emerge/Package.py2
-rw-r--r--lib/_emerge/PackageVirtualDbapi.py1
-rw-r--r--lib/_emerge/PipeReader.py1
-rw-r--r--lib/_emerge/SequentialTaskQueue.py1
-rw-r--r--lib/_emerge/TaskSequence.py1
-rw-r--r--lib/_emerge/UseFlagDisplay.py1
-rw-r--r--lib/_emerge/actions.py4
-rw-r--r--lib/_emerge/create_world_atom.py1
-rw-r--r--lib/_emerge/depgraph.py1
-rw-r--r--lib/_emerge/emergelog.py1
-rw-r--r--lib/_emerge/resolver/DbapiProvidesIndex.py1
-rw-r--r--lib/_emerge/resolver/output.py1
-rw-r--r--lib/_emerge/resolver/output_helpers.py1
-rw-r--r--lib/_emerge/resolver/slot_collision.py1
20 files changed, 0 insertions, 24 deletions
diff --git a/lib/_emerge/AbstractPollTask.py b/lib/_emerge/AbstractPollTask.py
index 7e9f2b536..661b81616 100644
--- a/lib/_emerge/AbstractPollTask.py
+++ b/lib/_emerge/AbstractPollTask.py
@@ -3,7 +3,6 @@
import array
import errno
-import logging
import os
from portage.util import writemsg_level
diff --git a/lib/_emerge/BlockerCache.py b/lib/_emerge/BlockerCache.py
index 9fa3a0d95..008cbd0a8 100644
--- a/lib/_emerge/BlockerCache.py
+++ b/lib/_emerge/BlockerCache.py
@@ -2,7 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
import errno
-import sys
from portage.util import writemsg
from portage.data import secpass
import portage
diff --git a/lib/_emerge/BlockerDB.py b/lib/_emerge/BlockerDB.py
index 356f25bee..7e1f88615 100644
--- a/lib/_emerge/BlockerDB.py
+++ b/lib/_emerge/BlockerDB.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
import portage
from portage import os
diff --git a/lib/_emerge/DependencyArg.py b/lib/_emerge/DependencyArg.py
index 4bb24d0ef..f7ac879ec 100644
--- a/lib/_emerge/DependencyArg.py
+++ b/lib/_emerge/DependencyArg.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
from portage import _encodings, _unicode_encode
diff --git a/lib/_emerge/FakeVartree.py b/lib/_emerge/FakeVartree.py
index b993cdb0d..37349bcdd 100644
--- a/lib/_emerge/FakeVartree.py
+++ b/lib/_emerge/FakeVartree.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
import warnings
import portage
diff --git a/lib/_emerge/FifoIpcDaemon.py b/lib/_emerge/FifoIpcDaemon.py
index ab1fdb572..a21e94db6 100644
--- a/lib/_emerge/FifoIpcDaemon.py
+++ b/lib/_emerge/FifoIpcDaemon.py
@@ -1,7 +1,6 @@
# Copyright 2010-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
from portage import os
from _emerge.AbstractPollTask import AbstractPollTask
diff --git a/lib/_emerge/Package.py b/lib/_emerge/Package.py
index a7ce39719..bf75fd97f 100644
--- a/lib/_emerge/Package.py
+++ b/lib/_emerge/Package.py
@@ -1,8 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import functools
-import sys
from itertools import chain
import warnings
diff --git a/lib/_emerge/PackageVirtualDbapi.py b/lib/_emerge/PackageVirtualDbapi.py
index a0905cce8..2070dd9be 100644
--- a/lib/_emerge/PackageVirtualDbapi.py
+++ b/lib/_emerge/PackageVirtualDbapi.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
from portage.dbapi import dbapi
from portage.dbapi.dep_expand import dep_expand
diff --git a/lib/_emerge/PipeReader.py b/lib/_emerge/PipeReader.py
index 90a31679e..4139fbae2 100644
--- a/lib/_emerge/PipeReader.py
+++ b/lib/_emerge/PipeReader.py
@@ -2,7 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
import fcntl
-import sys
from portage import os
from _emerge.AbstractPollTask import AbstractPollTask
diff --git a/lib/_emerge/SequentialTaskQueue.py b/lib/_emerge/SequentialTaskQueue.py
index 1cadbca41..40590b76c 100644
--- a/lib/_emerge/SequentialTaskQueue.py
+++ b/lib/_emerge/SequentialTaskQueue.py
@@ -2,7 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
from collections import deque
-import sys
from portage.util.futures import asyncio
from portage.util.futures.compat_coroutine import coroutine
diff --git a/lib/_emerge/TaskSequence.py b/lib/_emerge/TaskSequence.py
index d6816719f..8d1b0b859 100644
--- a/lib/_emerge/TaskSequence.py
+++ b/lib/_emerge/TaskSequence.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
from collections import deque
from portage import os
diff --git a/lib/_emerge/UseFlagDisplay.py b/lib/_emerge/UseFlagDisplay.py
index 61358cf7b..9496693c8 100644
--- a/lib/_emerge/UseFlagDisplay.py
+++ b/lib/_emerge/UseFlagDisplay.py
@@ -3,7 +3,6 @@
import collections
from itertools import chain
-import sys
from portage import _encodings, _unicode_encode
from portage.output import red
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index bbd21f5a2..964dca31c 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -8,12 +8,8 @@ import errno
import logging
import operator
import platform
-import pwd
-import random
import re
import signal
-import socket
-import stat
import subprocess
import sys
import tempfile
diff --git a/lib/_emerge/create_world_atom.py b/lib/_emerge/create_world_atom.py
index c4b8ccb69..9d08b6af8 100644
--- a/lib/_emerge/create_world_atom.py
+++ b/lib/_emerge/create_world_atom.py
@@ -1,7 +1,6 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-import sys
from portage.dep import Atom, _repo_separator
from portage.exception import InvalidData
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index 127dbe88f..653348d34 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -9,7 +9,6 @@ import functools
import io
import logging
import stat
-import sys
import textwrap
import warnings
from collections import deque, OrderedDict
diff --git a/lib/_emerge/emergelog.py b/lib/_emerge/emergelog.py
index be4ccfe35..2c429d6de 100644
--- a/lib/_emerge/emergelog.py
+++ b/lib/_emerge/emergelog.py
@@ -2,7 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
import io
-import sys
import time
import portage
from portage import os
diff --git a/lib/_emerge/resolver/DbapiProvidesIndex.py b/lib/_emerge/resolver/DbapiProvidesIndex.py
index 5a71d9e11..8c7c05f06 100644
--- a/lib/_emerge/resolver/DbapiProvidesIndex.py
+++ b/lib/_emerge/resolver/DbapiProvidesIndex.py
@@ -3,7 +3,6 @@
import bisect
import collections
-import sys
class DbapiProvidesIndex:
"""
diff --git a/lib/_emerge/resolver/output.py b/lib/_emerge/resolver/output.py
index 3ba197846..b4faafd75 100644
--- a/lib/_emerge/resolver/output.py
+++ b/lib/_emerge/resolver/output.py
@@ -8,7 +8,6 @@ __all__ = (
"Display", "format_unmatched_atom",
)
-import sys
import portage
from portage import os
diff --git a/lib/_emerge/resolver/output_helpers.py b/lib/_emerge/resolver/output_helpers.py
index a4a7d50cf..d5cc9dbcb 100644
--- a/lib/_emerge/resolver/output_helpers.py
+++ b/lib/_emerge/resolver/output_helpers.py
@@ -10,7 +10,6 @@ __all__ = (
import io
import re
-import sys
from portage import os
from portage import _encodings, _unicode_encode
diff --git a/lib/_emerge/resolver/slot_collision.py b/lib/_emerge/resolver/slot_collision.py
index 8375f030e..49034ee8f 100644
--- a/lib/_emerge/resolver/slot_collision.py
+++ b/lib/_emerge/resolver/slot_collision.py
@@ -3,7 +3,6 @@
from __future__ import print_function
-import sys
from portage import _encodings, _unicode_encode
from _emerge.AtomArg import AtomArg