From 3223746ba843d4f9a695c34eaf3bb3f30dc56f4b Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Wed, 9 Oct 2013 16:59:13 -0400 Subject: [PATCH] fix bug in calls to attributes --- sepolgen/src/sepolgen/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sepolgen/src/sepolgen/interfaces.py b/sepolgen/src/sepolgen/interfaces.py index ae1c9c51..3258684c 100644 --- a/sepolgen/src/sepolgen/interfaces.py +++ b/sepolgen/src/sepolgen/interfaces.py @@ -273,10 +273,10 @@ class InterfaceVector: self.add_av(av) # Add typeattribute access - if attributes != None: + if attributes: for typeattribute in interface.typeattributes(): for attr in typeattribute.attributes: - if not attributes.attributes.has_key(attr): + if not attributes.has_key(attr): # print "missing attribute " + attr continue attr_vec = attributes.attributes[attr]