mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Use six.iteritems helper
* Standardizes dict.iteritems between Python 2 and Python 3
This commit is contained in:
parent
d4e5809a29
commit
abf63d6bbe
3 changed files with 11 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
import requests
|
||||
|
||||
from six import iteritems
|
||||
|
||||
import core
|
||||
from core import logger
|
||||
|
||||
|
@ -89,7 +91,7 @@ def autoFork(section, inputCategory):
|
|||
rem_params.append(param)
|
||||
for param in rem_params:
|
||||
params.pop(param)
|
||||
for fork in sorted(core.FORKS.iteritems(), reverse=False):
|
||||
for fork in sorted(iteritems(core.FORKS), reverse=False):
|
||||
if params == fork[1]:
|
||||
detected = True
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue