SELinuxGui.files_initial_data_insert() uses both "seLinux_label" and "selinux_label", which leads to using an undefined variable, as reported by flake8:
python/sepolicy/sepolicy/gui.py:1191:42: F821 undefined name 'selinux_label' Signed-off-by: Nicolas Iooss <nicolas.io...@m4x.org> --- python/sepolicy/sepolicy/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sepolicy/sepolicy/gui.py b/python/sepolicy/sepolicy/gui.py index 537d5168a536..16f24a0ab2f9 100644 --- a/python/sepolicy/sepolicy/gui.py +++ b/python/sepolicy/sepolicy/gui.py @@ -1175,7 +1175,7 @@ class SELinuxGui(): continue self.files_initial_data_insert(self.writable_files_liststore, path, write, file_class) - def files_initial_data_insert(self, liststore, path, seLinux_label, file_class): + def files_initial_data_insert(self, liststore, path, selinux_label, file_class): iter = liststore.append(None) if path is None: path = _("MISSING FILE PATH") @@ -1191,7 +1191,7 @@ class SELinuxGui(): file_class = self.markup(selinux_label) file_class = self.markup(file_class) liststore.set_value(iter, 0, path) - liststore.set_value(iter, 1, seLinux_label) + liststore.set_value(iter, 1, selinux_label) liststore.set_value(iter, 2, file_class) liststore.set_value(iter, 7, modify) -- 2.18.0 _______________________________________________ Selinux mailing list Selinux@tycho.nsa.gov To unsubscribe, send email to selinux-le...@tycho.nsa.gov. To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.