Skip to content
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

Various Python cleanup in wmltools-related code #427

Merged
merged 6 commits into from Jul 27, 2015

Conversation

legoktm
Copy link
Contributor

@legoktm legoktm commented Jul 27, 2015

Small things I noticed while trying to read and understand the code.

And minor nearby whitespace fixes.
* Fix lots of spacing to be PEP8 compliant
* Use collections.defaultdict to simplify some code
* Use dict.get() to simplify some code
* Use plain set() to create a new set
* Don't create unnecessary tuples for string formatting
Skips an unecessary for loop and if conditional.
@Elvish-Hunter Elvish-Hunter self-assigned this Jul 27, 2015
Elvish-Hunter added a commit that referenced this pull request Jul 27, 2015
Various Python cleanup in wmltools-related code
@Elvish-Hunter Elvish-Hunter merged commit 1599f62 into wesnoth:master Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants