import readline
+
class RainbowCompleter(object):
-
+
def __init__(self, options):
"""
Init
response = None
if state == 0:
if text:
- self.matches = [s
+ self.matches = [s
for s in self.options
if s and s.startswith(text)]
else:
self.matches = self.options[:]
-
+
try:
response = self.matches[state]
except IndexError: