From 2d55a153c723086432f479d5e1d5555408375822 2014-01-23 03:12:08 From: Kyle Kelley Date: 2014-01-23 03:12:08 Subject: [PATCH] s/==/is/ --- diff --git a/IPython/html/base/zmqhandlers.py b/IPython/html/base/zmqhandlers.py index e8800b7..6c015bd 100644 --- a/IPython/html/base/zmqhandlers.py +++ b/IPython/html/base/zmqhandlers.py @@ -49,7 +49,7 @@ class ZMQStreamHandler(websocket.WebSocketHandler): host = self.request.headers.get("Host") # If no header is provided, assume we can't verify origin - if(origin_header == None or host == None): + if(origin_header is None or host is None): return False parsed_origin = urlparse(origin_header)