[llvm] r313580 - [lit] Fix a Python 3 compatibility issue.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 15:30:45 PDT 2017
Author: zturner
Date: Mon Sep 18 15:30:45 2017
New Revision: 313580
URL: http://llvm.org/viewvc/llvm-project?rev=313580&view=rev
Log:
[lit] Fix a Python 3 compatibility issue.
Modified:
llvm/trunk/utils/lit/lit/llvm/config.py
Modified: llvm/trunk/utils/lit/lit/llvm/config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/llvm/config.py?rev=313580&r1=313579&r2=313580&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/llvm/config.py (original)
+++ llvm/trunk/utils/lit/lit/llvm/config.py Mon Sep 18 15:30:45 2017
@@ -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):
More information about the llvm-commits
mailing list