1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-09-18 04:22:21 +00:00

Still not functional

This commit is contained in:
J. Fernando Sánchez
2015-11-02 12:28:05 +01:00
parent aafd6a0938
commit ecc2a8312a
4 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
"""
"""
from future import standard_library
standard_library.install_aliases()
import gevent
from gevent import monkey
monkey.patch_all()
@@ -102,7 +104,7 @@ class Senpy(object):
def default_plugin(self):
candidates = self.filter_plugins(is_activated=True)
if len(candidates) > 0:
candidate = candidates.values()[0]
candidate = list(candidates.values())[0]
logger.debug("Default: {}".format(candidate))
return candidate
else: