-
Notifications
You must be signed in to change notification settings - Fork 0
Extract CLI logic from clinic.py
#34
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
Nice |
852fd9e
to
3e8ef58
Compare
(I'll probably not get back to this until 27th now — will upstream this then :) |
Enjoy the days off 🎅🎄🎉 |
Hm, I think |
What do you think of this, @vstinner? |
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.
LGTM.
Upstream as python#115542 |
Tools/clinic/clinic.py
andTools/clinic/cpp.py
inside theTools/clinic/libclinic
package.clinic.py
into a newlibclinic
submodule,libclinic.cli
Tools/clinic/run_clinic.py
, which simply importslibclinic.cli
and executes the CLI if__name__ == "__main__"
. Update the Makefile etc. so that they runTools/clinic/run_clinic.py
instead ofTools/clinic/clinic.py
.