fix shadowing warning

This commit is contained in:
Jakob Ketterl 2019-07-21 22:12:41 +02:00
parent 479c49b02e
commit 6c2488f052
1 changed files with 5 additions and 5 deletions

View File

@ -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":