[pypy-commit] buildbot default: Remove trailing whitespace

DasIch noreply at buildbot.pypy.org
Fri May 27 14:10:24 CEST 2011


Author: Daniel Neuh&#228;user <dasdasich at gmail.com>
Branch: 
Changeset: r512:0167bdeb76a0
Date: 2011-05-27 14:22 +0200
http://bitbucket.org/pypy/buildbot/changeset/0167bdeb76a0/

Log:	Remove trailing whitespace

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -64,7 +64,7 @@
         pytestLog = cmd.logs['pytestLog']
         outcome = RevisionOutcomeSet(None)
         outcome.populate(pytestLog)
-        summary = outcome.get_summary()        
+        summary = outcome.get_summary()
         build_status = self.build.build_status
         builder = build_status.builder
         properties = build_status.getProperties()
@@ -134,7 +134,7 @@
     factory.addStep(ShellCmd(description="hg clone",
                              command = command,
                              workdir = workdir,
-			     haltOnFailure=True))
+                             haltOnFailure=True))
     #
     factory.addStep(ShellCmd(description="hg purge",
                              command = "hg --config extensions.purge= purge --all",
@@ -177,7 +177,7 @@
                  translationArgs=['-O2'], targetArgs=[],
                  app_tests=False,
                  lib_python=False,
-                 pypyjit=False                 
+                 pypyjit=False
                  ):
         factory.BuildFactory.__init__(self)
 
@@ -204,7 +204,7 @@
                 description="lib-python test",
                 command=["python", "pypy/test_all.py",
                          "--pypy=pypy/translator/goal/pypy-c",
-                         "--resultlog=cpython.log", "lib-python"],           
+                         "--resultlog=cpython.log", "lib-python"],
                 logfiles={'pytestLog': 'cpython.log'}))
 
         if pypyjit:
diff --git a/bot2/pypybuildbot/master.py b/bot2/pypybuildbot/master.py
--- a/bot2/pypybuildbot/master.py
+++ b/bot2/pypybuildbot/master.py
@@ -65,13 +65,13 @@
         ss = b.getSourceStamp()
         branch = ss.branch or '<trunk>'
         builder_name = b.getBuilder().getName()
-	url = (self.path_to_root(req) + 
-	       "summary?builder=" + html.escape(builder_name) +
-	       "&branch=" + html.escape(branch))
-	data = '%s&nbsp;&nbsp;&nbsp;(<a href="%s">view in summary</a>)\n\n%s'% (
-	    data[:i2],
-	    url,
-	    data[i2:])
+    url = (self.path_to_root(req) +
+           "summary?builder=" + html.escape(builder_name) +
+           "&branch=" + html.escape(branch))
+    data = '%s&nbsp;&nbsp;&nbsp;(<a href="%s">view in summary</a>)\n\n%s'% (
+        data[:i2],
+        url,
+        data[i2:])
     return data
 _previous_body_2 = StatusResourceBuild.body
 if _previous_body_2.__name__ == 'body':
@@ -236,12 +236,12 @@
                    "factory": pypyOwnTestFactory,
                    "category": 'linux32'
                   },
-		  {"name": LINUX64,
-		   "slavenames": ["tannit64"],
-		   "builddir": LINUX64,
-		   "factory": pypyOwnTestFactory,
-		   "category": 'linux64'
-		  },
+                  {"name": LINUX64,
+                   "slavenames": ["tannit64"],
+                   "builddir": LINUX64,
+                   "factory": pypyOwnTestFactory,
+                   "category": 'linux64'
+                  },
                   {"name": MACOSX32,
                    "slavenames": ["minime"],
                    "builddir": MACOSX32,
@@ -277,7 +277,7 @@
                    "builddir": OJITLINUX32,
                    "factory": pypy_OjitTranslatedTestFactory,
                    "category": 'linux32'
-                  },                   
+                  },
                   {"name": APPLVLWIN32,
                    "slavenames": ["bigboard"],
                    "builddir": APPLVLWIN32,
diff --git a/bot2/pypybuildbot/pypylist.py b/bot2/pypybuildbot/pypylist.py
--- a/bot2/pypybuildbot/pypylist.py
+++ b/bot2/pypybuildbot/pypylist.py
@@ -16,7 +16,7 @@
         'hg': 100,
         'svn': 50,
         }
