[LNT] r311760 - Fix pep8 warnings

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 19:54:04 PDT 2017


Author: matze
Date: Thu Aug 24 19:54:04 2017
New Revision: 311760

URL: http://llvm.org/viewvc/llvm-project?rev=311760&view=rev
Log:
Fix pep8 warnings

Modified:
    lnt/trunk/lnt/server/ui/app.py
    lnt/trunk/lnt/server/ui/views.py

Modified: lnt/trunk/lnt/server/ui/app.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/app.py?rev=311760&r1=311759&r2=311760&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/app.py (original)
+++ lnt/trunk/lnt/server/ui/app.py Thu Aug 24 19:54:04 2017
@@ -208,10 +208,10 @@ class App(LNTExceptionLoggerFlask):
         :param config_path: path to lnt config (directory or config file).
 
         :param log_file: instead of setting up logging, use this log file.
-        when running in a multiprocess server like gunicorn, you need to use gunicorn's
-        logging instead (since it is multiprocess safe. In this case LNT will print to
-        to stderr and it can be collected by gunicorn. The LNT logs page will show this
-        unified log page.
+        when running in a multiprocess server like gunicorn, you need to use
+        gunicorn's logging instead (since it is multiprocess safe. In this case
+        LNT will print to to stderr and it can be collected by gunicorn. The
+        LNT logs page will show this unified log page.
 
         :return: a LNT Flask App, ready to be loaded into a wsgi server.
 
@@ -258,8 +258,9 @@ class App(LNTExceptionLoggerFlask):
         ch.setLevel(logging.DEBUG)
         self.logger.addHandler(ch)
 
-        # When running in a server config, use the server to setup the log file. If there is more than
-        # one process running, this will not work well.
+        # When running in a server config, use the server to setup the log
+        # file. If there is more than one process running, this will not work
+        # well.
         if not self.config.get('log_file_name'):
             self.config['log_file_name'] = LOG_FILENAME
             try:

Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=311760&r1=311759&r2=311760&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Thu Aug 24 19:54:04 2017
@@ -170,6 +170,7 @@ def ts_data(ts):
         'ts': ts
     }
 
+
 @db_route('/submitRun', methods=('GET', 'POST'))
 def submit_run():
     """Compatibility url that hardcodes testsuite to 'nts'"""
@@ -937,8 +938,8 @@ def v4_graph():
               .group_by(ts.Order.llvm_project_revision, ts.Test)
 
         # Calculate geomean of each revision.
-        data = multidict.multidict(((rev, date), val) for val, rev, date in q) \
-               .items()
+        data = multidict.multidict(
+                    ((rev, date), val) for val, rev, date in q).items()
         data = [(rev,
                  [(lnt.server.reporting.analysis.calc_geomean(vals), date)])
                 for ((rev, date), vals) in data]




More information about the llvm-commits mailing list