[PATCH 6 of 8] tests/tinyproxy: remove is-comparisons with non-singletons

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Nov 16 14:36:17 CST 2010


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1289939758 -3600
# Branch stable
# Node ID 60a3f52a0f97a406bb13aaa49f4784c503710f14
# Parent  c2e049d9a3652dadd025fac5dbfd90f0a82dffd3
tests/tinyproxy: remove is-comparisons with non-singletons.

diff --git a/tests/tinyproxy.py b/tests/tinyproxy.py
--- a/tests/tinyproxy.py
+++ b/tests/tinyproxy.py
@@ -96,7 +96,7 @@ class ProxyHandler (BaseHTTPServer.BaseH
                 break
             if ins:
                 for i in ins:
-                    if i is soc:
+                    if i == soc:
                         out = self.connection
                     else:
                         out = soc


More information about the Mercurial-devel mailing list