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

        url = ("https://bitbucket.org/api/1.0/"
               "repositories/{a.account}/{a.reponame}/"
               "issues/{a.id}/"
               "comments/").format(a=parsed_args)
        r = requests.get(url, auth=(user, passwd))
        if r.status_code == 200:
            data = json.loads(r.text)
            loopmsg = """

Comment: {c[content]}
{newdata}
---------------------------------------------------------------
"""
            for comment in data:
                newdata = prettytable.PrettyTable(["Fields", "Values"])
                newdata.padding_width = 1
                newdata.add_row(
                    ["Comment Author", comment['author_info']
                     ['display_name']])
                newdata.add_row(["Comment ID", comment['comment_id']])
                newdata.add_row(["UTC Updated on", comment['utc_updated_on']])
                newdata.add_row(["UTC Created on", comment['utc_created_on']])
                print loopmsg.format(c=comment, newdata=newdata)
            sys.exit(0)
        else:
            self.app.stdout.write(
                "\nInvalid Request. Invalid argument supplied.\n")
            sys.exit(1)
dataset/ETHPy150Open yspanchal/bitbucketcli/bitbucket/issues.py/Getcomment.take_action/original