Skip to content

Commit e6bc9f7

Browse files
author
Richard Jones
committed
Now with readline support :)
1 parent 59c08c4 commit e6bc9f7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup-admin

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup-admin,v 1.30 2001-10-17 06:04:00 richard Exp $
19+
# $Id: roundup-admin,v 1.31 2001-10-17 06:17:26 richard Exp $
2020

2121
import sys
2222
if int(sys.version[0]) < 2:
@@ -579,6 +579,11 @@ class AdminTool:
579579
def interactive(self, ws_re=re.compile(r'\s+')):
580580
'''Run in an interactive mode
581581
'''
582+
try:
583+
import readline
584+
except ImportError:
585+
print "Note: command history and editing not available"
586+
582587
while 1:
583588
try:
584589
command = raw_input('roundup> ')
@@ -624,6 +629,9 @@ if __name__ == '__main__':
624629

625630
#
626631
# $Log: not supported by cvs2svn $
632+
# Revision 1.30 2001/10/17 06:04:00 richard
633+
# Beginnings of an interactive mode for roundup-admin
634+
#
627635
# Revision 1.29 2001/10/16 03:48:01 richard
628636
# admin tool now complains if a "find" is attempted with a non-link property.
629637
#

0 commit comments

Comments
 (0)