def cmdline_del_word(w, size, key):
    pos = self.cmdline_edit.edit_pos
    (before, after) = (self.cmdline_edit.edit_text[:pos], self.cmdline_edit.edit_text[pos:])
    before = before[::(- 1)]
    before = before.lstrip()
    i = 0
    while (i < len(before)):
        if (not before[i].isspace()):
            i += 1
        else:
            break
    self.cmdline_edit.edit_text = (before[i:][::(- 1)] + after)
    self.cmdline_edit.edit_post = len(before[i:])
def cmdline_del_word(w, size, key):
    pos = self.cmdline_edit.edit_pos
    (before, after) = (self.cmdline_edit.edit_text[:pos], self.cmdline_edit.edit_text[pos:])
    before = before[::(- 1)]
    before = before.lstrip()
    i = 0
    while (i < len(before)):
        if (not before[i].isspace()):
            i += 1
        else:
            break
    self.cmdline_edit.edit_text = (before[i:][::(- 1)] + after)
    self.cmdline_edit.edit_post = len(before[i:])