From 6c2488f05225f1ab102c5aa44d1a6be50eb4fb0c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 21 Jul 2019 22:12:41 +0200 Subject: [PATCH] fix shadowing warning --- owrx/source.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/owrx/source.py b/owrx/source.py index da2e928..9bf5647 100644 --- a/owrx/source.py +++ b/owrx/source.py @@ -121,12 +121,12 @@ class SdrSource(object): def getFormatConversion(self): return None - def activateProfile(self, id=None): + def activateProfile(self, profile_id=None): profiles = self.props["profiles"] - if id is None: - id = list(profiles.keys())[0] - logger.debug("activating profile {0}".format(id)) - profile = profiles[id] + if profile_id is None: + profile_id = list(profiles.keys())[0] + logger.debug("activating profile {0}".format(profile_id)) + profile = profiles[profile_id] for (key, value) in profile.items(): # skip the name, that would overwrite the source name. if key == "name":