From: brian z. <bz...@us...> - 2002-01-09 18:18:58
|
Update of /cvsroot/jython/jython/Lib In directory usw-pr-cvs1:/tmp/cvs-serv23837/Lib Modified Files: isql.py Log Message: added __tojava__() to raw_input = 0 Index: isql.py =================================================================== RCS file: /cvsroot/jython/jython/Lib/isql.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** isql.py 2002/01/07 05:00:12 1.2 --- isql.py 2002/01/09 18:18:55 1.3 *************** *** 1,5 **** # $Id$ ! import dbexts, cmd, sys """ --- 1,5 ---- # $Id$ ! import dbexts, cmd, sys, os """ *************** *** 27,30 **** --- 27,36 ---- prompt = "... " return prompt + if os.name == 'java': + def __tojava__(self, cls): + import java + if cls == java.lang.String: + return self.__str__() + return None class IsqlCmd(cmd.Cmd): |