From: Finn B. <bc...@us...> - 2001-12-20 18:22:40
|
Update of /cvsroot/jython/jython/org/python/util In directory usw-pr-cvs1:/tmp/cvs-serv11889 Modified Files: PyServlet.java Log Message: Remove the requirement that source files have a .py suffix. That is done better with a "<url-pattern>*.py</url-pattern>" anyway. Index: PyServlet.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/util/PyServlet.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** PyServlet.java 2001/12/20 18:19:58 1.15 --- PyServlet.java 2001/12/20 18:22:36 1.16 *************** *** 179,183 **** else start++; ! int end = path.lastIndexOf(".py"); if ((end < 0) || (end <= start)) end = path.length(); --- 179,183 ---- else start++; ! int end = path.lastIndexOf('.'); if ((end < 0) || (end <= start)) end = path.length(); |