(self, obj)
Remove obj from contents.
Remove obj from contents.
Remove obj from contents .
def remove(self, obj):
        """
        Remove obj from contents.
        """
        named = self.contents.get(obj.name.lower())
        if named:
            try:
                named.remove(obj)
                if len(named) == 0:
                    del self.contents[obj.name.lower()]
            except ValueError:
                pass;
def remove ( self , obj ) : named = self . contents . get ( obj . name . lower ( ) ) if named : try : named . remove ( obj ) if len ( named ) == 0 : del self . contents [ obj . name . lower ( ) ] except ValueError : pass