Changes methods that do not reference the instance to static methods

This commit is contained in:
vieira
2017-11-07 22:23:44 +00:00
committed by Brian May
parent ad676029c7
commit 112931dd2c
4 changed files with 31 additions and 18 deletions

View File

@ -200,7 +200,8 @@ class SockWrapper:
_, e = sys.exc_info()[:2]
self.seterr('nowrite: %s' % e)
def too_full(self):
@staticmethod
def too_full():
return False # fullness is determined by the socket's select() state
def uwrite(self, buf):