Update code for Python3
This commit is contained in:
@@ -59,7 +59,7 @@ class IPlugin(object):
|
||||
def validConfRequirements(conf_requirements, iwla, plugin_path):
|
||||
for r in conf_requirements:
|
||||
if iwla.getConfValue(r, None) is None:
|
||||
print '\'%s\' conf value required for %s' % (r, plugin_path)
|
||||
print('\'%s\' conf value required for %s' % (r, plugin_path))
|
||||
return False
|
||||
|
||||
return True
|
||||
@@ -89,7 +89,7 @@ def preloadPlugins(plugins, iwla):
|
||||
|
||||
if len(classes) > 1:
|
||||
logger.warning('More than one class found in %s, loading may fail. Selecting %s' % (plugin_path, classes[0]))
|
||||
print classes
|
||||
print(classes)
|
||||
continue
|
||||
|
||||
plugin = classes[0](iwla)
|
||||
|
Reference in New Issue
Block a user