CVS: tmda-cgi CgiVersion.py,1.5,1.6

"Jason R. Mastaler" <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv32466

Modified Files:
	CgiVersion.py 
Log Message:
CgiVersion.py imports TMDA.Version, but doesn't use it for 'Python'
and 'Platform' resulting in some unnecessary double calculations.


Index: CgiVersion.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/CgiVersion.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CgiVersion.py	26 May 2003 03:49:21 -0000	1.5
+++ CgiVersion.py	26 May 2003 03:51:44 -0000	1.6
@@ -21,7 +21,6 @@
 
 """Various versioning information."""
 
-import sys
 from TMDA import Version
 
 # tmda-cgi version
@@ -34,14 +33,10 @@
 TMDAReqVer = "0.77"
 
 # Python version
-Python = sys.version.split()[0]
+Python = Version.PYTHON
 
 # Platform identifier
-try:
-    from distutils.util import get_platform
-    Platform = get_platform()
-except ImportError:
-    Platform = sys.platform
+Platform = Version.PLATFORM
 
 # Summary of all the version identifiers
 # e.g, tmda-cgi/0.02 "Helium" (Python 2.2.2 on linux-i686)

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.