mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
@ -63,7 +63,7 @@ def _gettempdir_inner():
|
|||
if scrapdir:
|
||||
attempdirs.insert(0, scrapdir)
|
||||
for envname in 'TMPDIR', 'TEMP', 'TMP':
|
||||
if os.environ.has_key(envname):
|
||||
if envname in os.environ:
|
||||
attempdirs.insert(0, os.environ[envname])
|
||||
testfile = gettempprefix() + 'test'
|
||||
for dir in attempdirs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue