def delete_comment(request, comment_id):
 (cc_comment, context) = _get_comment_and_context(request, comment_id)
 if can_delete(cc_comment, context):
  cc_comment.delete()
  comment_deleted.send(sender=None, user=request.user, post=cc_comment)
 else:
  raise PermissionDenied

def delete_comment ( request , comment_id ) : ( cc_comment , context ) = _get_comment_and_context ( request , comment_id ) if can_delete ( cc_comment , context ) : cc_comment . delete ( ) comment_deleted . send ( sender = None , user = request . user , post = cc_comment ) else : raise PermissionDenied
deletes comment .