mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 04:54:51 +02:00
Rerun pylint with pycharm-5 and fix pep8 issues as well.
This commit is contained in:
@@ -16,8 +16,9 @@ class ValidityRoutines(object):
|
||||
:param valid_type: The type against which to validate
|
||||
:type valid_type: type
|
||||
"""
|
||||
assert isinstance(value, valid_type), self.__class__.__name__ + " expected " + \
|
||||
valid_type.__name__ + ", not " + type(value).__name__
|
||||
assert isinstance(value,
|
||||
valid_type), self.__class__.__name__ + " expected " + valid_type.__name__ + ", not " + type(
|
||||
value).__name__
|
||||
return value
|
||||
|
||||
def _class_check(self, klass, valid_class):
|
||||
@@ -28,5 +29,5 @@ class ValidityRoutines(object):
|
||||
:param valid_class: Valid class against which to check class validity
|
||||
:type valid_class: class
|
||||
"""
|
||||
assert issubclass(klass, valid_class), self.__class__.__name__ + " expected " + \
|
||||
valid_class.__name__ + ", not " + klass.__name__
|
||||
assert issubclass(klass,
|
||||
valid_class), self.__class__.__name__ + " expected " + valid_class.__name__ + ", not " + klass.__name__
|
||||
|
||||
Reference in New Issue
Block a user