diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 14:18:47 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 14:18:47 (GMT) |
commit | 54f0222547b1e92cd018ef132307a6f793dc9505 (patch) | |
tree | 667480d89feb3f9c7ca44e4ffa7bf39e725c120d /Lib/mhlib.py | |
parent | 9d5e4aa4149edb92f6d28c9390d776ae4a1d719a (diff) | |
download | cpython-54f0222547b1e92cd018ef132307a6f793dc9505.zip cpython-54f0222547b1e92cd018ef132307a6f793dc9505.tar.gz cpython-54f0222547b1e92cd018ef132307a6f793dc9505.tar.bz2 |
SF 563203. Replaced 'has_key()' with 'in'.
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 8d0eff1..d4869c6 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py @@ -375,7 +375,7 @@ class Folder: anchor = self._parseindex(head, all) except Error, msg: seqs = self.getsequences() - if not seqs.has_key(head): + if not head in seqs: if not msg: msg = "bad message list %s" % seq raise Error, msg, sys.exc_info()[2] @@ -412,7 +412,7 @@ class Folder: n = self._parseindex(seq, all) except Error, msg: seqs = self.getsequences() - if not seqs.has_key(seq): + if not seq in seqs: if not msg: msg = "bad message list %s" % seq raise Error, msg |