forked from OSchip/llvm-project
Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.
llvm-svn: 197462
This commit is contained in:
parent
b1ec06b0a2
commit
b7bf04c02e
|
@ -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',''),
|
||||
|
|
Loading…
Reference in New Issue