Drop unnecessary 'pass' to make pylint happy

This commit is contained in:
Marek Marczykowski-Górecki 2018-12-04 16:06:33 +01:00
parent eee9964b11
commit 91c9e49612
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
6 changed files with 0 additions and 13 deletions

View File

@ -376,7 +376,6 @@ class property: # pylint: disable=redefined-builtin,invalid-name
'''This exception may be raised from saver to sign that property should '''This exception may be raised from saver to sign that property should
not be saved. not be saved.
''' '''
pass
@staticmethod @staticmethod
def dontsave(self, prop, value): def dontsave(self, prop, value):

View File

@ -33,12 +33,10 @@ import qubes.exc
class ProtocolError(AssertionError): class ProtocolError(AssertionError):
'''Raised when something is wrong with data received''' '''Raised when something is wrong with data received'''
pass
class PermissionDenied(Exception): class PermissionDenied(Exception):
'''Raised deliberately by handlers when we decide not to cooperate''' '''Raised deliberately by handlers when we decide not to cooperate'''
pass
def method(name, *, no_payload=False, endpoints=None, **classifiers): def method(name, *, no_payload=False, endpoints=None, **classifiers):

View File

@ -61,11 +61,9 @@ import qubes.utils
class DeviceNotAttached(qubes.exc.QubesException, KeyError): class DeviceNotAttached(qubes.exc.QubesException, KeyError):
'''Trying to detach not attached device''' '''Trying to detach not attached device'''
pass
class DeviceAlreadyAttached(qubes.exc.QubesException, KeyError): class DeviceAlreadyAttached(qubes.exc.QubesException, KeyError):
'''Trying to attach already attached device''' '''Trying to attach already attached device'''
pass
class DeviceInfo: class DeviceInfo:
''' Holds all information about a device ''' ''' Holds all information about a device '''

View File

@ -24,7 +24,6 @@ Qubes OS exception hierarchy
class QubesException(Exception): class QubesException(Exception):
'''Exception that can be shown to the user''' '''Exception that can be shown to the user'''
pass
class QubesVMNotFoundError(QubesException, KeyError): class QubesVMNotFoundError(QubesException, KeyError):
@ -119,7 +118,6 @@ class QubesNoTemplateError(QubesVMError):
class QubesValueError(QubesException, ValueError): class QubesValueError(QubesException, ValueError):
'''Cannot set some value, because it is invalid, out of bounds, etc.''' '''Cannot set some value, because it is invalid, out of bounds, etc.'''
pass
class QubesPropertyValueError(QubesValueError): class QubesPropertyValueError(QubesValueError):

View File

@ -44,7 +44,6 @@ STORAGE_ENTRY_POINT = 'qubes.storage'
class StoragePoolException(qubes.exc.QubesException): class StoragePoolException(qubes.exc.QubesException):
''' A general storage exception ''' ''' A general storage exception '''
pass
class BlockDevice: class BlockDevice:
@ -214,7 +213,6 @@ class Volume:
:param success: True if data import was successful, otherwise False :param success: True if data import was successful, otherwise False
''' '''
# by default do nothing # by default do nothing
pass
def import_volume(self, src_volume): def import_volume(self, src_volume):
''' Imports data from a different volume (possibly in a different ''' 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 :param app: Qubes() object to lookup other pools in
:returns pool or None :returns pool or None
''' '''
pass
@property @property
def size(self): def size(self):
''' Storage pool size in bytes, or None if unknown ''' ''' Storage pool size in bytes, or None if unknown '''
pass
@property @property
def usage(self): def usage(self):
''' Space used in the pool in bytes, or None if unknown ''' ''' Space used in the pool in bytes, or None if unknown '''
pass
def _not_implemented(self, method_name): def _not_implemented(self, method_name):
''' Helper for emitting helpful `NotImplementedError` exceptions ''' ''' Helper for emitting helpful `NotImplementedError` exceptions '''

View File

@ -38,7 +38,6 @@ QUBESD_SOCK = '/var/run/qubesd.sock'
class AccessDenied(Exception): class AccessDenied(Exception):
''' Raised when qrexec policy denied access ''' ''' Raised when qrexec policy denied access '''
pass
class PolicySyntaxError(AccessDenied): class PolicySyntaxError(AccessDenied):