summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-12-17 04:14:50 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-12-17 04:14:50 +0000
commit04ca26908e9b7b414ecbb7b495c49b476b040a96 (patch)
treed33c8df5afdeae3844b8e5e7573b338187876d6f /utils
parent0f7c8fd635a6e1dac7b8409c7a408bd3d50256ba (diff)
downloadllvm-04ca26908e9b7b414ecbb7b495c49b476b040a96.tar.gz
llvm-04ca26908e9b7b414ecbb7b495c49b476b040a96.tar.bz2
llvm-04ca26908e9b7b414ecbb7b495c49b476b040a96.tar.xz
Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/lit/TestingConfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py
index 4a34b77e17..95405e9324 100644
--- a/utils/lit/lit/TestingConfig.py
+++ b/utils/lit/lit/TestingConfig.py
@@ -38,7 +38,7 @@ class TestingConfig:
# The option to preserve TEMP, TMP, and TMPDIR.
# This is intended to check how many temporary files would be generated
# (and be not cleaned up) in automated builders.
- if os.environ.has_key('LIT_PRESERVES_TMP'):
+ if 'LIT_PRESERVES_TMP' in os.environ:
environment.update({
'TEMP' : os.environ.get('TEMP',''),
'TMP' : os.environ.get('TMP',''),