commit:     15b0ca0a77aa326dd78904c0942c9d6f3a0a64aa
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 21 16:36:36 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Feb 21 16:36:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=15b0ca0a

scripts/auto-bootstraps/analyse_result: fix python syntax

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/analyse_result.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/auto-bootstraps/analyse_result.py 
b/scripts/auto-bootstraps/analyse_result.py
index 08762d5b9c..516ead7f75 100755
--- a/scripts/auto-bootstraps/analyse_result.py
+++ b/scripts/auto-bootstraps/analyse_result.py
@@ -118,11 +118,11 @@ with os.scandir(resultsdir) as it:
 
         elapsedtime = None
         if suc:
-            elapsedf = os.path.join(resultsdir, arch, suc, "elapsedtime")
+            elapsedf = os.path.join(resultsdir, arch, "%s" % suc, 
"elapsedtime")
             if os.path.exists(elapsedf):
                 with open(elapsedf, 'rb') as f:
                     l = f.readline()
-                    if l not is '':
+                    if l is not '':
                         elapsedtime = int(l)
 
         archs[arch] = (fail, state, suc, elapsedtime)
@@ -168,7 +168,7 @@ with open(os.path.join(resultsdir, 'index.html'), "w") as h:
                     etxt = ' (%.1f days)' % (et / 86400)
                 elif et > 3600:
                     etxt = ' (%.1f hours)' % (et / 3600)
-                else
+                else:
                     etxt = ' (%d minutes)' % (et / 60)
             h.write('<a href="%s/%s">%s</a>%s' % (arch, suc, suc, etxt))
         else:

Reply via email to