Commit 3688d0dc authored by Michel Pelletier's avatar Michel Pelletier

fixed counter not being initialzed bug, and an incrimenting

bug... (not incriminating...)
parent bb926122
......@@ -113,6 +113,8 @@ class Lexicon(Persistent, Implicit):
"""
counter = 0
def __init__(self):
self._lexicon = OIBTree()
......@@ -125,7 +127,7 @@ class Lexicon(Persistent, Implicit):
else:
self._lexicon[intern(word)] = self.counter
self.counter = self.counter + 1
return self.counter
return self.counter - 1
def get(self, key):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment