[Lldb-commits] [lldb] r356673 - Workaround items/iteritems difference between Python2 and Python3

Serge Guelton via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 21 07:47:41 PDT 2019


Author: serge_sans_paille
Date: Thu Mar 21 07:47:40 2019
New Revision: 356673

URL: http://llvm.org/viewvc/llvm-project?rev=356673&view=rev
Log:
Workaround items/iteritems difference between Python2 and Python3

Differential Revision: https://reviews.llvm.org/D59588

Modified:
    lldb/trunk/examples/python/pytracer.py

Modified: lldb/trunk/examples/python/pytracer.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/pytracer.py?rev=356673&r1=356672&r2=356673&view=diff
==============================================================================
--- lldb/trunk/examples/python/pytracer.py (original)
+++ lldb/trunk/examples/python/pytracer.py Thu Mar 21 07:47:40 2019
@@ -335,7 +335,7 @@ def g(x):
 
 def print_keyword_args(**kwargs):
     # kwargs is a dict of the keyword args passed to the function
-    for key, value in kwargs.iteritems():
+    for key, value in kwargs.items():
         print "%s = %s" % (key, value)
 
 




More information about the lldb-commits mailing list