1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 18:12:20 +00:00

Enhance plugin metaclass

* Change names of plugins to avoid repetitions (we may have to revert this)
* Make subprocess log private
This commit is contained in:
J. Fernando Sánchez
2018-01-02 11:56:55 +01:00
parent bfc588a915
commit abd401f863
3 changed files with 18 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
from senpy.plugins import SentimentPlugin
class DummyPlugin(SentimentPlugin):
class DummyNoInfo(SentimentPlugin):
description = 'This is a dummy self-contained plugin'
author = '@balkian'
@@ -23,5 +23,5 @@ class DummyPlugin(SentimentPlugin):
if __name__ == '__main__':
d = DummyPlugin()
d = DummyNoInfo()
d.test()

View File

@@ -1,5 +1,5 @@
from senpy.plugins import SentimentPlugin
class DummyPlugin(SentimentPlugin):
class NoOp(SentimentPlugin):
import noop