diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
commit | 46ac8eb3c899b498299a2f8fbcdd4ed3f32addba (patch) | |
tree | bcbe8646fceabec7bcdc4c365f6389fb537fdb68 /Lib/imaplib.py | |
parent | 78e057a32a92c3bfb464b27a02f4931c474769e8 (diff) | |
download | cpython-git-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.gz |
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 0817da9d23..ed03c56e41 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -973,11 +973,10 @@ class IMAP4: return typ, dat if not name in self.untagged_responses: return typ, [None] - data = self.untagged_responses[name] + data = self.untagged_responses.pop(name) if __debug__: if self.debug >= 5: self._mesg('untagged_responses[%s] => %s' % (name, data)) - del self.untagged_responses[name] return typ, data |