(self, layername=None)
Removes edits at the specified layer, or removes edits at all layers
        if no layer name is specified.
Removes edits at the specified layer, or removes edits at all layers
        if no layer name is specified.
Removes edits at the specified layer or removes edits at all layers if no layer name is specified .
def remove_edits(self, layername=None):
        '''
        Removes edits at the specified layer, or removes edits at all layers
        if no layer name is specified.
        '''
        if layername is None:
            self._editargs.clear()
            self._editrule.clear()
            return

        if not isinstance(layername, str):
            layername, aka = layername
        else:
            aka = layername
        if aka in self._editargs:
            del self._editargs[aka]
        if aka in self._editrule:
            del self._editrule[aka]
def remove_edits ( self , layername = None ) : if layername is None : self . _editargs . clear ( ) self . _editrule . clear ( ) return if not isinstance ( layername , str ) : layername , aka = layername else : aka = layername if aka in self . _editargs : del self . _editargs [ aka ] if aka in self . _editrule : del self . _editrule [ aka ]