From 67ee0fab1430b75571019758044b94dea8aba132 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 27 Feb 2019 14:20:58 +1000 Subject: [PATCH] tools flake8 fixes Signed-off-by: Peter Hutterer --- tools/ratbagc.py.in | 2 +- tools/ratbagd.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index e1224ea4..07dd485f 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -53,7 +53,7 @@ class MetaRatbag(type): c.__late_init__() # Add a noop self.notify() so we're compatible with GObjects - c.notify = lambda *args : None + c.notify = lambda *args: None return c diff --git a/tools/ratbagd.py b/tools/ratbagd.py index 6ea36fc4..ef25b27b 100644 --- a/tools/ratbagd.py +++ b/tools/ratbagd.py @@ -569,9 +569,9 @@ class RatbagdResolution(_RatbagdDBus): if len(res) != len(resolution) or len(res) > 2: raise ValueError('invalid resolution precision') if len(res) == 1: - variant = GLib.Variant('u', resolution[0]); + variant = GLib.Variant('u', resolution[0]) else: - variant = GLib.Variant('(uu)', resolution); + variant = GLib.Variant('(uu)', resolution) self._set_dbus_property("Resolution", "v", variant) @GObject.Property @@ -703,7 +703,7 @@ class RatbagdButton(_RatbagdDBus): """ button = GLib.Variant("u", button) self._set_dbus_property("Mapping", "(uv)", - (RatbagdButton.ACTION_TYPE_BUTTON, button)) + (RatbagdButton.ACTION_TYPE_BUTTON, button)) @GObject.Property def macro(self): @@ -724,7 +724,7 @@ class RatbagdButton(_RatbagdDBus): """ macro = GLib.Variant("a(uu)", macro.keys) self._set_dbus_property("Mapping", "(uv)", - (RatbagdButton.ACTION_TYPE_MACRO, macro)) + (RatbagdButton.ACTION_TYPE_MACRO, macro)) @GObject.Property def special(self): @@ -743,7 +743,7 @@ class RatbagdButton(_RatbagdDBus): """ special = GLib.Variant("u", special) self._set_dbus_property("Mapping", "(uv)", - (RatbagdButton.ACTION_TYPE_SPECIAL, special)) + (RatbagdButton.ACTION_TYPE_SPECIAL, special)) @GObject.Property def action_type(self):