-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
refactor Pythonic sake #1077
Merged
Merged
refactor Pythonic sake #1077
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
7e8f88d
simplify max fps pattern
mgaitan 565a339
use all instead not any and non-empty list checking
mgaitan 33da2ea
dont need to be lists to iterate
mgaitan a2a700b
replace hasattr by getattr
mgaitan 328b765
give a generator instead a list
mgaitan a338db1
simple conditional assignation
mgaitan 3a0d74f
set booleans to add readabiity
mgaitan bfbcb82
unsloppy code
mgaitan 65914d0
use ternary expressions and flatten if/elif
mgaitan a8b0f8c
truthy object
mgaitan 6deed31
simplify find_extension usage
mgaitan f276997
remove not used variable
mgaitan 27dfd95
ternary expression
mgaitan dd58a6c
more on conditions
mgaitan 678471c
reverse condition in a sake of readability
mgaitan 4c365bf
etattr with default instead hasattr (flatten code)
mgaitan 83420bc
simple credits parsing
mgaitan 878c86c
space after operators
mgaitan 8bede70
use iter
mgaitan 1381c4e
pass generators instead list
mgaitan fb8c956
indenting
mgaitan d042b5b
indentation
mgaitan 9e89197
more indention
mgaitan f7115dc
truthy check
mgaitan e92d86d
clean offset calculation
mgaitan b876f6d
explicit filter condition in a loop
mgaitan 725ebb2
useless import
mgaitan 346875f
use super
mgaitan f9b1c60
not explicity empty list checking
mgaitan c22f12a
bool condition
mgaitan c918082
use iter function
mgaitan f5fc14b
use cvsecs function
mgaitan eae4cd8
iter file directly
mgaitan 31dbaeb
remove not used import
mgaitan ef752f7
documentation
mgaitan 10acb50
reverted change on if condition
mgaitan dfed921
fix regression on blit_on
mgaitan 905de12
fix test_setopacity
mgaitan 346570b
fix bug in hill helper function
mgaitan 83a4459
fix credits
mgaitan 77a6768
remove pdb. shame on you
mgaitan 7f2b6d2
safer check
mgaitan f3c1009
simplify comprenhension using a generator expression
mgaitan 1f0a2ac
improved version of cvsecs function
mgaitan 30567ff
refactor test_tools module using parametrize
mgaitan bbc65be
factorize skip as a decorator
mgaitan fe77e6d
fix regression in cvsecs
mgaitan 0d66739
restore matplotlib test
mgaitan fc90b13
use a listcomp directly
mgaitan f3182d8
useless import
mgaitan ecc312e
correct skipif usage
mgaitan 38a5671
Merge branch 'master' into pythonic
tburrows13 a535d93
Fix merge error
tburrows13 274daef
Merge branch 'master' into pythonic
tburrows13 9323f2f
zero could be a valid value
mgaitan 09a076b
more valid value zero cases
mgaitan aac2b85
black code
mgaitan b46dc7d
correct set intersection
mgaitan bba1de3
r could be 0
mgaitan c8be628
explicit comparisons
mgaitan 35649d9
fix regression on py2
mgaitan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is a new format supported. It's ok, right?
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.
Looks fine to me