projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7c8fd
)
Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 17 Dec 2013 04:14:50 +0000
(
04:14
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 17 Dec 2013 04:14:50 +0000
(
04:14
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197462
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/TestingConfig.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/TestingConfig.py
b/utils/lit/lit/TestingConfig.py
index 4a34b77e175b9584e6ce1eedc8c23f0bcbe4a9e7..95405e932441451ad5b8fdcd71a07b6fd76eeff3 100644
(file)
--- 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',''),