chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook - add --py36-plus flag to pyupgrade hook
This commit is contained in:
parent
21aaf9bca1
commit
32cb67806a
26 changed files with 90 additions and 86 deletions
|
@ -58,7 +58,7 @@ def liquidsoap_get_info(telnet_lock, host, port):
|
|||
tn = telnetlib.Telnet(host, port)
|
||||
msg = "version\n"
|
||||
tn.write(msg.encode("utf-8"))
|
||||
tn.write("exit\n".encode("utf-8"))
|
||||
tn.write(b"exit\n")
|
||||
response = tn.read_all().decode("utf-8")
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue