SF.net SVN: jython:[7259] trunk/jython/Lib/javapath.py

[email protected] Mon, 21 Mar 2011 23:10:49 +0000
Newsgroups gmane.comp.lang.jython.cvs
Message-ID <[email protected]>
Revision: 7259
          http://jython.svn.sourceforge.net/jython/?rev=7259&view=rev
Author:   pjenvey
Date:     2011-03-21 23:10:49 +0000 (Mon, 21 Mar 2011)

Log Message:
-----------
might as well deprecate javapath so we don't really have to maintain it going
forward

Modified Paths:
--------------
    trunk/jython/Lib/javapath.py

Modified: trunk/jython/Lib/javapath.py
===================================================================
--- trunk/jython/Lib/javapath.py	2011-03-21 21:57:22 UTC (rev 7258)
+++ trunk/jython/Lib/javapath.py	2011-03-21 23:10:49 UTC (rev 7259)
@@ -21,6 +21,9 @@
 import os
 
 from org.python.core.Py import newString as asPyString
+import warnings
+warnings.warn('The javapath module is deprecated. Use the os.path module.',
+              DeprecationWarning, 2)
 
 
 def _tostr(s, method):


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar