Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-01-02 00:06:16 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-01-02 00:06:16 +0400
commit069bddbbcb4d2ba2a4f9c1727e12963ce8e80eab (patch)
tree6c8752025f245420ca2c3f24c8493de0c93fd025 /src/plugins
parent414e3493453630eaf69abb69f1bddd578a9461e1 (diff)
remove call to unicode()
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin.py14
-rw-r--r--src/plugins/pluginmanager.py6
2 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/plugin.py b/src/plugins/plugin.py
index f53424f11..49de73cf0 100644
--- a/src/plugins/plugin.py
+++ b/src/plugins/plugin.py
@@ -46,7 +46,7 @@ class GajimPlugin(object):
Will be shown in plugins management GUI.
- :type: unicode
+ :type: str
'''
short_name = ''
'''
@@ -54,7 +54,7 @@ class GajimPlugin(object):
Used for quick indentification of plugin.
- :type: unicode
+ :type: str
:todo: decide whether we really need this one, because class name (with
module name) can act as such short name
@@ -63,7 +63,7 @@ class GajimPlugin(object):
'''
Version of plugin.
- :type: unicode
+ :type: str
:todo: decide how to compare version between each other (which one
is higher). Also rethink: do we really need to compare versions
@@ -75,7 +75,7 @@ class GajimPlugin(object):
'''
Plugin description.
- :type: unicode
+ :type: str
:todo: should be allow rich text here (like HTML or reStructuredText)?
'''
@@ -83,7 +83,7 @@ class GajimPlugin(object):
'''
Plugin authors.
- :type: [] of unicode
+ :type: [] of str
:todo: should we decide on any particular format of author strings?
Especially: should we force format of giving author's e-mail?
@@ -92,7 +92,7 @@ class GajimPlugin(object):
'''
URL to plug-in's homepage.
- :type: unicode
+ :type: str
:todo: should we check whether provided string is valid URI? (Maybe
using 'property')
@@ -120,7 +120,7 @@ class GajimPlugin(object):
Values are tuples: (default_value, option_description). The first one can
be anything (this is the advantage of using shelve/pickle instead of
- custom-made config I/O handling); the second one should be unicode (gettext
+ custom-made config I/O handling); the second one should be str (gettext
can be used if need and/or translation is planned).
:type: {} of 2-element tuples
diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py
index 0a3dc9b75..d9fce1295 100644
--- a/src/plugins/pluginmanager.py
+++ b/src/plugins/pluginmanager.py
@@ -158,7 +158,7 @@ class PluginManager(object):
active yet).
:param gui_extpoint_name: name of GUI extension point.
- :type gui_extpoint_name: unicode
+ :type gui_extpoint_name: str
:param args: parameters to be passed to extension point handlers
(typically and object that invokes `gui_extension_point`;
however, this can be practically anything)
@@ -209,7 +209,7 @@ class PluginManager(object):
freedom, but is this necessary?
:param gui_extpoint_name: name of GUI extension point.
- :type gui_extpoint_name: unicode
+ :type gui_extpoint_name: str
:param args: arguments that `PluginManager.gui_extension_point` was
called with for this extension point. This is used (along with
extension point name) to identify element to be removed.
@@ -394,7 +394,7 @@ class PluginManager(object):
Scans given directory for plugin classes.
:param path: directory to scan for plugins
- :type path: unicode
+ :type path: str
:return: list of found plugin classes (subclasses of `GajimPlugin`
:rtype: [] of class objects