Use six.iteritems helper

* Standardizes dict.iteritems between Python 2 and Python 3
This commit is contained in:
Labrys 2016-06-05 08:58:17 -04:00
commit abf63d6bbe
3 changed files with 11 additions and 5 deletions

View file

@ -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