From 4a46873cb23c8543e63948ce3d11fa2bc91838b4 Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Sat, 16 May 2015 11:30:23 -0700 Subject: [PATCH] 'not X in Y' -> 'X not in Y' --- annotator/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotator/elasticsearch.py b/annotator/elasticsearch.py index 3d4c532..7131168 100644 --- a/annotator/elasticsearch.py +++ b/annotator/elasticsearch.py @@ -197,7 +197,7 @@ def save(self, refresh=True): _add_created(self) _add_updated(self) - if not 'id' in self: + if 'id' not in self: op_type = 'create' else: op_type = 'index'