mirror of
https://github.com/sakaljurgis/plugin.video.sklk.git
synced 2026-11-06 14:38:03 +00:00
Use iterkeys() to iterate dict keys
This commit is contained in:
1 parent
84ee28ea26
commit
3833a3e2ac
1 file changed
+2
-2
@@ -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):
|
||||||
|
|||||||
Reference in new issue
Block a user