mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
python: Add double newline after fuction or class (E305).
pycodestyle >= 2.1.0 reports E305 otherwise, and the flake8-check step fails. Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -395,6 +395,8 @@ class UnixStream(Stream):
|
||||
connect_path = suffix
|
||||
return ovs.socket_util.make_unix_socket(socket.SOCK_STREAM,
|
||||
True, None, connect_path)
|
||||
|
||||
|
||||
Stream.register_method("unix", UnixStream)
|
||||
|
||||
|
||||
@@ -406,6 +408,8 @@ class TCPStream(Stream):
|
||||
if not error:
|
||||
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||
return error, sock
|
||||
|
||||
|
||||
Stream.register_method("tcp", TCPStream)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user