]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint nanonameserver
authorBob Halley <halley@dnspython.org>
Wed, 24 Jun 2020 17:17:45 +0000 (10:17 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 24 Jun 2020 17:17:45 +0000 (10:17 -0700)
tests/nanonameserver.py

index e7985e56e6f1aed702455af0be0b16ce9b22ac14..33452ea2512c95cd7d3db577cace2e5def5d006e 100644 (file)
@@ -111,7 +111,7 @@ class Server(threading.Thread):
                                              socket.SOCK_STREAM, 0)
                     self.tcp.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
                                         1)
-                    if self.port is 0 and self.enable_udp:
+                    if self.port == 0 and self.enable_udp:
                         try:
                             self.tcp.bind((self.address, self.udp_address[1]))
                         except OSError as e: