[CalendarServer-changes] [9139] CalendarServer/trunk/calendarserver/tools/shell/terminal.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 16 16:43:48 PDT 2012
Revision: 9139
http://trac.macosforge.org/projects/calendarserver/changeset/9139
Author: wsanchez at apple.com
Date: 2012-04-16 16:43:47 -0700 (Mon, 16 Apr 2012)
Log Message:
-----------
Cleanup
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell/terminal.py
Modified: CalendarServer/trunk/calendarserver/tools/shell/terminal.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/terminal.py 2012-04-16 23:36:23 UTC (rev 9138)
+++ CalendarServer/trunk/calendarserver/tools/shell/terminal.py 2012-04-16 23:43:47 UTC (rev 9139)
@@ -269,10 +269,10 @@
completions = tuple(self.commands.complete_commands(cmd))
if len(completions) == 1:
- for completion in completions:
- break
- for c in completion:
+ for c in completions.__iter__().next():
self.characterReceived(c, True)
+
+ # FIXME: Add a space only if we know we've fully completed the term.
#self.characterReceived(" ", False)
else:
self.terminal.nextLine()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120416/76a49386/attachment-0001.html>
More information about the calendarserver-changes
mailing list