[PATCH] D23602: Port tools/clang-format/git-clang-format to work Python beyond 2.7

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 23:29:16 PDT 2016


vsk added a subscriber: vsk.

================
Comment at: tools/clang-format/git-clang-format:303
@@ -300,3 +302,3 @@
   allowed_extensions = frozenset(allowed_extensions)
-  for filename in dictionary.keys():
+  for filename in list(dictionary.keys()):
     base_ext = filename.rsplit('.', 1)
----------------
Why is this change needed (i.e: is there a functional difference between a list vs. a dict_keys here)?


Repository:
  rL LLVM

https://reviews.llvm.org/D23602





More information about the cfe-commits mailing list