Browse Source

[pylint] Rewrite 'not xxx in' into 'xxx not in'

pull/183/head
Oliverpool 9 years ago
parent
commit
2e70273d93
  1. 6
      patacrep/index.py

6
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()

Loading…
Cancel
Save