Fix minor syntax issues in saml2 provider
[cascardo/ipsilon.git] / ipsilon / providers / saml2 / provider.py
index 03efeb3..d3ed5da 100755 (executable)
@@ -89,7 +89,7 @@ class ServiceProvider(object):
 
     def get_valid_nameid(self, nip):
         self._debug('Requested NameId [%s]' % (nip.format,))
-        if nip.format == None:
+        if nip.format is None:
             return NAMEID_MAP[self.default_nameid]
         elif nip.format == lasso.SAML2_NAME_IDENTIFIER_FORMAT_UNSPECIFIED:
             return NAMEID_MAP[self.default_nameid]