mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
classes: fix SyntaxWarning: "is" with a literal on Python 3.8
This commit is contained in:
parent
594b7124ff
commit
44770fb6d1
@ -1781,7 +1781,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
|
|||||||
# ssl-should-verify defined
|
# ssl-should-verify defined
|
||||||
context.check_hostname = self.serverdata.get('ssl_validate_hostname',
|
context.check_hostname = self.serverdata.get('ssl_validate_hostname',
|
||||||
self.has_cap("ssl-should-verify") or
|
self.has_cap("ssl-should-verify") or
|
||||||
utils.get_hostname_type(self.serverdata['ip']) is 0)
|
utils.get_hostname_type(self.serverdata['ip']) == 0)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user