From 368c15c580c2fec7c465504b283b3200e37c8a83 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 18 Dec 2015 09:49:56 +0100 Subject: [PATCH] Rename 'sep' key on the fly --- patacrep/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patacrep/index.py b/patacrep/index.py index 716a344a..346c1acd 100644 --- a/patacrep/index.py +++ b/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)