aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss@m4x.org>2019-01-31 20:46:40 +0100
committerNicolas Iooss <nicolas.iooss@m4x.org>2019-01-31 20:57:28 +0100
commitae03c821b798b346d1012d1defd61e665bb0d890 (patch)
tree608972f8893722168c4c89facd66c9eea72c957c
parentf906ae66a4362345cccf2b93feccd4c045894ed7 (diff)
downloadandroid_external_selinux-ae03c821b798b346d1012d1defd61e665bb0d890.tar.gz
android_external_selinux-ae03c821b798b346d1012d1defd61e665bb0d890.tar.bz2
android_external_selinux-ae03c821b798b346d1012d1defd61e665bb0d890.zip
python/sepolicy: fix variable name
modify_button_clicked() used variable "type" in a comparison instead of "ftype". This is a bug, which has been found with flake8 3.7.0. This linter reported: python/sepolicy/sepolicy/gui.py:1548:20: F823 local variable 'type' {0} referenced before assignment Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
-rw-r--r--python/sepolicy/sepolicy/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sepolicy/sepolicy/gui.py b/python/sepolicy/sepolicy/gui.py
index fde233ad..d4bf3b48 100644
--- a/python/sepolicy/sepolicy/gui.py
+++ b/python/sepolicy/sepolicy/gui.py
@@ -1545,7 +1545,7 @@ class SELinuxGui():
path = self.executable_files_liststore.get_value(iter, 0)
self.files_path_entry.set_text(path)
ftype = self.executable_files_liststore.get_value(iter, 1)
- if type != None:
+ if ftype != None:
self.combo_set_active_text(self.files_type_combobox, ftype)
tclass = self.executable_files_liststore.get_value(iter, 2)
if tclass != None: