mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 18:59:10 +08:00
Applies PEP-8 recommendations before editing.
This commit is contained in:
@@ -14,6 +14,7 @@ THE DEVSIMULATOR IS DEPRECATED, IT WILL NOT BEHAVE LIKE ANY OTHER
|
||||
SYSTEM USED IN TESTS OR IN PRODUCTION
|
||||
"""
|
||||
|
||||
|
||||
class AddressAllocator(object):
|
||||
"""
|
||||
Produces a iterator of 10000 sockets to allocate as needed.
|
||||
@@ -28,9 +29,10 @@ class AddressAllocator(object):
|
||||
]
|
||||
|
||||
def lease(self, n):
|
||||
sockets = self.sockets[self.idx:self.idx+n]
|
||||
sockets = self.sockets[self.idx: self.idx + n]
|
||||
self.idx += n
|
||||
return sockets
|
||||
|
||||
def reaquire(self, *conn):
|
||||
pass
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user