Fix PEP8 issues with latest pycodestyle (#6636)

This commit is contained in:
Aditya Toshniwal
2023-07-31 18:14:39 +05:30
committed by GitHub
parent 2aea5b41ad
commit a1c7265c41
12 changed files with 18 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ def get_my_ip():
except Exception:
external_ip = '127.0.0.1'
if type(external_ip) == bytes:
if isinstance(external_ip, bytes):
external_ip = external_ip.decode('utf-8')
ip = ipaddress.ip_address(external_ip)