def __sub__(self, other):
        '''
        Makes differance of DirsContents objects attributes
        '''
        if any([self.bindir is None, self.lib_sitepackages is None,
                other.bindir is None, other.lib_sitepackages is None]):
            raise ValueError("Some of the attributes is uninicialized")
        result = DirsContent(
            self.bindir - other.bindir,
            self.lib_sitepackages - other.lib_sitepackages)
        return result
def __sub__ ( self , other ) : if any ( [ self . bindir is None , self . lib_sitepackages is None , other . bindir is None , other . lib_sitepackages is None ] ) : raise ValueError ( "Some of the attributes is uninicialized" ) result = DirsContent ( self . bindir - other . bindir , self . lib_sitepackages - other . lib_sitepackages ) return result
Makes differance of DirsContents objects attributes