From bfd96caddf310ef123c5a53dc46388601366ee0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 16 Mar 2019 22:55:37 +0100 Subject: [openpgp] Make open call python 3.5 compatible --- openpgp/pgpplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp') 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) -- cgit v1.2.3