summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-xLib/mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 853949b..7afff50 100755
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -265,7 +265,7 @@ def _test():
args = sys.argv[1:]
if not args:
for key in 'MAILDIR', 'MAIL', 'LOGNAME', 'USER':
- if os.environ.has_key(key):
+ if key in os.environ:
mbox = os.environ[key]
break
else: