[pypy-svn] r40542 - pypy/dist/pypy/tool/build/web

guido at codespeak.net guido at codespeak.net
Thu Mar 15 16:46:48 CET 2007


Author: guido
Date: Thu Mar 15 16:46:46 2007
New Revision: 40542

Modified:
   pypy/dist/pypy/tool/build/web/app.py
Log:
Changed some code that changed cached dicts in-place (fscking up the dict for
the next iteration).


Modified: pypy/dist/pypy/tool/build/web/app.py
==============================================================================
--- pypy/dist/pypy/tool/build/web/app.py	(original)
+++ pypy/dist/pypy/tool/build/web/app.py	Thu Mar 15 16:46:46 2007
@@ -223,8 +223,11 @@
 
     def get_buildersinfo(self):
         infos = self.call_method('buildersinfo')
+        ret = []
         # some massaging of the data for Templess
-        for binfo in infos:
+        for bi in infos:
+            binfo = bi.copy()
+            ret.append(binfo)
             binfo['sysinfo'] = [binfo['sysinfo']]
             binfo['not_busy'] = not binfo['busy_on']
             if binfo['busy_on']:
@@ -244,7 +247,7 @@
                 binfo['busy_on'] = [d]
             else:
                 binfo['busy_on'] = []
-        return infos
+        return ret
 
 class BuildPage(ServerPage):
     """ display information for one build """



More information about the Pypy-commit mailing list