Skip to content
  • Jeremy Heiner's avatar
    Use dict iteration methods common to both Python 2 and 3. · 95b0a868
    Jeremy Heiner authored and Allan McRae's avatar Allan McRae committed
    
    
    The .items, .keys, and .values methods in Python 2 make copies, so the
    test framework uses the .iter* flavors of those methods. But in Python
    3 those .iter* (and even the 2.7 .view*) flavors are removed and the
    original methods return views.
    
    Measurements were taken under Python2 to see what impact the copying
    had, and there was none. Thus it is not worth the effort to avoid.
    
    Reported as a compatibility issue by 2to3.
    
    Signed-off-by: Jeremy Heiner <ScalaProtractor at gmail.com>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    95b0a868