diff options
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 |