style: Use 'not in' consistently rather than not foo in.

This commit is contained in:
Tim Abbott
2016-05-09 16:55:43 -07:00
parent 9cf18f8535
commit b869be9301
9 changed files with 17 additions and 17 deletions

View File

@@ -118,7 +118,7 @@ class SocketConnection(sockjs.tornado.SockJSConnection):
if msg['request']['csrf_token'] != self.csrf_token:
raise SocketAuthError('CSRF token does not match that in cookie')
if not 'queue_id' in msg['request']:
if 'queue_id' not in msg['request']:
raise SocketAuthError("Missing 'queue_id' argument")
queue_id = msg['request']['queue_id']