fix shadowing warning
This commit is contained in:
		| @@ -121,12 +121,12 @@ class SdrSource(object): | |||||||
|     def getFormatConversion(self): |     def getFormatConversion(self): | ||||||
|         return None |         return None | ||||||
|  |  | ||||||
|     def activateProfile(self, id=None): |     def activateProfile(self, profile_id=None): | ||||||
|         profiles = self.props["profiles"] |         profiles = self.props["profiles"] | ||||||
|         if id is None: |         if profile_id is None: | ||||||
|             id = list(profiles.keys())[0] |             profile_id = list(profiles.keys())[0] | ||||||
|         logger.debug("activating profile {0}".format(id)) |         logger.debug("activating profile {0}".format(profile_id)) | ||||||
|         profile = profiles[id] |         profile = profiles[profile_id] | ||||||
|         for (key, value) in profile.items(): |         for (key, value) in profile.items(): | ||||||
|             # skip the name, that would overwrite the source name. |             # skip the name, that would overwrite the source name. | ||||||
|             if key == "name": |             if key == "name": | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jakob Ketterl
					Jakob Ketterl