[Zodb-checkins] CVS: ZODB3/zdaemon - zdctl.py:1.24
Guido van Rossum
guido@python.org
Thu, 23 Jan 2003 13:47:01 -0500
Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv27922
Modified Files:
zdctl.py
Log Message:
In interactive mode, try to import readline -- Python 2.1 doesn't do
this by itself.
=== ZODB3/zdaemon/zdctl.py 1.23 => 1.24 ===
--- ZODB3/zdaemon/zdctl.py:1.23 Wed Jan 22 17:41:01 2003
+++ ZODB3/zdaemon/zdctl.py Thu Jan 23 13:46:58 2003
@@ -396,6 +396,10 @@
if options.args:
c.onecmd(" ".join(options.args))
if options.interactive:
+ try:
+ import readline
+ except ImportError:
+ pass
print "program:", " ".join(options.program)
c.do_status()
c.cmdloop()