Use iterkeys() to iterate dict keys

This commit is contained in:
Roman Miroshnychenko 2017-11-20 16:37:03 +02:00
parent 84ee28ea26
commit 3833a3e2ac
1 changed files with 2 additions and 2 deletions

View File

@ -84,9 +84,9 @@ def get_categories():
instead of returning lists.
:return: The list of video categories
:rtype: list
:rtype: types.GeneratorType
"""
return VIDEOS.keys()
return VIDEOS.iterkeys()
def get_videos(category):