From f8838a9d569558622d51c2da0c342954fa07e00b Mon Sep 17 00:00:00 2001 From: Mike Wang Date: Sun, 26 May 2024 23:01:15 +0800 Subject: [PATCH] style: Code formatting --- natter-check/natter-check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/natter-check/natter-check.py b/natter-check/natter-check.py index bea802b..2a172d2 100755 --- a/natter-check/natter-check.py +++ b/natter-check/natter-check.py @@ -27,6 +27,7 @@ __version__ = "2.1.0-dev" + def fix_codecs(codec_list = ["utf-8", "idna"]): missing_codecs = [] for codec_name in codec_list: @@ -39,7 +40,8 @@ def search_codec(name): return codecs.CodecInfo(codecs.ascii_encode, codecs.ascii_decode, name="ascii") if missing_codecs: codecs.register(search_codec) - + + def new_socket_reuse(family, type): sock = socket.socket(family, type) if hasattr(socket, "SO_REUSEADDR"):