def draw(self):
    
        self.buffer_name = "%s/%s" % (self.repo, self.number)
        b = utils.get_buffer(self.buffer_name) 
        vim.command("1,$d")
        vim.command("set filetype=markdown")

        # print out issue
        b.append("## %s # %s" % (self.repo, self.number))
        b.append("")

        # iterate through all keys that aren't body
        keys = self.data.keys()
        keys.remove("body")
        for key in keys:
            value = self.data[key]
            if type(value) == list:
                value = ",".join(value)
            b.append((key.capitalize(), value) % "# %s: %s")

        # print out body if applicable
        if self.data.has_key("body") and self.data["body"]:
            for line in self.data["body"].splitlines():
                b.append(line)
        
        # now we need to print the comments
        self.comments.draw(b)
        # remove leading line
        vim.command("1delete _")
dataset/ETHPy150Open jonmorehouse/vimhub/lib/issue.py/Issue.draw/swapped operands of `%`