From e6aedc325dc437e76c3fc2cb6f826dd31baf52fb Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 8 Aug 2022 11:24:27 +0300 Subject: [PATCH] Minor performance improvement --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 4f3e485..649c466 100755 --- a/main.py +++ b/main.py @@ -306,10 +306,9 @@ class ProxyScraperChecker: folder.create() for proto, proxies in sorted_proxies: text = "\n".join( - "{}{}".format( - proxy.socket_address, - proxy.geolocation if folder.for_geolocation else "", - ) + proxy.socket_address + proxy.geolocation + if folder.for_geolocation + else proxy.socket_address for proxy in proxies if (proxy.is_anonymous if folder.for_anonymous else True) )