Fool PyLint. It's a "decorator"!

This commit is contained in:
Pedro Algarvio 2019-10-21 11:53:20 +01:00
parent 3f43ab8d28
commit d60060c96a
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -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):