This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Python 3 support: store color value as int
ClosedPublic

Authored by thopre on Oct 15 2019, 7:16 AM.

Details

Summary

Page v4_graph.html sets the background color of some table entries from
float color values set in the v4_graph() method of lnt.server.ui.views
module using the %x specifier. However Python 3 gives an error in such a
case because it only accepts integer values. Under Python 2 an implicit
cast to int was performed. This commit adds an explicit cast to int when
storing the color value to satisfy the Python 3 requirement for %x
format specifier.