3
0
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:
James Lu 2019-12-22 23:11:58 -08:00
parent 594b7124ff
commit 44770fb6d1

View File

@ -1781,7 +1781,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
# ssl-should-verify defined
context.check_hostname = self.serverdata.get('ssl_validate_hostname',
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