fixup! import order and lint

This commit is contained in:
Alexis Métaireau 2024-10-28 15:48:29 +01:00
parent 9355503d4a
commit c53a93f6c0
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -1,10 +1,10 @@
import logging
import os
from pathlib import Path
import platform
import tempfile
import typing
from multiprocessing.pool import ThreadPool
from pathlib import Path
from typing import List, Optional
# FIXME: See https://github.com/freedomofpress/dangerzone/issues/320 for more details.
@ -591,7 +591,7 @@ class ContentWidget(QtWidgets.QWidget):
os_release_path = Path("/etc/os-release")
if os_release_path.exists():
os_release = os_release_path.read_text()
if 'Ubuntu 20.04' in os_release or 'focal' in os_release:
if "Ubuntu 20.04" in os_release or "focal" in os_release:
self.warning_label = QtWidgets.QLabel(WARNING_MESSAGE)
self.warning_label.setWordWrap(True)
self.warning_label.setProperty("style", "warning")