[llvm] r197462 - Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.

NAKAMURA Takumi geek4civic at gmail.com
Mon Dec 16 20:14:50 PST 2013


Author: chapuni
Date: Mon Dec 16 22:14:50 2013
New Revision: 197462

URL: http://llvm.org/viewvc/llvm-project?rev=197462&view=rev
Log:
Tweak lit/TestingConfig.py Py3-compatible. has_key is dead.

Modified:
    llvm/trunk/utils/lit/lit/TestingConfig.py

Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=197462&r1=197461&r2=197462&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Mon Dec 16 22:14:50 2013
@@ -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',''),





More information about the llvm-commits mailing list