From fbe946099581428c090ec5db2e20f9f21f5c0a06 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 19 Oct 2020 18:07:54 +0100 Subject: [PATCH] pylint: Remove uneccessary pass statements --- wa/framework/command.py | 1 - wa/framework/exception.py | 11 ----------- wa/framework/workload.py | 5 ----- 3 files changed, 17 deletions(-) diff --git a/wa/framework/command.py b/wa/framework/command.py index e2088028..856d8125 100644 --- a/wa/framework/command.py +++ b/wa/framework/command.py @@ -65,7 +65,6 @@ class SubCommand(object): options to the command's parser). ``context`` is always ``None``. """ - pass def execute(self, state, args): """ diff --git a/wa/framework/exception.py b/wa/framework/exception.py index ee17a50e..5f323e56 100644 --- a/wa/framework/exception.py +++ b/wa/framework/exception.py @@ -30,60 +30,49 @@ class WAError(Exception): class NotFoundError(WAError): """Raised when the specified item is not found.""" - pass class ValidationError(WAError): """Raised on failure to validate an extension.""" - pass class ExecutionError(WAError): """Error encountered by the execution framework.""" - pass class WorkloadError(WAError): """General Workload error.""" - pass class JobError(WAError): """Job execution error.""" - pass class InstrumentError(WAError): """General Instrument error.""" - pass class OutputProcessorError(WAError): """General OutputProcessor error.""" - pass class ResourceError(WAError): """General Resolver error.""" - pass class CommandError(WAError): """Raised by commands when they have encountered an error condition during execution.""" - pass class ToolError(WAError): """Raised by tools when they have encountered an error condition during execution.""" - pass class ConfigError(WAError): """Raised when configuration provided is invalid. This error suggests that the user should modify their config and try again.""" - pass class SerializerSyntaxError(Exception): diff --git a/wa/framework/workload.py b/wa/framework/workload.py index 35287de2..1b701d4e 100644 --- a/wa/framework/workload.py +++ b/wa/framework/workload.py @@ -124,13 +124,11 @@ class Workload(TargetedPlugin): Execute the workload. This is the method that performs the actual "work" of the workload. """ - pass def extract_results(self, context): """ Extract results on the target """ - pass def update_output(self, context): """ @@ -138,11 +136,9 @@ class Workload(TargetedPlugin): metrics and artifacts for this workload iteration. """ - pass def teardown(self, context): """ Perform any final clean up for the Workload. """ - pass @once_per_instance def finalize(self, context): @@ -325,7 +321,6 @@ class ApkWorkload(Workload): Perform the setup necessary to rerun the workload. Only called if ``requires_rerun`` is set. """ - pass def teardown(self, context): super(ApkWorkload, self).teardown(context)