From: NAKAMURA Takumi Date: Tue, 17 Dec 2013 04:14:50 +0000 (+0000) Subject: Tweak lit/TestingConfig.py Py3-compatible. has_key is dead. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=04ca26908e9b7b414ecbb7b495c49b476b040a96;p=oota-llvm.git 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 --- diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py index 4a34b77e175..95405e93244 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',''),