Skip to content

Commit

Permalink
Use iterkeys() to iterate dict keys
Browse files Browse the repository at this point in the history
  • Loading branch information
romanvm committed Nov 20, 2017
1 parent 84ee28e commit 3833a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3833a3e

Please sign in to comment.