mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fool PyLint. It's a "decorator"!
This commit is contained in:
parent
3f43ab8d28
commit
d60060c96a
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue