mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-03 04:02:05 +00:00
python/sepolgen: use self when accessing members in FilesystemUse
This silences the following flake8 errors: python/sepolgen/src/sepolgen/refpolicy.py:758:25: F821 undefined name 'XATTR' python/sepolgen/src/sepolgen/refpolicy.py:760:27: F821 undefined name 'TRANS' python/sepolgen/src/sepolgen/refpolicy.py:762:27: F821 undefined name 'TASK' Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
e6dd227272
commit
052dcf62fd
@ -755,11 +755,11 @@ class FilesystemUse(Leaf):
|
||||
|
||||
def to_string(self):
|
||||
s = ""
|
||||
if self.type == XATTR:
|
||||
if self.type == self.XATTR:
|
||||
s = "fs_use_xattr "
|
||||
elif self.type == TRANS:
|
||||
elif self.type == self.TRANS:
|
||||
s = "fs_use_trans "
|
||||
elif self.type == TASK:
|
||||
elif self.type == self.TASK:
|
||||
s = "fs_use_task "
|
||||
|
||||
return "%s %s %s;" % (s, self.filesystem, str(self.context))
|
||||
|
Loading…
Reference in New Issue
Block a user