This file is indexed.

/usr/lib/python2.7/dist-packages/yapsy/IMultiprocessChildPlugin.py is in python-yapsy 1.11.223-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t; python-indent: 4 -*-


"""
Role
====

Defines the basic interfaces for multiprocessed plugins.

Extensibility
=============

In your own software, you'll probably want to build derived classes of
the ``IMultiprocessChildPlugin`` class as it is a mere interface with no specific
functionality.

Your software's plugins should then inherit your very own plugin class
(itself derived from ``IMultiprocessChildPlugin``).

Override the run method to include your code. Use the self.parent_pipe to send
and receive data with the parent process or create your own communication
mecanism.

Where and how to code these plugins is explained in the section about
the :doc:`PluginManager`.

API
===
"""

from multiprocessing import Process
from yapsy.IPlugin import IPlugin


class IMultiprocessChildPlugin(IPlugin, Process):
	"""
	Base class for multiprocessed plugin.
	"""

	def __init__(self, parent_pipe):
		self.parent_pipe = parent_pipe
		IPlugin.__init__(self)
		Process.__init__(self)

	def run(self):
		"""
		Override this method in your implementation
		"""
		return