mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Fool PyLint. It's a "decorator"!
This commit is contained in:
parent
3f43ab8d28
commit
d60060c96a
@ -720,7 +720,10 @@ class Process(multiprocessing.Process, NewStyleClassMixIn):
|
||||
# we must wrap this class run method to allow for these extra steps
|
||||
# to be executed pre and post calling the actual run method,
|
||||
# having subclasses call super would just not work.
|
||||
self.run = self.__decorate_run(self.run)
|
||||
#
|
||||
# We use setattr here to fool pylint not to complain that we're
|
||||
# overriding run from the subclass here
|
||||
setattr(self, 'run', self.__decorate_run(self.run))
|
||||
|
||||
# __setstate__ and __getstate__ are only used on Windows.
|
||||
def __setstate__(self, state):
|
||||
|
Loading…
Reference in New Issue
Block a user