diff --git a/openpgp/pgpplugin.py b/openpgp/pgpplugin.py index a8e42dd2fc66c7ce81c222724dbba932a8240517..f12c46c2c8f424037bff8ff454142e4e6bfabdef 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)