Skip to content
Snippets Groups Projects
Commit bfd96cad authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[openpgp] Make open call python 3.5 compatible

parent 15d35ed8
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ class OpenPGPPlugin(GajimPlugin): ...@@ -84,7 +84,7 @@ class OpenPGPPlugin(GajimPlugin):
def _load_css(self): def _load_css(self):
path = Path(__file__).parent / 'gtk' / 'style.css' path = Path(__file__).parent / 'gtk' / 'style.css'
try: try:
with open(path, "r") as f: with path.open('r') as f:
css = f.read() css = f.read()
except Exception as exc: except Exception as exc:
log.error('Error loading css: %s', exc) log.error('Error loading css: %s', exc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment