CVS: tmda/TMDA Version.py,1.118,1.119

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

Modified Files:
	Version.py 
Log Message:
Python 2.3-ize the Version module.  We can assume at least Python 2.3,
and hence availability of the Python platform module.


Index: Version.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Version.py,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- Version.py	19 Dec 2003 21:51:56 -0000	1.118
+++ Version.py	19 Dec 2003 23:00:33 -0000	1.119
@@ -22,29 +22,21 @@
 """Various versioning information."""
 
 
-import sys
+import platform
 
 
 # TMDA version
-TMDA = "1.0"
+TMDA = "1.1.0"
 
 # TMDA version codename
-CODENAME = "Cannonade"
+CODENAME = "Aberfeldy"
 
 # Python version
-PYTHON = sys.version.split()[0]
+PYTHON = platform.python_version()
 
 # Platform identifier
-try:
-    from platform import platform
-    PLATFORM = platform()
-except ImportError:
-    try:
-        from distutils.util import get_platform
-        PLATFORM = get_platform()
-    except ImportError:
-        PLATFORM = sys.platform
+PLATFORM = platform.platform()
 
 # Summary of all the version identifiers
-# e.g, TMDA/0.86+ "Carry Back" (Python/2.3.2 on Darwin-6.8-Power_Macintosh-powerpc-32bit)
+# e.g, TMDA/1.1.0 "Aberfeldy" (Python/2.3.2 on Darwin-6.8-Power_Macintosh-powerpc-32bit)
 ALL = 'TMDA/%s "%s" (Python/%s on %s)' % (TMDA, CODENAME, PYTHON, PLATFORM)
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.