aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2020-07-22 23:12:39 -0700
committerZac Medico <zmedico@gentoo.org>2020-07-22 23:54:40 -0700
commit9ed5ca27f3793a405a4e111af9b6110baf8268e8 (patch)
tree0d4a39470ff950019949cf575b1bbfb2488c959f /lib/_emerge
parentFix 'unused-import' for stdlib imports. (diff)
downloadportage-9ed5ca27f3793a405a4e111af9b6110baf8268e8.tar.gz
portage-9ed5ca27f3793a405a4e111af9b6110baf8268e8.tar.bz2
portage-9ed5ca27f3793a405a4e111af9b6110baf8268e8.zip
Fix C0305, trailing newlines.
pylint --disable=all --enable=C0305 | awk -F: '{print $1}' | xargs sed -i -e '$d' Removes the trailing newlines. Signed-off-by: Alec Warner <antarus@gentoo.org> Change-Id: I18db6ec682192ab44e07bad00c14f316caf43c0e Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/BinpkgFetcher.py1
-rw-r--r--lib/_emerge/BinpkgPrefetcher.py1
-rw-r--r--lib/_emerge/BlockerCache.py1
-rw-r--r--lib/_emerge/DepPriority.py1
-rw-r--r--lib/_emerge/Dependency.py1
-rw-r--r--lib/_emerge/EbuildBuildDir.py1
-rw-r--r--lib/_emerge/EbuildExecuter.py1
-rw-r--r--lib/_emerge/PackageVirtualDbapi.py1
-rw-r--r--lib/_emerge/PipeReader.py1
-rw-r--r--lib/_emerge/ProgressHandler.py1
-rw-r--r--lib/_emerge/SetArg.py1
-rw-r--r--lib/_emerge/UnmergeDepPriority.py1
-rw-r--r--lib/_emerge/_find_deep_system_runtime_deps.py1
-rw-r--r--lib/_emerge/create_depgraph_params.py1
-rw-r--r--lib/_emerge/create_world_atom.py1
-rw-r--r--lib/_emerge/search.py1
-rw-r--r--lib/_emerge/show_invalid_depstring_notice.py1
-rw-r--r--lib/_emerge/unmerge.py1
18 files changed, 0 insertions, 18 deletions
diff --git a/lib/_emerge/BinpkgFetcher.py b/lib/_emerge/BinpkgFetcher.py
index 01c9bc1e6..218d4d2ab 100644
--- a/lib/_emerge/BinpkgFetcher.py
+++ b/lib/_emerge/BinpkgFetcher.py
@@ -232,4 +232,3 @@ class _BinpkgFetcherProcess(SpawnProcess):
self._lock_obj = None
self.locked = False
return result
-
diff --git a/lib/_emerge/BinpkgPrefetcher.py b/lib/_emerge/BinpkgPrefetcher.py
index 7ca897049..1393297b5 100644
--- a/lib/_emerge/BinpkgPrefetcher.py
+++ b/lib/_emerge/BinpkgPrefetcher.py
@@ -40,4 +40,3 @@ class BinpkgPrefetcher(CompositeTask):
self._current_task = None
self.returncode = os.EX_OK
self.wait()
-
diff --git a/lib/_emerge/BlockerCache.py b/lib/_emerge/BlockerCache.py
index 008cbd0a8..8154d9ade 100644
--- a/lib/_emerge/BlockerCache.py
+++ b/lib/_emerge/BlockerCache.py
@@ -176,4 +176,3 @@ class BlockerCache(portage.cache.mappings.MutableMapping):
@return: An object with counter and atoms attributes.
"""
return self.BlockerData(*self._cache_data["blockers"][cpv])
-
diff --git a/lib/_emerge/DepPriority.py b/lib/_emerge/DepPriority.py
index 34fdb481c..ec79bb3d5 100644
--- a/lib/_emerge/DepPriority.py
+++ b/lib/_emerge/DepPriority.py
@@ -53,4 +53,3 @@ class DepPriority(AbstractDepPriority):
if self.runtime_post:
return "runtime_post"
return "soft"
-
diff --git a/lib/_emerge/Dependency.py b/lib/_emerge/Dependency.py
index 2ec860f83..ab3c5bbff 100644
--- a/lib/_emerge/Dependency.py
+++ b/lib/_emerge/Dependency.py
@@ -18,4 +18,3 @@ class Dependency(SlotObject):
self.collapsed_parent = self.parent
if self.collapsed_priority is None:
self.collapsed_priority = self.priority
-
diff --git a/lib/_emerge/EbuildBuildDir.py b/lib/_emerge/EbuildBuildDir.py
index 477113db8..04667dbd7 100644
--- a/lib/_emerge/EbuildBuildDir.py
+++ b/lib/_emerge/EbuildBuildDir.py
@@ -158,4 +158,3 @@ class EbuildBuildDir(SlotObject):
class AlreadyLocked(portage.exception.PortageException):
pass
-
diff --git a/lib/_emerge/EbuildExecuter.py b/lib/_emerge/EbuildExecuter.py
index acc57c1d0..11e49804f 100644
--- a/lib/_emerge/EbuildExecuter.py
+++ b/lib/_emerge/EbuildExecuter.py
@@ -79,4 +79,3 @@ class EbuildExecuter(CompositeTask):
settings=self.settings))
self._start_task(ebuild_phases, self._default_final_exit)
-
diff --git a/lib/_emerge/PackageVirtualDbapi.py b/lib/_emerge/PackageVirtualDbapi.py
index 2070dd9be..4bba8c959 100644
--- a/lib/_emerge/PackageVirtualDbapi.py
+++ b/lib/_emerge/PackageVirtualDbapi.py
@@ -142,4 +142,3 @@ class PackageVirtualDbapi(dbapi):
def aux_update(self, cpv, values):
self._cpv_map[cpv]._metadata.update(values)
self._clear_cache()
-
diff --git a/lib/_emerge/PipeReader.py b/lib/_emerge/PipeReader.py
index 4139fbae2..852378113 100644
--- a/lib/_emerge/PipeReader.py
+++ b/lib/_emerge/PipeReader.py
@@ -92,4 +92,3 @@ class PipeReader(AbstractPollTask):
self.scheduler.remove_reader(f.fileno())
f.close()
self.input_files = None
-
diff --git a/lib/_emerge/ProgressHandler.py b/lib/_emerge/ProgressHandler.py
index 89dacf48f..d7787e040 100644
--- a/lib/_emerge/ProgressHandler.py
+++ b/lib/_emerge/ProgressHandler.py
@@ -19,4 +19,3 @@ class ProgressHandler:
def display(self):
raise NotImplementedError(self)
-
diff --git a/lib/_emerge/SetArg.py b/lib/_emerge/SetArg.py
index 5c8297547..2fee86c49 100644
--- a/lib/_emerge/SetArg.py
+++ b/lib/_emerge/SetArg.py
@@ -11,4 +11,3 @@ class SetArg(DependencyArg):
DependencyArg.__init__(self, **kwargs)
self.pset = pset
self.name = self.arg[len(SETPREFIX):]
-
diff --git a/lib/_emerge/UnmergeDepPriority.py b/lib/_emerge/UnmergeDepPriority.py
index ec44a67a1..ed831ed45 100644
--- a/lib/_emerge/UnmergeDepPriority.py
+++ b/lib/_emerge/UnmergeDepPriority.py
@@ -43,4 +43,3 @@ class UnmergeDepPriority(AbstractDepPriority):
if myvalue > self.SOFT:
return "hard"
return "soft"
-
diff --git a/lib/_emerge/_find_deep_system_runtime_deps.py b/lib/_emerge/_find_deep_system_runtime_deps.py
index ca09d83ac..d88296d5f 100644
--- a/lib/_emerge/_find_deep_system_runtime_deps.py
+++ b/lib/_emerge/_find_deep_system_runtime_deps.py
@@ -35,4 +35,3 @@ def _find_deep_system_runtime_deps(graph):
node_stack.append(child)
return deep_system_deps
-
diff --git a/lib/_emerge/create_depgraph_params.py b/lib/_emerge/create_depgraph_params.py
index 81edcb9c0..0d0e07b9c 100644
--- a/lib/_emerge/create_depgraph_params.py
+++ b/lib/_emerge/create_depgraph_params.py
@@ -195,4 +195,3 @@ def create_depgraph_params(myopts, myaction):
noiselevel=-1, level=logging.DEBUG)
return myparams
-
diff --git a/lib/_emerge/create_world_atom.py b/lib/_emerge/create_world_atom.py
index 9d08b6af8..8b506c36e 100644
--- a/lib/_emerge/create_world_atom.py
+++ b/lib/_emerge/create_world_atom.py
@@ -121,4 +121,3 @@ def create_world_atom(pkg, args_set, root_config, before_install=False):
providers[0].cp == arg_atom.cp:
return None
return new_world_atom
-
diff --git a/lib/_emerge/search.py b/lib/_emerge/search.py
index 6cb69d3c1..14d7e3562 100644
--- a/lib/_emerge/search.py
+++ b/lib/_emerge/search.py
@@ -526,4 +526,3 @@ class search:
else:
result = ""
return result
-
diff --git a/lib/_emerge/show_invalid_depstring_notice.py b/lib/_emerge/show_invalid_depstring_notice.py
index e11ea65ed..a2f29eae6 100644
--- a/lib/_emerge/show_invalid_depstring_notice.py
+++ b/lib/_emerge/show_invalid_depstring_notice.py
@@ -32,4 +32,3 @@ def show_invalid_depstring_notice(parent_node, error_msg):
msg2 = "".join("%s\n" % line for line in textwrap.wrap("".join(msg), 72))
writemsg_level(msg1 + msg2, level=logging.ERROR, noiselevel=-1)
-
diff --git a/lib/_emerge/unmerge.py b/lib/_emerge/unmerge.py
index 8923e20ea..9c012e431 100644
--- a/lib/_emerge/unmerge.py
+++ b/lib/_emerge/unmerge.py
@@ -605,4 +605,3 @@ def unmerge(root_config, myopts, unmerge_action,
sets["selected"].unlock()
return os.EX_OK
-