OSDN Git Service

[lit] Fix a Python 3 compatibility issue.
authorZachary Turner <zturner@google.com>
Mon, 18 Sep 2017 22:30:45 +0000 (22:30 +0000)
committerZachary Turner <zturner@google.com>
Mon, 18 Sep 2017 22:30:45 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313580 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/llvm/config.py

index 1a2aea4..175aa69 100644 (file)
@@ -97,7 +97,7 @@ class LLVMConfig(object):
             # For paths, we should be able to take a list of them and process all
             # of them.
             paths_to_add = value
-            if isinstance(paths_to_add, basestring):
+            if lit.util.is_string(paths_to_add):
                 paths_to_add = [paths_to_add]
 
             def norm(x):