Skip to content

Commit

Permalink
style: Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWang000000 committed May 26, 2024
1 parent 7820f93 commit f8838a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion natter-check/natter-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"):
Expand Down

0 comments on commit f8838a9

Please sign in to comment.