diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-03-17 00:55:37 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-03-17 00:56:15 +0300 |
commit | bfd96caddf310ef123c5a53dc46388601366ee0e (patch) | |
tree | 151c63bab409bbe8a9c007ef15f8240216a022af /openpgp | |
parent | 15d35ed8d16c7a9c5aabf1e43895494ec49c9717 (diff) |
[openpgp] Make open call python 3.5 compatible
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/pgpplugin.py | 2 |
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) |