-    
+
     FEATURES_PRIORITY = {
         'jit':      100,
         'nojit':     50,
@@ -34,7 +34,7 @@
         'linux':   'linux-x86-32',
         'linux64': 'linux-x86-64',
         'osx':     'macosx-x86-32',
-        'win32':   'win-x86-32',        
+        'win32':   'win-x86-32',
         }
 
     DESCRIPTIONS = {
diff --git a/bot2/pypybuildbot/summary.py b/bot2/pypybuildbot/summary.py
--- a/bot2/pypybuildbot/summary.py
+++ b/bot2/pypybuildbot/summary.py
@@ -96,7 +96,7 @@
                 longrepr = longrepr.decode("utf-8")
             except UnicodeDecodeError:
                 longrepr = longrepr.decode("latin-1")
-            
+
             self.longreprs[namekey] = longrepr
 
     @property
@@ -209,7 +209,7 @@
             outcome_set.populate_one(name, '!')
 
         return outcome_set
-        
+
     def get(self, status, key):
         try:
             self._lru.remove(key)
@@ -239,7 +239,7 @@
         self._numpassed = None
         self._numxfailed = None
         self.revision = map.values()[0].revision
-                
+
     @property
     def failed(self):
         if self._failed is None:
@@ -275,7 +275,6 @@
                 numxfailed += outcome.numxfailed
             self._numxfailed = numxfailed
         return self._numxfailed
-    
 
     def get_outcome(self, namekey):
         which = namekey[0]
@@ -297,7 +296,7 @@
         for outcome_set in self.map.itervalues():
             all.update(outcome_set.get_run_infos())
         return all
-         
+
 # ________________________________________________________________
 
 N = 5
@@ -313,7 +312,7 @@
         colsizes = map(max, zip(map(len, keys), colsizes))
 
     return colsizes
-    
+
 
 class SummaryPage(object):
     SUCCESS_LINE = True
@@ -401,7 +400,7 @@
             cls = "builderquery"
         return html.a(builder, href=host_agnostic(url),
                       class_=' '.join(["failSummary", cls]))
-        
+
     def _builder_num(self, outcome_set):
         return outcome_set.map.values()[0].key
 
@@ -477,7 +476,7 @@
                 success.append([" ", symbol])
             success.append("  success\n")
             lines.append(success)
-            
+
         failed = set()
         exploded = set()
         for label, outcome_set in by_label:
@@ -523,13 +522,13 @@
             spaceright = spacing[-1]
             builder_anchor = self._builder_anchor(builder)
             line.append([spaceleft, builder_anchor, spaceright])
-            
+
             for width, key in zip(colwidths[1:], failure[1:]):
                 line.append("  %-*s" % (width, key))
             line.append('\n')
             lines.append(html.span(line,
                                    class_="a%dc%d" % (a_num, combination)))
-        
+
         section = html.pre(lines)
         self.sections.append(section)
 
@@ -563,7 +562,7 @@
             mod = None
         else:
             mod = mod[0]
-        
+
         testname = request.args.get('testname', [])
         if testname:
             testname = testname[0]
@@ -571,7 +570,7 @@
             testname = ''
 
         return (mod, testname)
-        
+
     def getTitle(self, request):
         mod, testname = self.get_namekey(request)
         if mod is None:
@@ -581,7 +580,7 @@
     def body(self, request):
         t0 = time.time()
         outcome_set_cache.reset_counters()
-        
+
         builder = request.args.get('builder', [])
         build = request.args.get('build', [])
         if not builder or not build:
@@ -726,7 +725,7 @@
         fixed_builder = bool(only_builder)
         prune_old = not (only_builds or only_recentrevs or
                          only_builder or only_branches)
-        
+
         cat_branches = {}
 
         for builderName in status.getBuilderNames(only_categories):
@@ -742,7 +741,7 @@
                 builditer = builditer()
             else:
                 builditer = builderStatus.generateFinishedBuilds(num_builds=5*N)
-            
+
             for build in builditer:
                 if prune_old and self._age(build) > 7:
                     continue
@@ -780,7 +779,7 @@
                     key = (builderName, buildNumber)
                     outcome_set = outcome_set_cache.get(status, key)
                     runBuilds[builderName] = outcome_set
-                            
+
         return cat_branches
 
     @staticmethod
@@ -816,16 +815,16 @@
             i = len(self.categories)
         cat_key = (i, category)
         return cat_key + branch_key
-                            
+
     def body(self, request):
         t0 = time.time()
         outcome_set_cache.reset_counters()
-        
+
         status = self.getStatus(request)
 
         page = SummaryPage(status)
         #page.sections.append(repr(request.args))
-        
+
         only_branches = request.args.get('branch', None)
         only_recentrevs = request.args.get('recentrev', None)
         if only_branches is not None:
@@ -870,7 +869,7 @@
         else:
             trunk_vs_any_text = "all <trunk>"
             trunk_vs_any_query = "?branch=<trunk>"
-        
+
         trunk_vs_any_anchor = html.a(trunk_vs_any_text,
                                      href="/summary%s" %
                                      trunk_vs_any_query,


More information about the pypy-commit mailing list