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

Fix executing twice problem and pass flake8 #7

Merged
merged 2 commits into from Feb 2, 2016

Conversation

Projects
None yet
2 participants
@M157q
Copy link
Contributor

M157q commented Sep 16, 2015

No description provided.

M157q added some commits Sep 16, 2015

Fix executing main() twice when using `2048`
Check if __name__ == '__main__' for preventing the problem.
Fix to pass flake8
$ flake8 2048.py
2048.py:139:9: E265 block comment should start with '# '
2048.py:140:9: E265 block comment should start with '# '
2048.py:142:9: E265 block comment should start with '# '
2048.py:170:5: E301 expected 1 blank line, found 0
2048.py:173:13: E265 block comment should start with '# '
2048.py:176:40: E127 continuation line over-indented for visual indent
2048.py:178:40: E127 continuation line over-indented for visual indent

odkq added a commit that referenced this pull request Feb 2, 2016

Merge pull request #7 from M157q/fix_execute_twice_problem
Fix executing  twice problem and pass flake8

@odkq odkq merged commit a76b266 into odkq:master Feb 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment