Use iterkeys() to iterate dict keys
This commit is contained in:
parent
84ee28ea26
commit
3833a3e2ac
4
main.py
4
main.py
|
|
@ -84,9 +84,9 @@ def get_categories():
|
||||||
instead of returning lists.
|
instead of returning lists.
|
||||||
|
|
||||||
:return: The list of video categories
|
:return: The list of video categories
|
||||||
:rtype: list
|
:rtype: types.GeneratorType
|
||||||
"""
|
"""
|
||||||
return VIDEOS.keys()
|
return VIDEOS.iterkeys()
|
||||||
|
|
||||||
|
|
||||||
def get_videos(category):
|
def get_videos(category):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue