]> granicus.if.org Git - python/commitdiff
Folder.getlast(): avoid PyChecker warning.
authorGuido van Rossum <guido@python.org>
Wed, 17 Oct 2001 05:59:26 +0000 (05:59 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Oct 2001 05:59:26 +0000 (05:59 +0000)
Lib/mhlib.py

index c83b63777a56d4983015198b7377307b221e3e72..6cf012830716f760447f8f137011a0c6b4ced517 100644 (file)
@@ -648,7 +648,7 @@ class Folder:
     def getlast(self):
         """Return the last message number."""
         if not hasattr(self, 'last'):
-            messages = self.listmessages()
+            self.listmessages() # Set self.last
         return self.last
 
     def setlast(self, last):