(self, event=None)
return "break"
Uncomment each line in region.

        Remove ## or # in the first positions of a line.  If the comment
        is not in the beginning position, this command will have no effect.
Uncomment each line in region.
Uncomment each line in region .
def uncomment_region_event(self, event=None):
        """Uncomment each line in region.

        Remove ## or # in the first positions of a line.  If the comment
        is not in the beginning position, this command will have no effect.
        """
        head, tail, chars, lines = self.get_region()
        for pos in range(len(lines)):
            line = lines[pos]
            if not line:
                continue
            if line[:2] == '##':
                line = line[2:]
            elif line[:1] == '#':
                line = line[1:]
            lines[pos] = line
        self.set_region(head, tail, chars, lines)
        return "break"
def uncomment_region_event ( self , event = None ) : head , tail , chars , lines = self . get_region ( ) for pos in range ( len ( lines ) ) : line = lines [ pos ] if not line : continue if line [ : 2 ] == '##' : line = line [ 2 : ] elif line [ : 1 ] == '#' : line = line [ 1 : ] lines [ pos ] = line self . set_region ( head , tail , chars , lines ) return "break"