[openpgp] Make open call python 3.5 compatible
This commit is contained in:
1 parent
15d35ed8d1
commit
bfd96caddf
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user