Perf: Use of sort and sorted functions optimized ()

* Update mixer.py
* Update graph.py
* Update mixer.py
* Update mixer.py
* Update bdistapk.py
* Update toolchain.py
* Update build.py
* Update build.py
This commit is contained in:
g1tman 2019-11-25 15:58:16 +05:30 committed by Akinwale Ariwodola
parent cd378d16e3
commit fe01f50c65
7 changed files with 8 additions and 16 deletions
p4a/pythonforandroid/recipes/android/src/android

View file

@ -93,9 +93,7 @@ def find_channel(force=False):
if not force:
return None
busy.sort(key=lambda x: x.play_time)
return busy[0]
return min(busy, key=lambda x: x.play_time)
class ChannelImpl(object):