mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Folder.getlast(): avoid PyChecker warning.
This commit is contained in:
parent
adbd35bbcc
commit
f93befc209
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ class Folder:
|
||||||
def getlast(self):
|
def getlast(self):
|
||||||
"""Return the last message number."""
|
"""Return the last message number."""
|
||||||
if not hasattr(self, 'last'):
|
if not hasattr(self, 'last'):
|
||||||
messages = self.listmessages()
|
self.listmessages() # Set self.last
|
||||||
return self.last
|
return self.last
|
||||||
|
|
||||||
def setlast(self, last):
|
def setlast(self, last):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue