-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix docs : change from issue #12191, remove "if 1:" blocks in examples #12260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
removed the confusing if 1: as propsed in #12191
@QuLogic updated and sent a PR here |
@QuLogic updated and complete |
cross-ref for clicking: #12191 |
examples/misc/patheffect_demo.py
Outdated
@@ -8,7 +8,7 @@ | |||
import matplotlib.patheffects as PathEffects | |||
import numpy as np | |||
|
|||
if 1: | |||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need for this if
; there's nothing in the example without this code.
@@ -13,7 +13,7 @@ | |||
from matplotlib.cbook import get_sample_data | |||
|
|||
|
|||
if 1: | |||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
PR Summary
PR Checklist