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:
authorMalte Leip <malte@leip.net>2019-03-16 23:13:24 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-03-17 01:03:45 +0300
commit8c80582969f19b89cadb1ecd591048433c096b74 (patch)
treeaab225401a2b2dd184fd78cafbd1b5fa3477155b
parentb61c90f4fee95eb7cdc32ee73b8e09f2db9d8a5c (diff)
[omemo] Fix loading of style.css with python 3.5
-rw-r--r--omemo/omemoplugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py
index 7386749..2b67373 100644
--- a/omemo/omemoplugin.py
+++ b/omemo/omemoplugin.py
@@ -135,8 +135,8 @@ class OmemoPlugin(GajimPlugin):
def _load_css(self):
path = Path(__file__).parent / 'gtk' / 'style.css'
try:
- with open(path, "r") as f:
- css = f.read()
+ with path.open("r") as file:
+ css = file.read()
except Exception as exc:
log.error('Error loading css: %s', exc)
return