]> granicus.if.org Git - python/commitdiff
Fix NameError in getquotaroot(), sanctioned by Piers.
authorGuido van Rossum <guido@python.org>
Mon, 13 Jan 2003 15:04:26 +0000 (15:04 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Jan 2003 15:04:26 +0000 (15:04 +0000)
Lib/imaplib.py

index 47fbafa5cfc155dc37ead655b0152725d8150908..6a27a67e12c926a05bd9738d2616082ac8295672 100644 (file)
@@ -441,7 +441,7 @@ class IMAP4:
 
         (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox)
         """
-        typ, dat = self._simple_command('GETQUOTA', root)
+        typ, dat = self._simple_command('GETQUOTA', mailbox)
         typ, quota = self._untagged_response(typ, dat, 'QUOTA')
         typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
         return typ, [quotaroot, quota]