Skip to content
Discussion options

You must be logged in to vote

Bug

Body

After I cloning my own repo calculatorMax to my computer, I realized that the main.py is different with the one on GitHub. Something similar might have happend a million times before, but this one actually prevented Python from running my code. It's likely because this:

...
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?

Hey! @6871296
This is a classic line ending / white…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adnanisagoodboy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by 6871296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Repositories The core of version-controlled code storage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
3 participants