From a0c7472d50af3ee54327a4b28fba6270fe98d493 Mon Sep 17 00:00:00 2001 From: darkclip Date: Sat, 3 Feb 2024 04:47:52 +0800 Subject: [PATCH] update --- sort_known_hosts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sort_known_hosts.py b/sort_known_hosts.py index 509fc74..da032b2 100755 --- a/sort_known_hosts.py +++ b/sort_known_hosts.py @@ -66,9 +66,9 @@ def main(args): str, sorted( compactEntryList, - key=lambda entry: entry.host[1:] - if entry.host.startswith('[') - else entry.host, + key=lambda entry: ( + entry.host[1:] if entry.host.startswith('[') else entry.host + ), ), ) )