Commit eb0f1b51e7bcf46cf8868ea0186f8e8f086e6ed8 introduced uses of
variable session in lnt/server/reporting/summaryreport.py but one of
them is in function _build_data_table() which does not have a session
parameter. This commit adds the parameter and update call sites
accordingly, fixing one of Flake8's F821 warning (undefined name).
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 85441 Build 116676: arc lint + arc unit
Event Timeline
Comment Actions
This commit adds the parameter and update call sites
accordingly, fixing one of Flake8's F821 warning (undefined name).
Sorry I'm not very well versed in Flake8, but why does this fix this specific warning? session isn't used so just wondering how it suppresses undefined name.
@tnfchris This existing use of session is "undefined name" for Flake8 because session is not defined in that context. This patch adds the session parameter to the method this code is part of, thereby making session no longer undefined.