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:
authorPhilipp Hörist <philipp@hoerist.com>2019-03-17 00:55:37 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-03-17 00:56:15 +0300
commitbfd96caddf310ef123c5a53dc46388601366ee0e (patch)
tree151c63bab409bbe8a9c007ef15f8240216a022af /openpgp
parent15d35ed8d16c7a9c5aabf1e43895494ec49c9717 (diff)
[openpgp] Make open call python 3.5 compatible
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/pgpplugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/pgpplugin.py b/openpgp/pgpplugin.py
index a8e42dd..f12c46c 100644
--- a/openpgp/pgpplugin.py
+++ b/openpgp/pgpplugin.py
@@ -84,7 +84,7 @@ class OpenPGPPlugin(GajimPlugin):
def _load_css(self):
path = Path(__file__).parent / 'gtk' / 'style.css'
try:
- with open(path, "r") as f:
+ with path.open('r') as f:
css = f.read()
except Exception as exc:
log.error('Error loading css: %s', exc)