GNOME Bugzilla – Bug 791296
gtester-report: fix range usage when running as python3 app
Last modified: 2017-12-06 10:09:45 UTC
gtester-report fails with [ 3157s] File "/usr/bin/gtester-report", line 78, in html_indent_string [ 3157s] for i in range (0, (n + 1) / 2): [ 3157s] TypeError: 'float' object cannot be interpreted as an integer othrewise
Created attachment 365092 [details] [review] gtester-report: fix range usage when running as python3 app When using python3 as interpreter, range only takes integer arguments or it results in errors like:
+ Trace 238229
for i in range (0, (n + 1) / 2): TypeError: 'float' object cannot be interpreted as an integer
Review of attachment 365092 [details] [review]: Looks good, thanks. Verified as working on Python 2 and 3.
Attachment 365092 [details] pushed as 1a07e35 - gtester-report: fix range usage when running as python3 app
Pushed to glib-2-54 too: a434d020b (HEAD -> glib-2-54, origin/glib-2-54) gtester-report: fix range usage when running as python3 app