Drop unnecessary 'pass' to make pylint happy
This commit is contained in:
parent
eee9964b11
commit
91c9e49612
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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 '''
|
||||
|
@ -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):
|
||||
|
@ -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 '''
|
||||
|
@ -38,7 +38,6 @@ QUBESD_SOCK = '/var/run/qubesd.sock'
|
||||
|
||||
class AccessDenied(Exception):
|
||||
''' Raised when qrexec policy denied access '''
|
||||
pass
|
||||
|
||||
|
||||
class PolicySyntaxError(AccessDenied):
|
||||
|
Loading…
Reference in New Issue
Block a user