[Assorted-commits] SF.net SVN: assorted:[1524] pitch-in/trunk/src/pitchin/pitchin/common.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-11-27 08:05:07
|
Revision: 1524 http://assorted.svn.sourceforge.net/assorted/?rev=1524&view=rev Author: yangzhang Date: 2009-11-27 08:04:53 +0000 (Fri, 27 Nov 2009) Log Message: ----------- forgot to add this in last commit Added Paths: ----------- pitch-in/trunk/src/pitchin/pitchin/common.py Added: pitch-in/trunk/src/pitchin/pitchin/common.py =================================================================== --- pitch-in/trunk/src/pitchin/pitchin/common.py (rev 0) +++ pitch-in/trunk/src/pitchin/pitchin/common.py 2009-11-27 08:04:53 UTC (rev 1524) @@ -0,0 +1,4 @@ +def isvalidnum(x): + try: float(x) + except ValueError: return False + else: return float(x) >= 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |