From 6efbe12e8c240489422e21dc18fb3359aac8814e Mon Sep 17 00:00:00 2001 From: Frederic Martinsons Date: Thu, 29 Oct 2020 07:14:56 +0100 Subject: [PATCH] Correct python black rules Signed-off-by: Frederic Martinsons (cherry picked from commit 1f5c7f7d81c360260bf77747f872df636c257daa) (cherry picked from commit 39f79c68984b14460b1fb42760d7c1e67a41ce74) --- clients/tests/test-client.py | 6 ++---- examples/python/dbus/add-wifi-psk-connection.py | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py index 062fc9f354..01d50e1af6 100755 --- a/clients/tests/test-client.py +++ b/clients/tests/test-client.py @@ -562,9 +562,7 @@ class NMStubServer: def setProperty(self, path, propname, value, iface_name=None): if iface_name is None: iface_name = "" - self.op_SetProperties( - [(path, [(iface_name, [(propname, value),]),]),] - ) + self.op_SetProperties([(path, [(iface_name, [(propname, value)])])]) ############################################################################### @@ -1161,7 +1159,7 @@ class TestNmcli(NmTestBase): self.srv.op_AddObj("WifiAp", device="wlan1") self.srv.addConnection( - {"connection": {"type": "802-3-ethernet", "id": "con-1",},} + {"connection": {"type": "802-3-ethernet", "id": "con-1"}} ) @nm_test diff --git a/examples/python/dbus/add-wifi-psk-connection.py b/examples/python/dbus/add-wifi-psk-connection.py index 3e4f9da56f..324e367c75 100755 --- a/examples/python/dbus/add-wifi-psk-connection.py +++ b/examples/python/dbus/add-wifi-psk-connection.py @@ -11,11 +11,11 @@ s_con = dbus.Dictionary( ) s_wifi = dbus.Dictionary( - {"ssid": dbus.ByteArray("best-wifi".encode("utf-8")), "mode": "infrastructure",} + {"ssid": dbus.ByteArray("best-wifi".encode("utf-8")), "mode": "infrastructure"} ) s_wsec = dbus.Dictionary( - {"key-mgmt": "wpa-psk", "auth-alg": "open", "psk": "super-secret-password",} + {"key-mgmt": "wpa-psk", "auth-alg": "open", "psk": "super-secret-password"} ) s_ip4 = dbus.Dictionary({"method": "auto"})