fix help
[rainbowstream.git] / rainbowstream / interactive.py
index afbbc0549a6712acc0d9433660e020a3ad1b5d30..546d776f554947dfcace97a8b7fc24e78ab84ba5 100644 (file)
@@ -27,11 +27,11 @@ class RainbowCompleter(object):
             words = origline.split()
 
             if not words:
             words = origline.split()
 
             if not words:
-                self.current_candidates = sorted(self.options.keys())
+                self.current_candidates = sorted([c for c in self.options])
             else:
                 try:
                     if begin == 0:
             else:
                 try:
                     if begin == 0:
-                        candidates = self.options.keys()
+                        candidates = [c for c in self.options]
                     elif words[-1] in self.options[words[0]]:
                         candidates = []
                     else:
                     elif words[-1] in self.options[words[0]]:
                         candidates = []
                     else: