|
9 | 9 | import os |
10 | 10 | from typing import Any |
11 | 11 |
|
| 12 | +from cryptography.hazmat.backends import default_backend |
| 13 | +from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes |
12 | 14 | from jeepney import ( |
13 | | - DBusAddress, DBusErrorResponse, MatchRule, Message, MessageType, |
14 | | - new_method_call, Properties, |
| 15 | + DBusAddress, |
| 16 | + DBusErrorResponse, |
| 17 | + MatchRule, |
| 18 | + Message, |
| 19 | + MessageType, |
| 20 | + Properties, |
| 21 | + new_method_call, |
15 | 22 | ) |
16 | 23 | from jeepney.io.blocking import DBusConnection |
17 | | -from secretstorage.defines import DBUS_UNKNOWN_METHOD, DBUS_NO_SUCH_OBJECT, \ |
18 | | - DBUS_SERVICE_UNKNOWN, DBUS_NO_REPLY, DBUS_NOT_SUPPORTED, DBUS_EXEC_FAILED, \ |
19 | | - DBUS_UNKNOWN_OBJECT, SS_PATH, SS_PREFIX, ALGORITHM_DH, ALGORITHM_PLAIN |
| 24 | + |
| 25 | +from secretstorage.defines import ( |
| 26 | + ALGORITHM_DH, |
| 27 | + ALGORITHM_PLAIN, |
| 28 | + DBUS_EXEC_FAILED, |
| 29 | + DBUS_NO_REPLY, |
| 30 | + DBUS_NO_SUCH_OBJECT, |
| 31 | + DBUS_NOT_SUPPORTED, |
| 32 | + DBUS_SERVICE_UNKNOWN, |
| 33 | + DBUS_UNKNOWN_METHOD, |
| 34 | + DBUS_UNKNOWN_OBJECT, |
| 35 | + SS_PATH, |
| 36 | + SS_PREFIX, |
| 37 | +) |
20 | 38 | from secretstorage.dhcrypto import Session, int_to_bytes |
21 | | -from secretstorage.exceptions import ItemNotFoundException, \ |
22 | | - SecretServiceNotAvailableException |
23 | | -from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes |
24 | | -from cryptography.hazmat.backends import default_backend |
| 39 | +from secretstorage.exceptions import ( |
| 40 | + ItemNotFoundException, |
| 41 | + SecretServiceNotAvailableException, |
| 42 | +) |
25 | 43 |
|
26 | 44 | BUS_NAME = 'org.freedesktop.secrets' |
27 | 45 | SERVICE_IFACE = SS_PREFIX + 'Service' |
|
0 commit comments