no more deprecated .has_key(...)

This commit is contained in:
Richard Vézina
2015-12-22 15:39:32 -05:00
parent bb2aa29867
commit 0259ea3d29
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ if __name__ == '__main__':
freeze_support()
except:
sys.stderr.write('Sorry, -K only supported for python 2.6-2.7\n')
if os.environ.has_key("COVERAGE_PROCESS_START"):
if "COVERAGE_PROCESS_START" in os.environ:
try:
import coverage
coverage.process_startup()