From 2e70273d93baae6b4563306dfb458db8acaf1dc1 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 14 Dec 2015 17:53:22 +0100 Subject: [PATCH] [pylint] Rewrite 'not xxx in' into 'xxx not in' --- patacrep/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patacrep/index.py b/patacrep/index.py index 920e1138..716a344a 100644 --- a/patacrep/index.py +++ b/patacrep/index.py @@ -77,7 +77,7 @@ class Index(object): def add_keyword(self, key, word): """Add 'word' to self.keywords[key].""" - if not key in self.keywords: + if key not in self.keywords: self.keywords[key] = [] self.keywords[key].append(word) @@ -101,9 +101,9 @@ class Index(object): similar method with processing. """ first = self.get_first_letter(key[0]) - if not first in self.data: + if first not in self.data: self.data[first] = dict() - if not key in self.data[first]: + if key not in self.data[first]: self.data[first][key] = { 'sortingkey': [ unidecode.unidecode(tex2plain(item)).lower()