Index: llvm/trunk/test/tools/llvm-readobj/Inputs/relocs.py =================================================================== --- llvm/trunk/test/tools/llvm-readobj/Inputs/relocs.py +++ llvm/trunk/test/tools/llvm-readobj/Inputs/relocs.py @@ -75,7 +75,7 @@ def makeKey(item): return (item[1], item[0]) e = [] - for pair in sorted(self._nameMap.iteritems(), key=makeKey): + for pair in sorted(self._nameMap.items(), key=makeKey): e.append(pair) return e Index: llvm/trunk/utils/Reviewing/find_interesting_reviews.py =================================================================== --- llvm/trunk/utils/Reviewing/find_interesting_reviews.py +++ llvm/trunk/utils/Reviewing/find_interesting_reviews.py @@ -52,10 +52,10 @@ return self.id2PhabObjects[id] def get_ids_in_cache(self): - return self.id2PhabObjects.keys() + return list(self.id2PhabObjects.keys()) def get_objects(self): - return self.id2PhabObjects.values() + return list(self.id2PhabObjects.values()) DEFAULT_DIRECTORY = "PhabObjectCache" Index: llvm/trunk/utils/docker/scripts/llvm_checksum/llvm_checksum.py =================================================================== --- llvm/trunk/utils/docker/scripts/llvm_checksum/llvm_checksum.py +++ llvm/trunk/utils/docker/scripts/llvm_checksum/llvm_checksum.py @@ -183,7 +183,7 @@ if len(new_checksums) != len(reference_checksums): return False - for proj, checksum in new_checksums.iteritems(): + for proj, checksum in new_checksums.items(): # We never computed a checksum for this project. if proj not in reference_checksums: return False