Commits

kenko  committed 818e6e5

fix raw_input

  • Participants
  • Parent commits de4f016

Comments (0)

Files changed (1)

File pyline/pyline.py

 
     def say(self, s, *vals, **keys):
         s = str(s)
+        if not s: return
         s = self.effectize_string(s, vals, keys)
         s, ws = utils.remove_capture_whitespace(s)
         lines = s.split('\n')
             line = raw_input()
             if set_here:
                 clear_completer()
+            return line
         else:
             line = self.inp.readline()
-        if not line: raise EOFError
-        return line
+            if not line: raise EOFError
+            return line
 
     def choose(self, *items_or_menu, **k):
         """Make a choice from a menu.