cbbb0b0 intg: Avoid using iteritems for dictionary

Authored and Committed by lslebodn 6 years ago
    intg: Avoid using iteritems for dictionary
    
    Originally, Python items() built a real list of tuples and returned that.
    That could potentially take a lot of extra memory. Python iteritems()
    returned an iterator-generator. The original remains for backwards
    compatibility.
    
    One of Python 3’s changes is that items() now return iterators,
    and a list is never fully built. The iteritems() method is also gone,
    since items() in Python 3 works like viewitems() in Python2.
    
    But we do not have a lot of values in dictionary; so it does not worth
    to optimize returned list from "items()" on Python2
    
    Reviewed-by: Martin Basti <mbasti@redhat.com>
    (cherry picked from commit 00fc94cbeede07693a07d6f860c47cb5f4961218)
    
        
file modified
+1 -1