summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 0817da9..ed03c56 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