Fix line break after binary operator in proxy

This commit is contained in:
Dmitri Bogomolov 2021-02-28 19:22:11 +02:00
parent 1ad86bcb5b
commit 64d2a831c4
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -61,9 +61,9 @@ class Proxy(AdvancedDispatcher):
@proxy.setter @proxy.setter
def proxy(self, address): def proxy(self, address):
"""Set proxy IP and port""" """Set proxy IP and port"""
if (not isinstance(address, tuple) or len(address) < 2 or if (not isinstance(address, tuple) or len(address) < 2
not isinstance(address[0], str) or or not isinstance(address[0], str)
not isinstance(address[1], int)): or not isinstance(address[1], int)):
raise ValueError raise ValueError
self.__class__._proxy = address self.__class__._proxy = address