code: def nsUriMatch(self, value, wanted, strict=0, tt=type(())):
          
          if value == wanted or (type(wanted) is tt) and value in wanted:
              return 1
          if not strict and value is not None:
              wanted = type(wanted) is tt and wanted or (wanted,)
              value = value[-1:] != '/' and value or value[:-1]
              for item in wanted:
                  if item == value or item[:-1] == value:
                      return 1
          return 0
docs: Return a true value if two namespace uri values match.