CVS: tmda/TMDA ChangeLog,1.288,1.289 Version.py,1.104,1.105

"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-serv19700/TMDA

Modified Files:
	ChangeLog Version.py 
Log Message:
Use Python 2.3's 'platform' module for the value of PLATFORM if it's
available since it's so much more specific.  Fall back to using
distutils, and then sys.platform depending on module availability.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.288
retrieving revision 1.289
diff -u -r1.288 -r1.289
--- ChangeLog	1 Oct 2003 22:46:42 -0000	1.288
+++ ChangeLog	9 Oct 2003 23:51:32 -0000	1.289
@@ -1,3 +1,8 @@
+2003-10-09  Jason R. Mastaler  <[email protected]>
+
+	* Version.py (PLATFORM): Use the more descriptive 'platform'
+	module if it's available.
+
 2003-10-01  Jason R. Mastaler  <[email protected]>
 
 	* Util.py (getfullname): Change default fallback value to an empty

Index: Version.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Version.py,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- Version.py	2 Oct 2003 19:58:04 -0000	1.104
+++ Version.py	9 Oct 2003 23:51:32 -0000	1.105
@@ -36,11 +36,15 @@
 
 # Platform identifier
 try:
-    from distutils.util import get_platform
-    PLATFORM = get_platform()
+    from platform import platform
+    PLATFORM = platform()
 except ImportError:
-    PLATFORM = sys.platform
+    try:
+        from distutils.util import get_platform
+        PLATFORM = get_platform()
+    except ImportError:
+        PLATFORM = sys.platform
 
 # Summary of all the version identifiers
-# e.g, TMDA/0.78+ "Dark Star" (Python/2.3b1+ on darwin-6.6-Power_Macintosh)
+# e.g, TMDA/0.86+ "Carry Back" (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.