Bug: My code changes when cloning #189224
-
Select Topic AreaBug BodyAfter I cloning my own repo calculatorMax to my computer, I realized that the ...
def func():
...
<main code>
if easygui.ynbox('Do you really want to exit?'):
sys.exit()turned into this: def func():
...
<main code>#There's 4 spaces in the front of all of the lines of the main code, so Python thinks this is part of func() and never runs this
if easygui.ynbox('Do you really want to exit?'):
sys.exit()Can anybody help? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I don't know which thing is wrong, so I published this here. |
Beta Was this translation helpful? Give feedback.
-
Hey! @6871296 Select all the misindented main code lines pythondef func(): main code starts here at column 0if easygui.ynbox('Do you really want to exit?'): |
Beta Was this translation helpful? Give feedback.
Hey! @6871296
This is a classic line ending / white…