(self,suffix)
Strip suffix from label
Strip suffix from label
Strip suffix from label
def stripSuffix(self,suffix):
        """
            Strip suffix from label
        """
        suffix = DNSLabel(suffix)
        if self.label[-len(suffix.label):] == suffix.label:
            return DNSLabel(self.label[:-len(suffix.label)])
        else:
            return self
def stripSuffix ( self , suffix ) : suffix = DNSLabel ( suffix ) if self . label [ - len ( suffix . label ) : ] == suffix . label : return DNSLabel ( self . label [ : - len ( suffix . label ) ] ) else : return self