[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/applicationcontrol/runtimeinfo.py We don't need to use sys.platofrm - platform.uname() always

Dmitry Vasiliev dima at hlabs.spb.ru
Fri Apr 8 07:01:39 EDT 2005


Log message for revision 29905:
  We don't need to use sys.platofrm - platform.uname() always
  returns some acceptable values.
  

Changed:
  U   Zope3/trunk/src/zope/app/applicationcontrol/runtimeinfo.py

-=-
Modified: Zope3/trunk/src/zope/app/applicationcontrol/runtimeinfo.py
===================================================================
--- Zope3/trunk/src/zope/app/applicationcontrol/runtimeinfo.py	2005-04-08 10:08:26 UTC (rev 29904)
+++ Zope3/trunk/src/zope/app/applicationcontrol/runtimeinfo.py	2005-04-08 11:01:39 UTC (rev 29905)
@@ -84,17 +84,13 @@
         """See zope.app.applicationcontrol.interfaces.IRuntimeInfo"""
         info = []
         enc = self.getPreferredEncoding()
-        for i in platform.uname():
+        for item in platform.uname():
             try:
-                t = unicode(i, enc)
+                t = unicode(item, enc)
             except ValueError:
                 continue
             info.append(t)
-        if info:
-            info = u" ".join(info)
-        else:
-            info = unicode(sys.platform, enc)
-        return info
+        return u" ".join(info)
 
     def getCommandLine(self):
         """See zope.app.applicationcontrol.interfaces.IRuntimeInfo"""



More information about the Zope3-Checkins mailing list