From 91c9e4961231f4e53f80d74cea65c894fd7fe3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 4 Dec 2018 16:06:33 +0100 Subject: [PATCH] Drop unnecessary 'pass' to make pylint happy --- qubes/__init__.py | 1 - qubes/api/__init__.py | 2 -- qubes/devices.py | 2 -- qubes/exc.py | 2 -- qubes/storage/__init__.py | 5 ----- qubespolicy/__init__.py | 1 - 6 files changed, 13 deletions(-) diff --git a/qubes/__init__.py b/qubes/__init__.py index 0dd6e038..e4c339b3 100644 --- a/qubes/__init__.py +++ b/qubes/__init__.py @@ -376,7 +376,6 @@ class property: # pylint: disable=redefined-builtin,invalid-name '''This exception may be raised from saver to sign that property should not be saved. ''' - pass @staticmethod def dontsave(self, prop, value): diff --git a/qubes/api/__init__.py b/qubes/api/__init__.py index 82c84d7e..e83fadb8 100644 --- a/qubes/api/__init__.py +++ b/qubes/api/__init__.py @@ -33,12 +33,10 @@ import qubes.exc class ProtocolError(AssertionError): '''Raised when something is wrong with data received''' - pass class PermissionDenied(Exception): '''Raised deliberately by handlers when we decide not to cooperate''' - pass def method(name, *, no_payload=False, endpoints=None, **classifiers): diff --git a/qubes/devices.py b/qubes/devices.py index a535cc70..d39ed325 100644 --- a/qubes/devices.py +++ b/qubes/devices.py @@ -61,11 +61,9 @@ import qubes.utils class DeviceNotAttached(qubes.exc.QubesException, KeyError): '''Trying to detach not attached device''' - pass class DeviceAlreadyAttached(qubes.exc.QubesException, KeyError): '''Trying to attach already attached device''' - pass class DeviceInfo: ''' Holds all information about a device ''' diff --git a/qubes/exc.py b/qubes/exc.py index 365d97f0..cac2437c 100644 --- a/qubes/exc.py +++ b/qubes/exc.py @@ -24,7 +24,6 @@ Qubes OS exception hierarchy class QubesException(Exception): '''Exception that can be shown to the user''' - pass class QubesVMNotFoundError(QubesException, KeyError): @@ -119,7 +118,6 @@ class QubesNoTemplateError(QubesVMError): class QubesValueError(QubesException, ValueError): '''Cannot set some value, because it is invalid, out of bounds, etc.''' - pass class QubesPropertyValueError(QubesValueError): diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index 5613ba67..3393900e 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -44,7 +44,6 @@ STORAGE_ENTRY_POINT = 'qubes.storage' class StoragePoolException(qubes.exc.QubesException): ''' A general storage exception ''' - pass class BlockDevice: @@ -214,7 +213,6 @@ class Volume: :param success: True if data import was successful, otherwise False ''' # by default do nothing - pass def import_volume(self, src_volume): ''' Imports data from a different volume (possibly in a different @@ -823,17 +821,14 @@ class Pool: :param app: Qubes() object to lookup other pools in :returns pool or None ''' - pass @property def size(self): ''' Storage pool size in bytes, or None if unknown ''' - pass @property def usage(self): ''' Space used in the pool in bytes, or None if unknown ''' - pass def _not_implemented(self, method_name): ''' Helper for emitting helpful `NotImplementedError` exceptions ''' diff --git a/qubespolicy/__init__.py b/qubespolicy/__init__.py index ff23842f..bd7958ce 100755 --- a/qubespolicy/__init__.py +++ b/qubespolicy/__init__.py @@ -38,7 +38,6 @@ QUBESD_SOCK = '/var/run/qubesd.sock' class AccessDenied(Exception): ''' Raised when qrexec policy denied access ''' - pass class PolicySyntaxError(AccessDenied):