mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Surround top-level function and class definitions with two blank lines.
This commit is contained in:
committed by
Toshio Kuratomi
parent
9e310558ee
commit
b954917761
@@ -77,6 +77,7 @@ def _fileobj_to_fd(fileobj):
|
||||
raise ValueError("Invalid file descriptor: {0}".format(fd))
|
||||
return fd
|
||||
|
||||
|
||||
# Python 3.5 uses a more direct route to wrap system calls to increase speed.
|
||||
if sys.version_info >= (3, 5):
|
||||
def _syscall_wrapper(func, _, *args, **kwargs):
|
||||
@@ -305,6 +306,7 @@ class BaseSelector(object):
|
||||
def __exit__(self, *args):
|
||||
self.close()
|
||||
|
||||
|
||||
# Almost all platforms have select.select()
|
||||
if hasattr(select, "select"):
|
||||
class SelectSelector(BaseSelector):
|
||||
|
||||
Reference in New Issue
Block a user