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:
Nicolas Iooss 2018-08-04 14:04:45 +02:00
parent e6dd227272
commit 052dcf62fd
No known key found for this signature in database
GPG Key ID: C191415F340DAAA0

View File

@ -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))