diff options
| -rwxr-xr-x | plugins/externaltools/tools/library.py | 2 | ||||
| -rw-r--r-- | plugins/taglist/pluma-taglist-plugin-parser.c | 16 |
2 files changed, 7 insertions, 11 deletions
diff --git a/plugins/externaltools/tools/library.py b/plugins/externaltools/tools/library.py index ed66e268..0eb4e123 100755 --- a/plugins/externaltools/tools/library.py +++ b/plugins/externaltools/tools/library.py @@ -197,7 +197,7 @@ class ToolDirectory(object): class Tool(object): - RE_KEY = re.compile('^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') + RE_KEY = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') def __init__(self, parent, filename=None): super(Tool, self).__init__() diff --git a/plugins/taglist/pluma-taglist-plugin-parser.c b/plugins/taglist/pluma-taglist-plugin-parser.c index d97553b9..bca7a70d 100644 --- a/plugins/taglist/pluma-taglist-plugin-parser.c +++ b/plugins/taglist/pluma-taglist-plugin-parser.c @@ -140,11 +140,9 @@ parse_tag_group (TagGroup *tg, const gchar* fn, xmlDocPtr doc, tag = g_new0 (Tag, 1); /* Get Tag name */ - { - xmlChar *prop = xmlGetProp (cur, (const xmlChar *) "name"); - tag->name = (xmlChar*)g_strdup (gettext ((const char*)prop)); - xmlFree (prop); - } + xmlChar *prop = xmlGetProp (cur, (const xmlChar *) "name"); + tag->name = (xmlChar*)g_strdup (gettext ((const char*)prop)); + xmlFree (prop); if (tag->name == NULL) { @@ -200,11 +198,9 @@ get_tag_group (const gchar* filename, xmlDocPtr doc, tag_group = g_new0 (TagGroup, 1); /* Get TagGroup name */ - { - xmlChar *prop = xmlGetProp (cur, (const xmlChar *) "name"); - tag_group->name = (xmlChar*)g_strdup (gettext ((const char*)prop)); - xmlFree (prop); - } + xmlChar *prop = xmlGetProp (cur, (const xmlChar *) "name"); + tag_group->name = (xmlChar*)g_strdup (gettext ((const char*)prop)); + xmlFree (prop); sort_str = xmlGetProp (cur, (const xmlChar *) "sort"); |
