-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJpKNwACgkQrlYvE4MpobM+IgCgytERHKgrZ6s4v+aATebY4eHW kNEAnRg38KhgWW3XBNbguGWlKEB8LO16 =EDlf -----END PGP SIGNATURE-----
>From 5c48808f3e5952e885c898b8b79f6e661b4b9138 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Wed, 9 Oct 2013 16:59:13 -0400 Subject: [PATCH 24/74] 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 ae1c9c5..3258684 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] -- 1.8.3.1