Skip to content

Commit

Permalink
Fixed memory leak due to accumulation of redundant keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Apr 13, 2017
1 parent 6c7de47 commit dfb9f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def _merge_options(self, identifier, group_name, options):
allowed_kws = [] if options.allowed_keywords is None else options.allowed_keywords
old_allowed = self[identifier][group_name].allowed_keywords if identifier in self.children else []
old_allowed = [] if old_allowed is None else old_allowed
override_kwargs['allowed_keywords'] = sorted(allowed_kws + old_allowed)
override_kwargs['allowed_keywords'] = sorted(set(allowed_kws + old_allowed))

if group_name not in self.groups:
raise KeyError("Group %s not defined on SettingTree" % group_name)
Expand Down

0 comments on commit dfb9f52

Please sign in to comment.