def drop_collection(self, name_or_collection, _deadline=None):
        """drop_collection(name_or_collection)"""
        if isinstance(name_or_collection, Collection):
            name = name_or_collection._collection_name
        elif isinstance(name_or_collection, (bytes, unicode)):
            name = name_or_collection
        else:
            raise TypeError("TxMongo: name must be an instance of basestring or txmongo.Collection")

        return self.command("drop", unicode(name), allowable_errors=["ns not found"],
                            _deadline=_deadline)
def drop_collection ( self , name_or_collection , _deadline = None ) : if isinstance ( name_or_collection , Collection ) : name = name_or_collection . _collection_name elif isinstance ( name_or_collection , ( bytes , unicode ) ) : name = name_or_collection else : raise TypeError ( "TxMongo: name must be an instance of basestring or txmongo.Collection" ) return self . command ( "drop" , unicode ( name ) , allowable_errors = [ "ns not found" ] , _deadline = _deadline )
drop_collection(name_or_collection)