def hasAttribute(self, attributeName, variableName=None): """ Returns True iff a file or variable has an attribute. attributeName String name of the attribute. variableName: String name of the variable. If None, check a global attribute. """ if (self.noncd): return False else: return CdunifFormatHandler.hasAttribute(self, attributeName, variableName=variableName)