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

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2018-02-16 23:33:58 +0300
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2018-02-17 00:18:10 +0300
commit7de985db84d79ca0bcb9cfb5c62a9d83a070fbe6 (patch)
treedfc8565cbf4731e1eadc5dc92c764544aa397392
parentf583de57d2e5eb0c748f3b7c1a037a2c5b1b95ba (diff)
[acronym] Add support for UTF-8 expansions
-rw-r--r--acronyms_expander/acronyms_expander.py2
-rw-r--r--acronyms_expander/manifest.ini2
2 files changed, 2 insertions, 2 deletions
diff --git a/acronyms_expander/acronyms_expander.py b/acronyms_expander/acronyms_expander.py
index cbfd334..76b1f21 100644
--- a/acronyms_expander/acronyms_expander.py
+++ b/acronyms_expander/acronyms_expander.py
@@ -65,7 +65,7 @@ class AcronymsExpanderPlugin(GajimPlugin):
data_file = self.local_file_path('acronyms')
if not os.path.isfile(data_file):
return {}
- data = open(data_file, 'r')
+ data = open(data_file, 'r', encoding='utf-8')
acronyms = eval(data.read())
data.close()
return acronyms
diff --git a/acronyms_expander/manifest.ini b/acronyms_expander/manifest.ini
index 4f2a00e..709e8f8 100644
--- a/acronyms_expander/manifest.ini
+++ b/acronyms_expander/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Acronyms Expander
short_name: acronyms_expander
-version: 0.1
+version: 0.2
description: Replaces acronyms (or other strings) with given expansions/substitutes.
authors: Mateusz BiliƄski <mateusz@bilinski.it>
homepage: http://blog.bilinski.it