Skip to content
Snippets Groups Projects
Commit 579c264c authored by Stefano Borini's avatar Stefano Borini
Browse files

Fix py3.5 error

parent 6506be58
No related branches found
No related tags found
1 merge request!174Added name, version and description to plugins
......@@ -51,10 +51,10 @@ def plugin_id(producer, identifier, version):
Parameters
----------
producer: str
producer: basestring
A unique string identifying the producer (company/research institute)
of the plugin (e.g. "enthought", "itwm")
identifier: str
identifier: basestring
A string identifying the plugin. It must be unique within the context
of the producer, who is responsible to guarantee that plugin names
are unique
......@@ -78,12 +78,12 @@ def _string_id(*args):
Parameters
----------
*args: str
*args: basestring
The strings to concatenate
Returns
-------
str: an identifier to be used.
basestring: an identifier to be used.
"""
def is_valid(entry):
return (
......
......@@ -8,7 +8,7 @@ from force_bdss.tests.dummy_classes.notification_listener import \
class DummyExtensionPlugin(BaseExtensionPlugin):
id = plugin_id(b"enthought", b"test", 0)
id = plugin_id("enthought", "test", 0)
def get_name(self):
return "Dummy extension"
......
......@@ -9,7 +9,7 @@ from force_bdss.tests.probe_classes.ui_hooks import ProbeUIHooksFactory
class ProbeExtensionPlugin(BaseExtensionPlugin):
id = plugin_id(b"enthought", b"test", 0)
id = plugin_id("enthought", "test", 0)
def get_name(self):
return "Probe extension"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment