[LNT] r255952 - Whitespace fixups

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 17:17:05 PST 2015


Author: cmatthews
Date: Thu Dec 17 19:17:05 2015
New Revision: 255952

URL: http://llvm.org/viewvc/llvm-project?rev=255952&view=rev
Log:
Whitespace fixups

Modified:
    lnt/trunk/lnt/server/db/testsuitedb.py
    lnt/trunk/lnt/server/db/v4db.py
    lnt/trunk/lnt/util/ImportData.py

Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=255952&r1=255951&r2=255952&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Thu Dec 17 19:17:05 2015
@@ -758,7 +758,7 @@ test %r does not map to a sample field i
                 test_cache[test_name] = test = self.Test(test_name)
                 self.add(test)
 
-            for i,value in enumerate(test_samples):
+            for i, value in enumerate(test_samples):
                 record_key = (test_name, i)
                 sample = sample_records.get(record_key)
                 if sample is None:
@@ -789,7 +789,7 @@ test %r does not map to a sample field i
 
         # Get the schema tag.
         tag = data['Run']['Info']['tag']
-
+        
         # If we didn't construct a new run, this is a duplicate
         # submission. Return the prior Run.
         if not inserted:

Modified: lnt/trunk/lnt/server/db/v4db.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/v4db.py?rev=255952&r1=255951&r2=255952&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/v4db.py (original)
+++ lnt/trunk/lnt/server/db/v4db.py Thu Dec 17 19:17:05 2015
@@ -172,11 +172,11 @@ class V4DB(object):
         # FIXME: Promote this to a top-level field in the data.
         db_name = data['Run']['Info'].get('tag')
         if db_name is None:
-            raise ValueError,"unknown database target (no tag field)"
+            raise ValueError, "unknown database target (no tag field)"
 
         db = self.testsuite.get(db_name)
         if db is None:
-            raise ValueError,"test suite %r not present in this database!" % (
+            raise ValueError, "test suite %r not present in this database!" % (
                 db_name)
 
         return db.importDataFromDict(data, commit, config)

Modified: lnt/trunk/lnt/util/ImportData.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/ImportData.py?rev=255952&r1=255951&r2=255952&view=diff
==============================================================================
--- lnt/trunk/lnt/util/ImportData.py (original)
+++ lnt/trunk/lnt/util/ImportData.py Thu Dec 17 19:17:05 2015
@@ -6,6 +6,7 @@ import lnt.server.reporting.analysis
 
 from lnt.util import NTEmailReport
 
+
 def import_and_report(config, db_name, db, file, format, commit=False,
                       show_sample_count=False, disable_email=False,
                       disable_report=False):
@@ -75,6 +76,7 @@ def import_and_report(config, db_name, d
     except KeyboardInterrupt:
         raise
     except:
+        raise
         import traceback
         result['error'] = "import failure: %s" % traceback.format_exc()
         return result




More information about the llvm-commits mailing list