Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.

llvm-svn: 197462
This commit is contained in:
NAKAMURA Takumi 2013-12-17 04:14:50 +00:00
parent b1ec06b0a2
commit b7bf04c02e
1 changed files with 1 additions and 1 deletions

View File

@ -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',''),