Commit 1d2a35f5 authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

comment:

just one more comment to make a clear distiction between updating the keywords and deleting them.
parent 1565117b
......@@ -95,8 +95,9 @@ class MyFig_base(Figure):
# update the keywords with there values
if hasattr(self, "keywords") :
self.update(**kwargs)
for key in self.keywords.keys() :
kwargs.pop(key, None) # remove key if exists
# remove key if exists
for keyword in self.keywords.keys() :
kwargs.pop(keyword, None)
else:
self.keywords = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment