Browse Source

Rename 'sep' key on the fly

pull/184/head
Oliverpool 9 years ago
parent
commit
368c15c580
  1. 2
      patacrep/index.py

2
patacrep/index.py

@ -77,6 +77,8 @@ class Index(object):
def add_keyword(self, key, word):
"""Add 'word' to self.keywords[key]."""
if key == 'sep':
key = 'separators'
if key not in self.keywords:
self.keywords[key] = []
self.keywords[key].append(word)

Loading…
Cancel
Save