def take_action(self, parsed_args):
        self.log.debug('take_action(%s)' % parsed_args)

        url = "https://bitbucket.org/api/1.0/repositories/%s/%s/issues/%s/" % (
            parsed_args.
            account,
            parsed_args.
            reponame,
            parsed_args.
            id)
        r = requests.delete(url, auth=(user, passwd))
        if r.status_code == 204:
            self.app.stdout.write("\nIssue Deleted Successfully.\n\n")
            sys.exit(0)
        else:
            print "\n" + r.text + "\n"
            self.app.stdout.write("Invalid Issue ID Supplied.\n\n")
            sys.exit(1)
dataset/ETHPy150Open yspanchal/bitbucketcli/bitbucket/issues.py/Deleteissue.take_action/original