Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
myplotlib
Commits
1d2a35f5
Commit
1d2a35f5
authored
Jan 30, 2017
by
Yori 'AGy' Fournier
Browse files
comment:
just one more comment to make a clear distiction between updating the keywords and deleting them.
parent
1565117b
Changes
1
Hide whitespace changes
Inline
Side-by-side
myFig.py
View file @
1d2a35f5
...
...
@@ -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
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment