aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/llvm/expand_cmake_vars.py
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2016-12-09 08:04:40 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-09 08:24:21 -0800
commit4fc106f5f89b444f1d99428c82df3406d64d059c (patch)
treec293aab805f73dd54a39ceec53cb60e2d53b6ef3 /third_party/llvm/expand_cmake_vars.py
parent63dc340e23d6aeca83323c3959dea10d20dfd0fc (diff)
Add placeholder plugins list to tensorflow/python:pywrap_tensorflow build target.
Add missing zlib dependency to LLVM build file. Various other small cleanups. Change: 141557751
Diffstat (limited to 'third_party/llvm/expand_cmake_vars.py')
-rw-r--r--third_party/llvm/expand_cmake_vars.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/llvm/expand_cmake_vars.py b/third_party/llvm/expand_cmake_vars.py
index 51e668428f..ffc6a255fd 100644
--- a/third_party/llvm/expand_cmake_vars.py
+++ b/third_party/llvm/expand_cmake_vars.py
@@ -47,7 +47,7 @@ def _expand_variables(input_str, cmake_vars):
The expanded string.
"""
def replace(match):
- if cmake_vars.has_key(match.group(1)):
+ if match.group(1) in cmake_vars:
return cmake_vars[match.group(1)]
return ""
return _CMAKE_VAR_REGEX.sub(replace, input_str)